CrowPanel 7.0": CrowPanel_ESP32_LVGL_Demo.ino:117: undefined reference to `lv_demo_widgets'

edited June 17 in Elecrow HMI Display

Hello,
I am facing a build error with CrowPanel_ESP32_LVGL_Demo.ino from Lesson 5 LVGL Demo Test.

  • lvgl version 8.3.11
  • LovyanGFX version 1.1.16

I copied the 2 demoset examples folders from the lvgl directory to my sketch directory but:

undefined reference to `lv_demo_widgets'
collect2.exe: error: ld returned 1 exit status
"C:\\Users\\Ludovic\\AppData\\Local\\Temp\\arduino\\sketches\\17F26B13D5D69F6775E0DCD50D3D1E9C\\libraries\\LovyanGFX\\lgfx\\v1\\platforms\\stm32\\objs.a" "C:\\Users\\user\\AppData\\Local\\Temp\\arduino\\sketches\\17F26B13D5D69F6775E0DCD50D3D1E9C\\libraries\\LovyanGFX\\lgfx\\v1\\touch\\objs.a" -Wl,--no-whole-archive "C:\\Users\\user\\AppData\\Local\\Temp\\arduino\\cores\\7155343e0f71f113693b318166b0b139\\core.a" "@C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-442a798083\\esp32s3/flags/ld_libs" -Wl,--end-group -Wl,-EL -o "C:\\Users\\user\\AppData\\Local\\Temp\\arduino\\sketches\\17F26B13D5D69F6775E0DCD50D3D1E9C/CrowPanel_ESP32_LVGL_Demo.ino.elf"
c:/users/user/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\user\AppData\Local\Temp\arduino\sketches\17F26B13D5D69F6775E0DCD50D3D1E9C\sketch\objs.a(CrowPanel_ESP32_LVGL_Demo.ino.cpp.o):(.literal._Z5setupv+0x34): undefined reference to `lv_demo_widgets'
c:/users/user/appdata/local/arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\user\AppData\Local\Temp\arduino\sketches\17F26B13D5D69F6775E0DCD50D3D1E9C\sketch\objs.a(CrowPanel_ESP32_LVGL_Demo.ino.cpp.o): in function `setup()':
C:\Users\user\Downloads\CrowPanel-ESP32-Display-Course-File-main\CrowPanel-ESP32-Display-Course-File-main\CrowPanel_ESP32_Tutorial\Code\Lesson 5 LVGL Demo Test\4.3-5-7inch\CrowPanel_ESP32_LVGL_Demo/CrowPanel_ESP32_LVGL_Demo.ino:117: undefined reference to `lv_demo_widgets'
collect2.exe: error: ld returned 1 exit status

Using library Wire at version 2.0.0 in folder: C:\Users\user\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.1\libraries\Wire 
Using library SPI at version 2.0.0 in folder: C:\Users\user\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.1\libraries\SPI 
Using library lvgl at version 8.3.11 in folder: C:\Users\user\Downloads\CrowPanel-ESP32-Display-Course-File-main\CrowPanel-ESP32-Display-Course-File-main\CrowPanel_ESP32_Tutorial\Code\Lesson 2 Draw GUI with LovyanGFX\libraries\lvgl 
Using library LovyanGFX at version 1.1.16 in folder: C:\Users\user\Downloads\CrowPanel-ESP32-Display-Course-File-main\CrowPanel-ESP32-Display-Course-File-main\CrowPanel_ESP32_Tutorial\Code\Lesson 2 Draw GUI with LovyanGFX\libraries\LovyanGFX 
exit status 1

Compilation error: exit status 1

Do you know how to fix this?

Regards

Comments

  • Hello @lboue
    Please refer to the video from 14:10, you need to modify '#define LV_USE_DEMO_WIDGETS 0' to '#define LV_USE_DEMO_WIDGETS 1' in lv_conf.h

  • Yes I've already modified the lv_conf.h file as shown in the video:

  • Hello @lboue
    The lv_conf.h should be placed at C:\Users[your user name]\Documents\Arduino\libraries. Please copy the modified lv_conf.h file to the libraries directory.

Sign In or Register to comment.