Page 1 of 1

求助呢 编译adf框架出现错误

Posted: Wed Dec 22, 2021 3:47 pm
by yuanjie
yuan@ubuntu:~/esp/esp-adf/examples/get-started/play_mp3_control$ idf.py build
Executing action: all (aliases: build)
Running cmake in directory /home/yuan/esp/esp-adf/examples/get-started/play_mp3_control/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=0 /home/yuan/esp/esp-adf/examples/get-started/play_mp3_control"...
-- IDF_TARGET not set, using default target: esp32
-- Found Git: /usr/bin/git (found version "2.25.1")
-- 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: /home/yuan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/yuan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/yuan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- 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: /home/yuan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++
-- Check for working CXX compiler: /home/yuan/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -- 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 /home/yuan/esp/esp-idf/tools/cmake/build.cmake:200 (message):
Failed to resolve component 'jsmn'.
Call Stack (most recent call first):
/home/yuan/esp/esp-idf/tools/cmake/build.cmake:234 (__build_resolve_and_add_req)
/home/yuan/esp/esp-idf/tools/cmake/build.cmake:515 (__build_expand_requirements)
/home/yuan/esp/esp-idf/tools/cmake/project.cmake:422 (idf_build_process)
CMakeLists.txt:10 (project)


-- Configuring incomplete, errors occurred!
See also "/home/yuan/esp/esp-adf/examples/get-started/play_mp3_control/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1

Re: 求助呢 编译adf框架出现错误

Posted: Thu Dec 23, 2021 6:32 am
by ESP_ICY
检查下 ADF 的子模块是不是下载完全了, git submodule update --init --recursive

Re: 求助呢 编译adf框架出现错误

Posted: Thu Dec 23, 2021 9:16 am
by yuanjie
检查了子模块都全部更新了 还是不行

Re: 求助呢 编译adf框架出现错误

Posted: Wed Jan 05, 2022 8:47 am
by starrySky
同问,我也遇到了,命令也执行了,没效果,还是报错

Re: 求助呢 编译adf框架出现错误

Posted: Sun Jan 09, 2022 2:22 pm
by yuanjie
找到原因了 idf的版本太高了 降低版本才能对应adf框架

Re: 求助呢 编译adf框架出现错误

Posted: Mon Jan 10, 2022 8:59 am
by starrySky
yuanjie wrote:
Sun Jan 09, 2022 2:22 pm
找到原因了 idf的版本太高了 降低版本才能对应adf框架
用的哪个版本?