May 23, 2022, 2:08pm
For certain functions like lv_log or lv_demo_stress (demo) I always get a stupid link error (see screenshot below)… I don’t know what to do… already tried many things
lv_widget or lv_music works… so absolutely not logical…
Thanks for any advice (I use LVGL 8.2,
#define LV_LOG_PRINTF 0)
LV_USE_LOG should also be 1, I assume it is but it might be worth double checking. Have you tried fully cleaning and rebuilding the project?
May 24, 2022, 9:50am
Already tried with no success.
And with lv_demo_stress and lv_demo_music I get error see below, but lv_demo_benchmark and lv_demo_widgets is not a problem…
May 24, 2022, 11:37am
when I open the declaration of the function lv_demo_widgets (F3) in the h-file, it can be opened (see screenshot below).
but the same with lv_demo_stress and lv_demo_music does not work.
I work with stm32CubeIDE … is this a IDE problem?
Is it possible that those source files aren’t being tracked/compiled by the IDE? Do you see them in the explorer on the side?
May 24, 2022, 1:37pm
I see the files, see screenshot below.
EDIT: There is a difference between widget and stress, see second screenshot:
Try adding a syntax error inside
lv_demo_stress.c and see if there’s an error when compiling.
May 24, 2022, 2:06pm
hmm, no error… so the file is not compiled, what’s the problem?
LV_USE_DEMO_STRESS is enabled in
lv_conf.h? And the
lv_conf.h file you are looking at is the one that’s being used (check by adding an error in that file)? Sorry if you’ve checked those already, I’m also not sure what could be the problem.
May 24, 2022, 2:31pm
yes, see my lv_conf, below…
/*Enable the examples to be built with the library*/
#define LV_BUILD_EXAMPLES 1
* DEMO USAGE
/*Show some widget. It might be required to increase `LV_MEM_SIZE` */
#define LV_USE_DEMO_WIDGETS 1
#define LV_DEMO_WIDGETS_SLIDESHOW 1
/*Demonstrate the usage of encoder and keyboard*/
#define LV_USE_DEMO_KEYPAD_AND_ENCODER 1
/*Benchmark your system*/
#define LV_USE_DEMO_BENCHMARK 1
/*Stress test for LVGL*/
#define LV_USE_DEMO_STRESS 1
/*Music player demo*/
#define LV_USE_DEMO_MUSIC 1
# define LV_DEMO_MUSIC_SQUARE 0
# define LV_DEMO_MUSIC_LANDSCAPE 0
# define LV_DEMO_MUSIC_ROUND 0
# define LV_DEMO_MUSIC_LARGE 0
# define LV_DEMO_MUSIC_AUTO_PLAY 0
May 25, 2022, 8:37am
sorry, there were two lv_conf.h files
thank you very much