problem with hmi example
Posted: Thu Dec 13, 2018 9:02 am
Hi ALL:
I had try two example in example/hmi,With the default configuration,compiling is OK,but while I change the lcd driver to SSD1306,compile faile,
This is the compile result of example/hmi//lvgl_example:
this is the compile result of example/hmi/ugfx_example:
any help plz
I had try two example in example/hmi,With the default configuration,compiling is OK,but while I change the lcd driver to SSD1306,compile faile,
This is the compile result of example/hmi//lvgl_example:
Code: Select all
# make
LD build/lvgl_example.elf
D:/esp/esp-iot-solution/examples/hmi/lvgl_example/build/main\libmain.a(app_main.o):(.literal.app_main+0x18): undefined reference to `lvgl_indev_init'
D:/esp/esp-iot-solution/examples/hmi/lvgl_example/build/main\libmain.a(app_main.o): In function `app_main':
D:/esp/esp-iot-solution/examples/hmi/lvgl_example/main/app_main.c:118: undefined reference to `lvgl_indev_init'
collect2.exe: error: ld returned 1 exit status
make: *** [/d/esp/esp-iot-solution/submodule/esp-idf//make/project.mk:407:/d/esp/esp-iot-solution/examples/hmi/lvgl_example/build/lvgl_example.elf] 错误 1
Code: Select all
# make
CC build/gdrivers/gdisp/framebuffer/gdisp_lld_framebuffer.o
In file included from D:/esp/esp-iot-solution/components/hmi/ugfx_gui/ugfx/gfx.h:232:0,
from D:/esp/esp-iot-solution/components/hmi/gdrivers/gdisp/framebuffer/gdisp_lld_framebuffer.c:15:
D:/esp/esp-iot-solution/components/hmi/ugfx_gui/ugfx/src/gwin/gwin_rules.h:83:5: error: #error "GWIN: GFX_USE_GINPUT is required if GWIN_NEED_WIDGET is GFXON"
#error "GWIN: GFX_USE_GINPUT is required if GWIN_NEED_WIDGET is GFXON"
^
In file included from D:/esp/esp-iot-solution/components/hmi/gdrivers/gdisp/framebuffer/gdisp_lld_framebuffer.c:25:0:
D:/esp/esp-iot-solution/components/hmi/gdrivers/gdisp/framebuffer/board_framebuffer.h: In function 'board_flush':
D:/esp/esp-iot-solution/components/hmi/gdrivers/gdisp/framebuffer/board_framebuffer.h:53:27: warning: passing argument 3 of 'board_lcd_flush' from incompatible pointer type [-Wincompatible-pointer-types]
board_lcd_flush(0, 0, p_frame, g->g.Width, g->g.Height);
^
In file included from D:/esp/esp-iot-solution/components/hmi/gdrivers/gdisp/framebuffer/gdisp_lld_framebuffer.c:24:0:
D:/esp/esp-iot-solution/components/hmi/gdrivers/gdisp/SSD1306/lcd_adapter.h:47:6: note: expected 'const uint8_t * {aka const unsigned char *}' but argument is of type 'uint16_t * {aka short unsigned int *}'
void board_lcd_flush(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h);
^
D:/esp/esp-iot-solution/components/hmi/gdrivers/gdisp/framebuffer/gdisp_lld_framebuffer.c: In function 'gdisp_lld_blit_area':
D:/esp/esp-iot-solution/components/hmi/gdrivers/gdisp/framebuffer/gdisp_lld_framebuffer.c:93:18: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
pointer1 = buffer + i * g->p.x2;
^
D:/esp/esp-iot-solution/components/hmi/gdrivers/gdisp/framebuffer/gdisp_lld_framebuffer.c: In function 'gdisp_lld_control':
D:/esp/esp-iot-solution/components/hmi/gdrivers/gdisp/framebuffer/gdisp_lld_framebuffer.c:123:13: error: implicit declaration of function 'board_lcd_set_orientation' [-Werror=implicit-function-declaration]
board_lcd_set_orientation(0);
^
cc1.exe: some warnings being treated as errors
make[1]: *** [/d/esp/esp-iot-solution/submodule/esp-idf/make/component_wrapper.mk:286:gdisp/framebuffer/gdisp_lld_framebuffer.o] 错误 1
make: *** [/d/esp/esp-iot-solution/submodule/esp-idf//make/project.mk:468:component-gdrivers-build] 错误 2
any help plz