lv_drivers: master branch does not compile with lvgl master branch
Hi !
I’m running into trouble by using both repositories with the current master branch.
- lvgl: 2a78353ca485e9d07e2aa5f5543db13e6370580a
- lv_driver: bc24e9fd80db4746b3595245ba4a881265104f0d
Maybe the lvgl update to V7 is not considered fully in lv_drivers - I found the following issues:
wrong header file location
The lv_drv_conf_templ.h has 3 devices enabled per default
#define USE_SSD1306 1
#define USE_SSD1306 1
#define USE_AR10XX (1)
Additionally for these devices the normally used code template is missing:
#ifndef USE_<device>
# define USE_<device> 0
#endif
This leads for all 3 devices to a header include error
fatal error: lvgl/lv_misc/lv_color.h: No such file or directory
#include "lvgl/lv_misc/lv_color.h"
The lv_color.h file is found at lvgl/src/lv_misc/lv_color.h (quickly fixed by disabling the drivers which are not used in my project anyway)
the cpp keyword “template” is used as function argument
I’m using the lvgl framework in a c/cpp project and this error pops up after updating to master branch
In file included from /home/pi/work/lora/Rfm96Raspberry/Application/lv_drivers/display/fbdev.h:20,
from /home/pi/work/lora/Rfm96Raspberry/Application/gui.h:12,
from /home/pi/work/lora/Rfm96Raspberry/Application/main.cpp:9:
/home/pi/work/lora/Rfm96Raspberry/Application/lv_drivers/display/../../lv_drv_conf.h: At global scope:
/home/pi/work/lora/Rfm96Raspberry/Application/lv_drivers/display/../../lv_drv_conf.h:235:70: error: expected ‘,’ or ‘...’ before ‘template’
static inline int lv_spi_repeat(lv_spi_handle_t spi_dev, const void* template, uint32_t repeats, uint8_t template_size)
Renaming the function argument template in lv_drv_conf_templ.h fixes this issue.
warnings
Compiling the master branch shows a lot of new warnings, mainly
warning: unused parameter
warning: no return statement in function
Currently I’m ignoring this warning and after fixing the other issues temporarily my little demo application is running nearly the same as for V6 (except of the look and feel due to the changed theme handling 😉 )
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (15 by maintainers)
No - no warnings anymore (for both c and cpp) 👍