vscode下的ESP-IDF环境安装总不对

Jansen
Posts: 4
Joined: Tue Jan 11, 2022 7:27 am

vscode下的ESP-IDF环境安装总不对

Postby Jansen » Tue Jan 11, 2022 8:29 am

买了一块ESP32-S3的开发板,在VSCODE环境下安装ESP-IDFV4.3.2成功,编译加烧写均可以完成,但烧写后开发板上运行不正常,到论坛上查到说明需要ESP-IDF V4.4,安装后编译总有问题。

> Executing task: cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 .. <

-- Found Git: D:/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1")
fatal: not a git repository (or any of the parent directories): .git
-- 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-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-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-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-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 esp32s3
-- Project sdkconfig file E:/ESP32-S3/esp32_demo/hello_world/sdkconfig
CMake Error at D:/ESP32/esp-idf/tools/cmake/component.cmake:301 (message):
Include directory 'D:/ESP32/esp-idf/components/mbedtls/mbedtls/include' is
not a directory.
Call Stack (most recent call first):
D:/ESP32/esp-idf/tools/cmake/component.cmake:472 (__component_add_include_dirs)
D:/ESP32/esp-idf/components/mbedtls/CMakeLists.txt:10 (idf_component_register)


-- Configuring incomplete, errors occurred!
See also "E:/ESP32-S3/esp32_demo/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_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: vscode下的ESP-IDF环境安装总不对

Postby ESP_ICY » Tue Jan 11, 2022 10:00 am

这边确认一下您是使用的什么方式安装的 idf,子模块是不是完整安装了,另外在更换 idf 版本后需要重新执行下 install 工具链的安装,然后进行编译时需要删除下原有的build目录再重新编译

Jansen
Posts: 4
Joined: Tue Jan 11, 2022 7:27 am

Re: vscode下的ESP-IDF环境安装总不对

Postby Jansen » Tue Jan 11, 2022 12:17 pm

-- Configuring incomplete, errors occurred!
See also "E:/ESP32-S3/esp32_demo/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。


这是编译给的提示,不知道该怎么弄了。

Jansen
Posts: 4
Joined: Tue Jan 11, 2022 7:27 am

Re: vscode下的ESP-IDF环境安装总不对

Postby Jansen » Tue Jan 11, 2022 12:24 pm

在VSCODE中在线安装ESP-IDF时不知道什么原因,安装中总是存在ESP-IDF安装不成功,最后是采用去git网站下载ESP-IDF压缩包,然后解压,在VSCODE中安装ESP-IDF时选寻找电脑上的ESP-IDF版本才得以安装成功,包括环境工具等,但编译就成上面那样了。
不知道是什么原因造成在线安装ESP-IDF 4.4版本安装就不能完成,而且非常奇怪的是选择源为乐鑫自已的网站反而根本无法在线安装,只能选择GITHUB网站。

刘世航2022esp32
Posts: 2
Joined: Tue Jan 18, 2022 1:09 am

Re: vscode下的ESP-IDF环境安装总不对

Postby 刘世航2022esp32 » Tue Jan 18, 2022 1:50 am

大哥解决了吗?我的苹果系统也是安装不了4.4版本,乐鑫自己服务器的只能安装4.2.2的版本

wall-e888
Posts: 1
Joined: Fri Feb 11, 2022 2:46 am

Re: vscode下的ESP-IDF环境安装总不对

Postby wall-e888 » Fri Feb 11, 2022 3:07 am

CMake Error at /Users/cc/esp/esp-idf/tools/cmake/component.cmake:302 (message):
Include directory
'/Users/cc/esp/esp-idf/components/mbedtls/mbedtls/include' is not a
directory.
Call Stack (most recent call first):
/Users/cc/esp/esp-idf/tools/cmake/component.cmake:478 (__component_add_include_dirs)
/Users/cc/esp/esp-idf/components/mbedtls/CMakeLists.txt:3 (idf_component_register)


-- Configuring incomplete, errors occurred!
See also "/Users/cc/esp/hello_world/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
cc@Mac-mini hello_world % cmake --version
cmake version 3.23.0-rc1

这是我第一次搭建环境,也是遇到这个问题。试过IDF4.4、4.3、4.2(gitee上同步的)都会报这个错误,怀疑是系统兼容问题或工具版本问题。目前系统是Monterey 12.2的,cmake version 3.23.0-rc1 ,ninja --version
1.10.2

Who is online

Users browsing this forum: No registered users and 120 guests