[已解决] 下载esp-iot-solution后无法编绎问题

pt_wei
Posts: 8
Joined: Thu Dec 02, 2021 7:33 am

[已解决] 下载esp-iot-solution后无法编绎问题

Postby pt_wei » Thu Dec 02, 2021 7:44 am

代码是从https://github.com/espressif/esp-iot-solution/下载的,不管是使用git下载,还是download压缩包,代码都是一样的。
下面是几个下载过程和编绎的图片。
我编绎的是工程“usb_camera_sd_card”.
使用命令idf.py set-target esp32s2提示以下错误:
Directory 'i:\esp32-s2-c3\esp-dev\esp-dev-kits-master\aa\esp-iot-solution\examples\usb\host\usb_camera_sd_card\build' doesn't seem to be a CMake build directory. Refusing to automatically delete files in this directory. Delete the directory manually to 'clean' it.

使用命令idf.py build提示以下错误:

-- Building ESP-IDF components for target esp32
CMake Error at I:/ESP32/esp-idf-v4.3/tools/cmake/build.cmake:189 (message):
Failed to resolve component 'usb'.
Call Stack (most recent call first):
I:/ESP32/esp-idf-v4.3/tools/cmake/build.cmake:215 (__build_resolve_and_add_req)
I:/ESP32/esp-idf-v4.3/tools/cmake/build.cmake:435 (__build_expand_requirements)
I:/ESP32/esp-idf-v4.3/tools/cmake/project.cmake:396 (idf_build_process)
CMakeLists.txt:17 (project)


-- Configuring incomplete, errors occurred!
See also "I:/ESP32-S2-C3/ESP-dev/esp-dev-kits-master/aa/esp-iot-solution/examples/usb/host/usb_camera_sd_card/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1


我使用的环境是IDF4.3,编绎4.3自带的教程是没有问题的,有大神指点一下问题所在吗?
切换到usb/add_usb_solutions后使用命令:git submodule update --init --recursive的方法我试了,错误是一样的。
Attachments
下载.jpg
git下载
下载.jpg (57.83 KiB) Viewed 11835 times
编绎出错.jpg
编绎其中一个工程出错
编绎出错.jpg (154.77 KiB) Viewed 11835 times
update.jpg
git下载后,updata了工程
update.jpg (57.83 KiB) Viewed 11835 times

morris
Espressif staff
Espressif staff
Posts: 290
Joined: Wed Sep 05, 2018 6:23 am

Re: 下载esp-iot-solution后无法编绎问题

Postby morris » Thu Dec 02, 2021 9:28 am

用idf4.4, usb component 从4.4版本才开始引入的

pt_wei
Posts: 8
Joined: Thu Dec 02, 2021 7:33 am

Re: 下载esp-iot-solution后无法编绎问题

Postby pt_wei » Thu Dec 02, 2021 12:02 pm

用idf4.4, usb component 从4.4版本才开始引入的
我看官网要求是IDF4.3就行了,大神,确定是4.4才支持吗?
官方关于esp-iot-solution的说明:
https://docs.espressif.com/projects/esp ... d.html#id2
Attachments
IDF版本.jpg
官网上说明
IDF版本.jpg (45.43 KiB) Viewed 11774 times

ICY
Espressif staff
Espressif staff
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: 下载esp-iot-solution后无法编绎问题

Postby ICY » Fri Dec 03, 2021 3:51 am

你用的是 iot-solution 的哪个分支? 和 USB 相关的工程应该是在 IOT-SOLUTION 的一个特殊分支上

pt_wei
Posts: 8
Joined: Thu Dec 02, 2021 7:33 am

Re: 下载esp-iot-solution后无法编绎问题

Postby pt_wei » Tue Dec 07, 2021 8:11 am

你用的是 iot-solution 的哪个分支? 和 USB 相关的工程应该是在 IOT-SOLUTION 的一个特殊分支上
能告诉我这个特殊分支怎么下载吗?

ICY
Espressif staff
Espressif staff
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: 下载esp-iot-solution后无法编绎问题

Postby ICY » Tue Dec 07, 2021 8:54 am

截图.png
截图.png (17.67 KiB) Viewed 11647 times

直接切换到这个分支就行了,然后切换完 git submodule update --init --recursive 更新下子模块

pt_wei
Posts: 8
Joined: Thu Dec 02, 2021 7:33 am

Re: 下载esp-iot-solution后无法编绎问题

Postby pt_wei » Tue Dec 07, 2021 1:54 pm

截图.png
直接切换到这个分支就行了,然后切换完 git submodule update --init --recursive 更新下子模块
首先,感谢。
问题已经解决。
我下载的esp-iot-solution是没有问题的,代码是全的。
引起问题正如你第一次回复的一样,是IDF的版本不对,他要求4.4的版本才能编绎。

Who is online

Users browsing this forum: PetalBot and 1 guest