problem with hmi example

Posts: 1
Joined: Thu Dec 13, 2018 8:43 am

problem with hmi example

Postby zhuanghalin » Thu Dec 13, 2018 9:02 am

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/] 错误 1
this is the compile result of example/hmi/ugfx_example:

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]
cc1.exe: some warnings being treated as errors
make[1]: *** [/d/esp/esp-iot-solution/submodule/esp-idf/make/] 错误 1
make: *** [/d/esp/esp-iot-solution/submodule/esp-idf//make/] 错误 2

any help plz

Posts: 77
Joined: Thu Nov 15, 2018 2:06 am

Re: problem with hmi example

Postby @In逍遥子 » Fri Dec 21, 2018 5:51 pm

Hi, if you want change screen ,please :

- Run make menuconfig and in "LVGL Settings" turn "LittlevGL Touch Screen Enable" on as the program uses a touch screen.
- Run make menuconfig and in "LVGL Settings >> Config Driver" set the screen driver to "Choose Screen Driver (ILI9341)"
- Run make menuconfig and in "LVGL Settings >> Config Driver >> ILI9341 Screen Pin Configuration" set all the GPIO numbers to the correct values.

if you don't have touch screen , you should comment `lvgl_indev_init` as it's used as initialize touch screen.

Posts: 5
Joined: Tue Aug 28, 2018 9:06 am

Re: problem with hmi example

Postby malachib » Mon Mar 18, 2019 12:18 am

I'm encountering similar issues, namely:

Code: Select all

error: implicit declaration of function board_lcd_set_orientation
When trying to boilerplate out a uGFX + SSD1306 example

Progress is halted

Who is online

Users browsing this forum: No registered users and 1 guest