编译两天了一直遇到这个问题求助!

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

编译两天了一直遇到这个问题求助!

Postby yuanjie » Thu Dec 23, 2021 7:14 am

Executing action: all (aliases: build)
Running cmake in directory /home/yuan/C/esp/esp-adf/examples/player/pipeline_living_stream/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=0 /home/yuan/C/esp/esp-adf/examples/player/pipeline_living_stream"...
-- 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:8 (project)


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

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

Re: 编译两天了一直遇到这个问题求助!

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

同求问

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

Re: 编译两天了一直遇到这个问题求助!

Postby luxianquan » Wed Jan 19, 2022 8:22 am

ADF_PATH 这个路径设置了?

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

Re: 编译两天了一直遇到这个问题求助!

Postby yuanjie » Thu Feb 24, 2022 1:32 am

是idf 的版本太高了 换低版本的就可以了

ESP_HengYC
Posts: 184
Joined: Fri Dec 15, 2017 2:45 am

Re: 编译两天了一直遇到这个问题求助!

Postby ESP_HengYC » Thu Feb 24, 2022 2:16 am

yuanjie wrote:
Thu Dec 23, 2021 7:14 am
Executing action: all (aliases: build)
Running cmake in directory /home/yuan/C/esp/esp-adf/examples/player/pipeline_living_stream/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=0 /home/yuan/C/esp/esp-adf/examples/player/pipeline_living_stream"...
-- 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:8 (project)


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

1. 指定 $IDF_PATH, 在 IDF 目录下 使用 "./install.sh" " . ./export.sh"
2. 指定 $ADF_PATH, 把例如在 adf 的文件夹下, “export ADF_PATH=$PWD”
3. 上述的仓库,都要保证拉取 submodule 完整
4. 然后使用 idf.py set-target , menuconfig, build 编译。

Who is online

Users browsing this forum: No registered users and 22 guests