ESP-ADF环境配置有问题 Failed to resolve component 'esp-adf-libs'.

NiceAlpha
Posts: 4
Joined: Sun Oct 16, 2022 9:49 am

ESP-ADF环境配置有问题 Failed to resolve component 'esp-adf-libs'.

Postby NiceAlpha » Sun Oct 16, 2022 10:28 am

E:\ESP32\play_mp3_control>idf.py set-target esp32
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'e:\esp32\play_mp3_control\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory e:\esp32\play_mp3_control\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 e:\esp32\play_mp3_control"...
fatal: not a git repository (or any of the parent directories): .git
-- Found Git: D:/esp/esptools/Espressif/tools/idf-git/2.34.2/cmd/git.exe (found version "2.34.1.windows.1")
-- Component directory D:/esp/esp_codes/esp-adf/components/esp-adf-libs does not contain a CMakeLists.txt file. No component will be added
-- Component directory D:/esp/esp_codes/esp-adf/components/esp-sr does not contain a CMakeLists.txt file. No component will be added
-- 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:/esp/esptools/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/esp/esptools/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/esp/esptools/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe - skipped
-- 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:/esp/esptools/Espressif/frameworks/esp-idf-v4.4.2/tools/cmake/build.cmake:201 (message):
Failed to resolve component 'esp-adf-libs'.
Call Stack (most recent call first):
D:/esp/esptools/Espressif/frameworks/esp-idf-v4.4.2/tools/cmake/build.cmake:227 (__build_resolve_and_add_req)
D:/esp/esptools/Espressif/frameworks/esp-idf-v4.4.2/tools/cmake/build.cmake:228 (__build_expand_requirements)
D:/esp/esptools/Espressif/frameworks/esp-idf-v4.4.2/tools/cmake/build.cmake:233 (__build_expand_requirements)
D:/esp/esptools/Espressif/frameworks/esp-idf-v4.4.2/tools/cmake/build.cmake:509 (__build_expand_requirements)
D:/esp/esptools/Espressif/frameworks/esp-idf-v4.4.2/tools/cmake/project.cmake:384 (idf_build_process)
CMakeLists.txt:10 (project)


-- Configuring incomplete, errors occurred!

如题 有没有大佬给解答一下 这该怎么办?
See also "E:/ESP32/play_mp3_control/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1

我试了各种版本的 IDF(4.4.2 4.4 4.1)
ADF是master分支
Failed to resolve component 'esp-adf-libs'.
都是在set-target esp32的时候报这个错

ESP-IDF好像是能正常运行 我往板子里少了个blink的例程 是没问题的

NiceAlpha
Posts: 4
Joined: Sun Oct 16, 2022 9:49 am

Re: ESP-ADF环境配置有问题 Failed to resolve component 'esp-adf-libs'.

Postby NiceAlpha » Mon Oct 17, 2022 2:51 am

我整明白了
esp-adf-libs是ESP-ADF下的一个子模块
把ESP-ADF git下来之后还需要更新子模块

ESP-ADF 用的2.4
ESP-IDF用的realese/v4.4

NiceAlpha
Posts: 4
Joined: Sun Oct 16, 2022 9:49 am

Re: ESP-ADF环境配置有问题 Failed to resolve component 'esp-adf-libs'.

Postby NiceAlpha » Mon Oct 24, 2022 1:32 am

git ESP-ADF时候
git clone --recursive https://github.com/espressif/esp-adf.git
--recursive那个是递归的git,连带子模块一起git下来了
我当时用了tortoiseGit,只拷贝了地址,没勾选“递归”的选项,所以没下对应的子模块

Linc08
Posts: 13
Joined: Mon May 20, 2024 7:54 am

Re: ESP-ADF环境配置有问题 Failed to resolve component 'esp-adf-libs'.

Postby Linc08 » Wed Jun 19, 2024 10:07 am

对我来说有用。
我也遇到这个问题,然后git submodule update --init --recursive,经过漫长的等待,下载下来就好了

Who is online

Users browsing this forum: No registered users and 71 guests