Page 1 of 1

[已解决] 报错

Posted: Sat Dec 18, 2021 1:08 pm
by TIGER FU
按照官方例程跑的,为何会出错呢?
[1/6] cmd.exe /C "cd /D C:\ESP32\esp-who\esp-who\examples\human_face_recognition\build\bootloader && C:\ESP32\.espressif\tools\cmake\3.20.3\bin\cmake.exe --build ."
[1/1] cmd.exe /C "cd /D C:\ESP32\esp-who\esp-who\examples\human_face_recognition\build\bootloader\esp-idf\esptool_py && python C:/ESP32/ESP-IDF4.4/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 C:/ESP32/esp-who/esp-who/examples/human_face_recognition/build/bootloader/bootloader.bin"
Bootloader binary size 0x50e0 bytes. 0x1f20 bytes (28%) free.
[2/4] cmd.exe /C "cd . && C:\ESP32\.espressif\tools\xtensa-esp32s2-elf\esp-2021r2-8.4.0\xtensa-esp32s2-elf\bin\xtensa-esp32s2-elf-g++.exe -mlongcalls @CMakeFiles\human_face_recognition_lcd.elf.rsp -o human_face_recognition_lcd.elf && cd ."
FAILED: human_face_recognition_lcd.elf
cmd.exe /C "cd . && C:\ESP32\.espressif\tools\xtensa-esp32s2-elf\esp-2021r2-8.4.0\xtensa-esp32s2-elf\bin\xtensa-esp32s2-elf-g++.exe -mlongcalls @CMakeFiles\human_face_recognition_lcd.elf.rsp -o human_face_recognition_lcd.elf && cd ."
c:/esp32/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-8.4.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld.exe: esp-idf/freertos/libfreertos.a(port_common.c.obj):(.literal.main_task+0x10): undefined reference to `app_main'
c:/esp32/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-8.4.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld.exe: esp-idf/freertos/libfreertos.a(port_common.c.obj): in function `main_task':
C:/ESP32/ESP-IDF4.4/components/freertos/port/port_common.c:118: undefined reference to `app_main'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Re: 报错

Posted: Sat Dec 18, 2021 1:09 pm
by TIGER FU
例程是human_face_recognition

Re: 报错

Posted: Sun Dec 19, 2021 6:09 am
by ESP_ICY
你用的是哪个idf 的版本? 另外esp-who/examples/human_face_recognition 下面有两个例程, lcd 和terminal,你这边运行的是哪一个

Re: 报错

Posted: Sun Dec 19, 2021 8:36 am
by TIGER FU
你好
idf4.4
用的是lcd

Re: 报错

Posted: Mon Dec 20, 2021 3:24 am
by ESP_ICY
我这边是可以正常编译的,你这边执行下 idf.py fullclean 再重新编译一下看看

Re: 报错

Posted: Tue Dec 21, 2021 10:27 am
by TIGER FU
貌似clean也没用。
请问需要从新下载esp-who吗?
屏幕截图 2021-12-21 175426.png
屏幕截图 2021-12-21 175426.png (223.33 KiB) Viewed 10253 times

Re: 报错

Posted: Sat Jul 02, 2022 11:33 am
by wuboy19
ESP_ICY wrote:
Mon Dec 20, 2021 3:24 am
我这边是可以正常编译的,你这边执行下 idf.py fullclean 再重新编译一下看看
好兄弟牛批