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

yuanjie
Posts: 20
Joined: Wed Dec 22, 2021 3:26 pm

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

Postby yuanjie » Wed Dec 22, 2021 3:47 pm

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

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

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

Postby ESP_ICY » Thu Dec 23, 2021 6:32 am

检查下 ADF 的子模块是不是下载完全了, git submodule update --init --recursive

yuanjie
Posts: 20
Joined: Wed Dec 22, 2021 3:26 pm

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

Postby yuanjie » Thu Dec 23, 2021 9:16 am

检查了子模块都全部更新了 还是不行

starrySky
Posts: 4
Joined: Wed Jan 05, 2022 8:35 am

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

Postby starrySky » Wed Jan 05, 2022 8:47 am

同问,我也遇到了,命令也执行了,没效果,还是报错

yuanjie
Posts: 20
Joined: Wed Dec 22, 2021 3:26 pm

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

Postby yuanjie » Sun Jan 09, 2022 2:22 pm

找到原因了 idf的版本太高了 降低版本才能对应adf框架

starrySky
Posts: 4
Joined: Wed Jan 05, 2022 8:35 am

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

Postby starrySky » Mon Jan 10, 2022 8:59 am

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

Who is online

Users browsing this forum: No registered users and 21 guests