Stupid link error with lv_log, lv_demo_stress.... :-(

Hello

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 :frowning:

lv_widget or lv_music works… so absolutely not logical…

Thanks for any advice (I use LVGL 8.2, #define LV_LOG_PRINTF 0)

image

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?

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…

Very strange :frowning:

image

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?

image

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?

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.

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.

yes, see my lv_conf, below… :sleepy::

/*==================
* EXAMPLES
*==================*/

/*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
#if LV_USE_DEMO_WIDGETS
#define LV_DEMO_WIDGETS_SLIDESHOW  1
#endif

/*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
#if LV_USE_DEMO_MUSIC
# 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
#endif

sorry, there were two lv_conf.h files :man_facepalming:

thank you very much