[已解决] 报错

TIGER FU
Posts: 14
Joined: Sat Dec 11, 2021 6:57 am

[已解决] 报错

Postby TIGER FU » Sat Dec 18, 2021 1:08 pm

按照官方例程跑的,为何会出错呢?
[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.

TIGER FU
Posts: 14
Joined: Sat Dec 11, 2021 6:57 am

Re: 报错

Postby TIGER FU » Sat Dec 18, 2021 1:09 pm

例程是human_face_recognition

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: 报错

Postby ESP_ICY » Sun Dec 19, 2021 6:09 am

你用的是哪个idf 的版本? 另外esp-who/examples/human_face_recognition 下面有两个例程, lcd 和terminal,你这边运行的是哪一个

TIGER FU
Posts: 14
Joined: Sat Dec 11, 2021 6:57 am

Re: 报错

Postby TIGER FU » Sun Dec 19, 2021 8:36 am

你好
idf4.4
用的是lcd

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: 报错

Postby ESP_ICY » Mon Dec 20, 2021 3:24 am

我这边是可以正常编译的,你这边执行下 idf.py fullclean 再重新编译一下看看

TIGER FU
Posts: 14
Joined: Sat Dec 11, 2021 6:57 am

Re: 报错

Postby TIGER FU » Tue Dec 21, 2021 10:27 am

貌似clean也没用。
请问需要从新下载esp-who吗?
屏幕截图 2021-12-21 175426.png
屏幕截图 2021-12-21 175426.png (223.33 KiB) Viewed 10296 times

wuboy19
Posts: 2
Joined: Fri May 20, 2022 10:02 am

Re: 报错

Postby wuboy19 » Sat Jul 02, 2022 11:33 am

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

Who is online

Users browsing this forum: No registered users and 81 guests