ESP-IDF 在线工具安装之后 编译example 报错

Xxxxxxxy
Posts: 1
Joined: Mon Aug 23, 2021 11:12 am

ESP-IDF 在线工具安装之后 编译example 报错

Postby Xxxxxxxy » Mon Aug 23, 2021 11:14 am

Code: Select all

-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/ESP/.espressif/tools/xtensa-esp32-elf/esp-2021r1-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:/ESP/.espressif/tools/xtensa-esp32-elf/esp-2021r1-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:/ESP/esp-idf/examples/bluetooth/bluedroid/ble/ble_ancs/sdkconfig
Loading defaults file D:/ESP/esp-idf/examples/bluetooth/bluedroid/ble/ble_ancs/sdkconfig.defaults...
Loading defaults file D:/ESP/esp-idf/examples/bluetooth/bluedroid/ble/ble_ancs/sdkconfig.defaults.esp32...
CMake Error at ../../../../../tools/cmake/component.cmake:306 (message):
  Include directory 'D:/ESP/esp-idf/components/mbedtls/mbedtls/include' is
  not a directory.
Call Stack (most recent call first):
  ../../../../../tools/cmake/component.cmake:478 (__component_add_include_dirs)
  ../../../../../components/mbedtls/CMakeLists.txt:10 (idf_component_register)


-- Configuring incomplete, errors occurred!
See also "D:/ESP/esp-idf/examples/bluetooth/bluedroid/ble/ble_ancs/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: ESP-IDF 在线工具安装之后 编译example 报错

Postby ESP_Gargamel » Thu Aug 26, 2021 2:58 am

看上去 submodule 没有拉全,你到 idf 目录下执行

Code: Select all

git submodule update --init --recursive --progress

Who is online

Users browsing this forum: Google [Bot] and 119 guests