Page 1 of 1

idf 5.0 rgb_panel 例程报错

Posted: Tue Apr 04, 2023 7:26 am
by marenmale
想请问一下
espidf5.0.0版本的LCD中的rgb_panel例程怎么跑起来,之前跑起来过几次,不过现在完全跑不起来了
报错代码中出现的错误均为例程中的源代码,且其头文件都是有包含的,请问是需要什么特殊配置吗
报错代码如下:
[5/7] Linking CXX executable rgb_panel.elf
FAILED: rgb_panel.elf
cmd.exe /C "cd . && D:\Espressif\tools\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\bin\xtensa-esp32s3-elf-g++.exe -mlongcalls @CMakeFiles\rgb_panel.elf.rsp -o rgb_panel.elf && cd ."
d:/espressif/tools/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/11.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: esp-idf/main/libmain.a(rgb_lcd_example_main.c.obj):(.literal.app_main+0x98): undefined reference to `esp_lcd_new_rgb_panel'
d:/espressif/tools/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/11.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: esp-idf/main/libmain.a(rgb_lcd_example_main.c.obj):(.literal.app_main+0x9c): undefined reference to `esp_lcd_rgb_panel_register_event_callbacks'
d:/espressif/tools/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/11.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: esp-idf/main/libmain.a(rgb_lcd_example_main.c.obj): in function `app_main':
C:/Users/tjp/Desktop/KD05/rgb_panel/main/rgb_lcd_example_main.c:222: undefined reference to `esp_lcd_new_rgb_panel'
d:/espressif/tools/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/11.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:/Users/tjp/Desktop/KD05/rgb_panel/main/rgb_lcd_example_main.c:231: undefined reference to `esp_lcd_rgb_panel_register_event_callbacks'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.