使用vs code espressif插件编译v4.4版本sdk报错,输出如下
> Executing task: cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 .. <
-- Could NOT find Git (missing: GIT_EXECUTABLE)
CMake Warning at D:/esp/esp-idf-master/tools/cmake/git_submodules.cmake:4 (message):
Git executable was not found. Git submodule checks will not be executed.
If you have any build issues at all, start by adding git executable to the
PATH and rerun cmake to not see this warning again.
Call Stack (most recent call first):
D:/esp/esp-idf-master/tools/cmake/idf.cmake:39 (include)
D:/esp/esp-idf-master/tools/cmake/project.cmake:12 (include)
CMakeLists.txt:5 (include)
-- 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: D:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe - skipped
-- 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.
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file D:/MyProject/ESP32/hello/hello_world/sdkconfig
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
CMake Error at D:/esp/esp-idf-master/tools/cmake/component.cmake:304 (message):
Include directory
'D:/esp/esp-idf-master/components/mbedtls/mbedtls/include' is not a
directory.
Call Stack (most recent call first):
D:/esp/esp-idf-master/tools/cmake/component.cmake:477 (__component_add_include_dirs)
D:/esp/esp-idf-master/components/mbedtls/CMakeLists.txt:10 (idf_component_register)
-- Configuring incomplete, errors occurred!
See also "D:/MyProject/ESP32/hello/hello_world/build/CMakeFiles/CMakeOutput.log".
终端进程“C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 ..”已终止,退出代码: 1。
esp-idf编译报错
-
- Posts: 7
- Joined: Sat Jul 10, 2021 10:31 am
-
- Posts: 290
- Joined: Wed Sep 05, 2018 6:23 am
Re: esp-idf编译报错
'D:/esp/esp-idf-master/components/mbedtls/mbedtls/include' is not a directory.'
这个目录位于mbedtls的submodule中, 可能没有被checkout出来
git submodule update --init --recursive
这个目录位于mbedtls的submodule中, 可能没有被checkout出来
git submodule update --init --recursive
Who is online
Users browsing this forum: No registered users and 63 guests