版本4.3.1在启用http client的https功能后的一个链接错误

PzOeeF
Posts: 8
Joined: Fri Sep 10, 2021 11:35 am

版本4.3.1在启用http client的https功能后的一个链接错误

Postby PzOeeF » Tue Nov 02, 2021 7:18 am

版本4.3.1
在启用http client的https功能后:
1.png
1.png (27.87 KiB) Viewed 4484 times
在编译完,链接时出现错误:
2.png
2.png (112.17 KiB) Viewed 4484 times
......
cmd.exe /C "cd . && C:\Users\APPCC\.espressif\tools\xtensa-esp32-elf\esp-2021r1-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -mlongcalls -Wno-frame-address @CMakeFiles\call.elf.rsp -o call.elf && cd ."
c:/users/appcc/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a(esp_aes.c.obj):(.literal.esp_aes_block+0x0): undefined reference to `aes_hal_transform_block'
c:/users/appcc/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a(esp_aes.c.obj):(.literal.esp_aes_crypt_ecb+0xc): undefined reference to `aes_hal_setkey'
c:/users/appcc/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a(esp_aes.c.obj): in function `esp_aes_block':
......

我是漏了哪里没有设置吗?

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

Re: 版本4.3.1在启用http client的https功能后的一个链接错误

Postby ESP_ICY » Tue Nov 02, 2021 8:59 am

你这边是直接下载的4.3.1版本吗,还是之前有其他版本然后更新过去的

PzOeeF
Posts: 8
Joined: Fri Sep 10, 2021 11:35 am

Re: 版本4.3.1在启用http client的https功能后的一个链接错误

Postby PzOeeF » Wed Nov 03, 2021 3:18 am

通常使用idf.py flash monitor来编译、烧录、监视,使用这个方式是链接失败的

单独编译app就可以了,使用idf.py app

ESP_YJM
Posts: 300
Joined: Fri Feb 26, 2021 10:30 am

Re: 版本4.3.1在启用http client的https功能后的一个链接错误

Postby ESP_YJM » Thu Nov 18, 2021 10:03 am

这个应该是链接顺序问题,你可以在你工程目录下 CMakeLists.txt 文件里加上如下一行代码:

set(__PROJECT_GROUP_LINK_COMPONENTS 1)

Who is online

Users browsing this forum: No registered users and 67 guests