刚在win10下搭建好环境,根据官网教程,把esp-idf下examples下的目录复制出来,配置、编译、烧写都正常;
但是,从github下载的工程,同样的方法,在idf.py menuconfig时就报错了,请教下,问题出在哪里?
信息如下:
D:\DEV\ESP32\camera_web_server>idf.py menuconfig
Executing action: menuconfig
Running cmake in directory d:\dev\esp32\camera_web_server\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 d:\dev\esp32\camera_web_server"...
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.29.1.windows.1")
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: D:/DEV/ESP32/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: D:/DEV/ESP32/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: D:/DEV/ESP32/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: D:/DEV/ESP32/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: D:/DEV/ESP32/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32
CMake Error at D:/DEV/ESP32/esp-idf/tools/cmake/build.cmake:186 (message):
Failed to resolve component 'esp32-camera'.
Call Stack (most recent call first):
D:/DEV/ESP32/esp-idf/tools/cmake/build.cmake:212 (__build_resolve_and_add_req)
D:/DEV/ESP32/esp-idf/tools/cmake/build.cmake:426 (__build_expand_requirements)
D:/DEV/ESP32/esp-idf/tools/cmake/project.cmake:395 (idf_build_process)
CMakeLists.txt:8 (project)
-- Configuring incomplete, errors occurred!
See also "D:/DEV/ESP32/camera_web_server/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
idf.py menuconfig 报错
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: idf.py menuconfig 报错
错误是:Failed to resolve component 'esp32-camera'.
你是从哪下载的 camera_web_server?似乎不全,打包下载的还是 git 拉的?如果用的是 git,那需要 git clone --recursive https://xxxxx.git 把子仓库一起拉下来。
你是从哪下载的 camera_web_server?似乎不全,打包下载的还是 git 拉的?如果用的是 git,那需要 git clone --recursive https://xxxxx.git 把子仓库一起拉下来。
-
- Posts: 2
- Joined: Fri Apr 23, 2021 8:30 am
Re: idf.py menuconfig 报错
搞定了,谢谢!
是要把git拉取到的元件库复制到IDF_PATH的元件库里,或者把IDF_PATH改到git拉取的目录就可以了。感谢楼上的提示!
是要把git拉取到的元件库复制到IDF_PATH的元件库里,或者把IDF_PATH改到git拉取的目录就可以了。感谢楼上的提示!
Who is online
Users browsing this forum: Google [Bot], weddawd and 82 guests