A build error occurred by ADF v2.2 with IDF v4.2 system.

pavepart
Posts: 9
Joined: Thu Jun 25, 2020 4:38 am

A build error occurred by ADF v2.2 with IDF v4.2 system.

Postby pavepart » Mon Jan 04, 2021 8:18 am

I downloaded ADF 2.2 version. And set IDF 4.2 version where in [esp-adf/esp-idf] folder.
The IDF HelloWorld example works well.
However, an error occurred when I build an ADF example(play_mp3).
Looking for a solution. Please help me.

The error message like this.






C:\msys32\home\Firmware\new-adf\examples\get-started\play_mp3>idf.py build
Executing action: all (aliases: build)
Running cmake in directory c:\msys32\home\firmware\new-adf\examples\get-started\play_mp3\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 c:\msys32\home\firmware\new-adf\examples\get-started\play_mp3"...
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.21.0.windows.1")
-- IDF_TARGET not set, using default target: esp32
-- 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: C:/esp/tools/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/esp/tools/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/esp/tools/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/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: C:/esp/tools/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: C:/esp/tools/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/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
-- Building ESP-IDF components for target esp32
CMake Error at C:/msys32/home/Firmware/new-adf/esp-idf/tools/cmake/build.cmake:186 (message):
Failed to resolve component 'esp-adf-libs'.
Call Stack (most recent call first):
C:/msys32/home/Firmware/new-adf/esp-idf/tools/cmake/build.cmake:212 (__build_resolve_and_add_req)
C:/msys32/home/Firmware/new-adf/esp-idf/tools/cmake/build.cmake:213 (__build_expand_requirements)
C:/msys32/home/Firmware/new-adf/esp-idf/tools/cmake/build.cmake:218 (__build_expand_requirements)
C:/msys32/home/Firmware/new-adf/esp-idf/tools/cmake/build.cmake:218 (__build_expand_requirements)
C:/msys32/home/Firmware/new-adf/esp-idf/tools/cmake/build.cmake:218 (__build_expand_requirements)
C:/msys32/home/Firmware/new-adf/esp-idf/tools/cmake/build.cmake:426 (__build_expand_requirements)
C:/msys32/home/Firmware/new-adf/esp-idf/tools/cmake/project.cmake:395 (idf_build_process)
CMakeLists.txt:8 (project)


-- Configuring incomplete, errors occurred!
See also "C:/msys32/home/Firmware/new-adf/examples/get-started/play_mp3/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1

MSD-Systems
Posts: 2
Joined: Fri Jan 08, 2021 6:10 pm

Re: A build error occurred by ADF v2.2 with IDF v4.2 system.

Postby MSD-Systems » Fri Jan 08, 2021 6:40 pm

Hi,

it seems you are missing the 'esp-adf-libs'.

Did you have done a correct clone ?

Code: Select all

git clone --recursive https://github.com/espressif/esp-adf.git
best regards

luxianquan
Posts: 2
Joined: Tue Jul 13, 2021 12:23 pm

Re: A build error occurred by ADF v2.2 with IDF v4.2 system.

Postby luxianquan » Wed Jul 21, 2021 9:08 am

You should run code "set ADF_PATH=your_adf_path" first then run "idf.py build"
I faced the same problem and solved like this way.

Return to “ESP-ADF”

Who is online

Users browsing this forum: No registered users and 5 guests