ESP-IDF5.0:包含EMBED_FILES的方法

ESP-IDF5.0:包含EMBED_FILES的方法

错误提示:

[5/7] Linking CXX executable simple.elf
FAILED: simple.elf
cmd.exe /C “cd . && D:\vscode-espressif\tools\xtensa-esp32-elf\esp-2021r2-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -mlongcalls -Wno-frame-address @CMakeFiles\simple.elf.rsp -o simple.elf && cd .”
d:/vscode-espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/…/lib/gcc/xtensa-esp32-elf/8.4.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: esp-idf/main/libmain.a(app_httpd.c.obj)😦.literal.monitor_handler+0x0): undefined reference to _binary_monitor_html_gz_end' d:/vscode-espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/main/libmain.a(app_httpd.c.obj):(.literal.monitor_handler+0x4): undefined reference to _binary_monitor_html_gz_start’
d:/vscode-espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/…/lib/gcc/xtensa-esp32-elf/8.4.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: esp-idf/main/libmain.a(app_httpd.c.obj)😦.literal.index_handler+0x0): undefined reference to _binary_index_ov2640_html_gz_end' d:/vscode-espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/main/libmain.a(app_httpd.c.obj):(.literal.index_handler+0x4): undefined reference to _binary_index_ov2640_html_gz_start’
d:/vscode-espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/…/lib/gcc/xtensa-esp32-elf/8.4.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: esp-idf/main/libmain.a(app_httpd.c.obj)😦.literal.index_handler+0x8): undefined reference to _binary_index_ov3660_html_gz_end' d:/vscode-espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/main/libmain.a(app_httpd.c.obj):(.literal.index_handler+0xc): undefined reference to _binary_index_ov3660_html_gz_start’
d:/vscode-espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/…/lib/gcc/xtensa-esp32-elf/8.4.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: esp-idf/main/libmain.a(app_httpd.c.obj)😦.literal.index_handler+0x10): undefined reference to _binary_index_ov5640_html_gz_end' d:/vscode-espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/main/libmain.a(app_httpd.c.obj):(.literal.index_handler+0x14): undefined reference to _binary_index_ov5640_html_gz_start’
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

修改方法:

在这里插入图片描述
EMBED_FILES:
在这里插入图片描述
修改main目录下的CMakeLists.txt
在这里插入图片描述

idf_component_register(SRCS “app_camera.c” “main.c” “app_wifi.c” “app_httpd.c” “app_mdns.c”
INCLUDE_DIRS “include”
#COMPONENT_REQUIRES esp32-camera esp-face nvs_flash esp_http_server fb_gfx mdns
EMBED_FILES “www/index_ov2640.html.gz” “www/index_ov3660.html.gz” “www/index_ov5640.html.gz” “www/monitor.html.gz”
)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值