【已解决】ESP-IDF编译例程hello_world不通过

LLLITrain
Posts: 2
Joined: Tue Jun 27, 2023 7:26 am

【已解决】ESP-IDF编译例程hello_world不通过

Postby LLLITrain » Tue Jun 27, 2023 7:33 am

系统:win10
IDF:v5.0.2
IDE:VS Code
刚刚下载了ESP-IDF,尝试配置了两天,始终在编译中出现如下报错:
fatal error: cannot execute 'd:/applications/espressifide/espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/../libexec/gcc/xtensa-esp32-elf/11.2.0/cc1.exe': CreateProcess: No such file or directory
compilation terminated.
f3feabb7b7bc3fe665bd3dae4568f16.png
f3feabb7b7bc3fe665bd3dae4568f16.png (30.64 KiB) Viewed 1671 times
无论是在vscode中编译还是直接在ESP-IDF的CMD中编译都出现该错误,求助各位大佬帮忙看看是怎么回事?

ESP_Rainbow
Posts: 7
Joined: Fri Oct 28, 2022 7:37 am

Re: ESP-IDF编译例程hello_world不通过

Postby ESP_Rainbow » Tue Jun 27, 2023 10:13 am

您好,windows 环境上请使用 ESP-IDF CMD 终端环境来编译,不要使用 Power Shell CMD 终端环境。使用 esp-idf CMD 环境编译之前,可以先运行一下工具链脚本:install.bat 和 export.bat

LLLITrain
Posts: 2
Joined: Tue Jun 27, 2023 7:26 am

Re: ESP-IDF编译例程hello_world不通过

Postby LLLITrain » Tue Jun 27, 2023 1:17 pm

已解决。解决办法:彻底重装VS Code。

Who is online

Users browsing this forum: No registered users and 30 guests