IDF快速入门 第7步-无法配置

GrandRiver
Posts: 9
Joined: Thu Dec 03, 2020 1:18 am

IDF快速入门 第7步-无法配置

Postby GrandRiver » Fri Dec 04, 2020 2:05 pm

请教请教啊~~~~刚开始玩,好不容易 安装 完工具,现在到了第7步,无法进行工程配置。 求解啊
PS: 之前安装 工具不顺序,按博主建议将pip版本 降至 16.7.9了,不晓得是否有影响的

E:\esp\hello_world>idf.py menuconfig
Executing action: menuconfig
Running cmake in directory e:\esp\hello_world\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 --warn-uninitialized -DCCACHE_ENABLE=1 e:\esp\hello_world"...
Warn about uninitialized values.
-- 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.2.0
-- The CXX compiler identification is GNU 8.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/GrandRiver/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/GrandRiver/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/GrandRiver/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.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:/Users/GrandRiver/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: C:/Users/GrandRiver/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.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
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Project version: 1
-- Building ESP-IDF components for target esp32
CMake Error at E:/esp/esp-idf/tools/cmake/build.cmake:186 (message):
Failed to resolve component 'audio_sal'.
Call Stack (most recent call first):
E:/esp/esp-idf/tools/cmake/build.cmake:217 (__build_resolve_and_add_req)
E:/esp/esp-idf/tools/cmake/build.cmake:426 (__build_expand_requirements)
E:/esp/esp-idf/tools/cmake/project.cmake:396 (idf_build_process)
CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
See also "E:/esp/hello_world/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1

GrandRiver
Posts: 9
Joined: Thu Dec 03, 2020 1:18 am

Re: IDF快速入门 第7步-无法配置

Postby GrandRiver » Mon Dec 07, 2020 9:30 am

不会整了。。。。

ESP_morris
Posts: 290
Joined: Wed Sep 05, 2018 6:23 am

Re: IDF快速入门 第7步-无法配置

Postby ESP_morris » Wed Dec 09, 2020 7:24 am

从你的log来看似乎是解析 audio_sal 这个组件的时候除了问题?请检查这个组建的Cmake文件是否存在。

这个组件并不在esp-idf中,如果你想测试ESP-IDF是否已经安装成功,我们推荐使用ESP-IDF自带的examples下的hello world。

GrandRiver
Posts: 9
Joined: Thu Dec 03, 2020 1:18 am

Re: IDF快速入门 第7步-无法配置

Postby GrandRiver » Wed Dec 09, 2020 2:08 pm

感谢回复!~
我之前有下载过ESP-ADF的环境,编译不过我才退回到IDF尝试编译,且路径确是在 esp-idf 下的hello_world;
按那个提示,我把adf/components 下的相应文件拷贝到 idf/components里面, 现在又报这个错误了,请问是为何:
e:\esp\hello_world>idf.py build
Executing action: all (aliases: build)
Running cmake in directory e:\esp\hello_world\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 --warn-uninitialized -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 e:\esp\hello_world"...
Warn about uninitialized values.
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.21.0.windows.1")
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/GrandRiver/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/GrandRiver/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/GrandRiver/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.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:/Users/GrandRiver/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: C:/Users/GrandRiver/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.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
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Project version: 1
-- Building ESP-IDF components for target esp32
CMake Error at E:/esp/esp-idf/CMakeLists.txt:5 (include):
include could not find load file:

/CMakeLists.txt


-- ccache will be used for faster recompilation
cmake failed with exit code 3221225725

cqh963852
Posts: 10
Joined: Fri Dec 11, 2020 1:17 pm

Re: IDF快速入门 第7步-无法配置

Postby cqh963852 » Mon Dec 21, 2020 1:39 am

Code: Select all

CMake Error at E:/esp/esp-idf/CMakeLists.txt:5 (include):
include could not find load file:

/CMakeLists.txt
建议你把对应的两个 CMakeLists.txt 都以代码的形式发出来。

Who is online

Users browsing this forum: No registered users and 151 guests