【发布时间】:2021-10-22 16:27:49
【问题描述】:
我正在开发 DOIT ESP32 DEVKIT V1,并且我正在使用 Arduino IDE 1.8.13 (Windows 10 Pro Education x64) 对该板进行编码。我还从 Arduino IDE 中的板管理器安装了 ESP32 板(和 ESP8266)。它工作了好几天,直到一个朋友给我发了一个 .ino 文件,打开它并尝试在我的板上编译和上传该文件后,发生了一个奇怪的编译错误(这与我朋友的系统上发生的错误相同) ,她不得不切换到另一个系统才能继续顺利工作)。我在 Arduino IDE 的首选项下的 Additional Boards Manager URLs 选项中使用这些 URL:
https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json
编译时出现以下错误信息:
In file included from c:\programdata\matlab\supportpackages\r2018a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\algorithm:60:0,
from C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:142,
from sketch\sketch_aug21a.ino.cpp:1:
c:\programdata\matlab\supportpackages\r2018a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\utility:68:28: fatal error: bits/c++config.h: No such file or directory
compilation terminated.
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.
请为我提供解决此问题的分步指南,因为我不熟悉此类错误和目录问题。请注意,当我选择 Arduino AVR Boards(如 MEGA、UNO 等)时,没有编译错误。我已经尝试从板管理器重新安装 ESP32 板,但没有成功。
【问题讨论】:
-
删除板卡支持包文件夹
esp32再尝试安装 -
感谢@Juraj 成功了!问题出在文件夹中。实际上没有文件夹。所以我手动创建了文件夹并在那里安装了核心。固定的! :)
标签: arduino compilation fatal-error esp32