rt-thread
rt-thread copied to clipboard
Incorrect #include in LVGL Built-In Demos (img_benchmark_cogwheel_rgb565a8.c)
If I enable LVGL Built-In Demos (RT-Thread Online Packages -> Multimedia Packages -> LVGL -> LVGL -> Enable Built-In Demos), compilation fails, irrespective of the platform (tested on AT91SAM9263 and qemu-vexpress-a9):
CC packages/LVGL-v8.3.1/demos/benchmark/assets/img_benchmark_cogwheel_alpha16.o
CC packages/LVGL-v8.3.1/demos/benchmark/assets/img_benchmark_cogwheel_argb.o
CC packages/LVGL-v8.3.1/demos/benchmark/assets/img_benchmark_cogwheel_chroma_keyed.o
CC packages/LVGL-v8.3.1/demos/benchmark/assets/img_benchmark_cogwheel_indexed16.o
CC packages/LVGL-v8.3.1/demos/benchmark/assets/img_benchmark_cogwheel_rgb.o
CC packages/LVGL-v8.3.1/demos/benchmark/assets/img_benchmark_cogwheel_rgb565a8.o
packages/LVGL-v8.3.1/demos/benchmark/assets/img_benchmark_cogwheel_rgb565a8.c:4:23: fatal error: lvgl/lvgl.h: No such file or directory
#include "lvgl/lvgl.h"
^
compilation terminated.
scons: *** [packages/LVGL-v8.3.1/demos/benchmark/assets/img_benchmark_cogwheel_rgb565a8.o] Error 1
scons: building terminated because of errors.
If we navigate to the offending file, we find the following at the very start:
#if defined(LV_LVGL_H_INCLUDE_SIMPLE)
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
However, all of the other files in the same "/assets" directory, have a completely different #include directive:
#include "../../../lvgl.h"
Replacing the offending #include with the above results in a successful compile.
Thank you I will try to fix this problem on the next version release.