错误信息:
编译中...
使用平台的 ‘esp32’ 开发板,在列出的文件夹中:D:\windowsoftInstalled\mixly\mixly2.0-win32-x64\arduino-cli\Arduino15\packages\esp32\hardware\esp32\2.0.7
使用平台的 ‘esp32’ 代码,在列出的文件夹中:D:\windowsoftInstalled\mixly\mixly2.0-win32-x64\arduino-cli\Arduino15\packages\esp32\hardware\esp32\2.0.7
cmd /c if exist "D:\\windowsoftInstalled\\mixly\\mixly2.0-win32-x64\\testArduino\\partitions.csv" COPY /y "D:\\windowsoftInstalled\\mixly\\mixly2.0-win32-x64\\testArduino\\partitions.csv" "D:\\windowsoftInstalled\\mixly\\mixly2.0-win32-x64\\mixlyBuild\\partitions.csv"
cmd /c if not exist "D:\\windowsoftInstalled\\mixly\\mixly2.0-win32-x64\\mixlyBuild\\partitions.csv" if exist "D:\\windowsoftInstalled\\mixly\\mixly2.0-win32-x64\\arduino-cli\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.7\\variants\\esp32\\partitions.csv" COPY "D:\\windowsoftInstalled\\mixly\\mixly2.0-win32-x64\\arduino-cli\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.7\\variants\\esp32\\partitions.csv" "D:\\windowsoftInstalled\\mixly\\mixly2.0-win32-x64\\mixlyBuild\\partitions.csv"
cmd /c if not exist "D:\\windowsoftInstalled\\mixly\\mixly2.0-win32-x64\\mixlyBuild\\partitions.csv" COPY "D:\\windowsoftInstalled\\mixly\\mixly2.0-win32-x64\\arduino-cli\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.7\\tools\\partitions\\default.csv" "D:\\windowsoftInstalled\\mixly\\mixly2.0-win32-x64\\mixlyBuild\\partitions.csv"
esptool.py v4.5
Creating esp32 image...
Merged 1 ELF section
Successfully created esp32 image.
cmd /c if exist "D:\\windowsoftInstalled\\mixly\\mixly2.0-win32-x64\\testArduino\\build_opt.h" COPY /y "D:\\windowsoftInstalled\\mixly\\mixly2.0-win32-x64\\testArduino\\build_opt.h" "D:\\windowsoftInstalled\\mixly\\mixly2.0-win32-x64\\mixlyBuild\\build_opt.h"
cmd /c if not exist "D:\\windowsoftInstalled\\mixly\\mixly2.0-win32-x64\\mixlyBuild\\build_opt.h" type nul > "D:\\windowsoftInstalled\\mixly\\mixly2.0-win32-x64\\mixlyBuild\\build_opt.h"
正在检测使用的库。。。
bits/c++config.h 的替代方案:[]
ResolveLibrary(bits/c++config.h)
-> 候选: []
In file included from d:\windowsoftinstalled\mixly\mixly2.0-win32-x64\arduino-cli\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\stdlib.h:36,
from D:\windowsoftInstalled\mixly\mixly2.0-win32-x64\arduino-cli\Arduino15\packages\esp32\hardware\esp32\2.0.7/tools/sdk/esp32/include/newlib/platform_include/assert.h:21,
from d:\windowsoftinstalled\mixly\mixly2.0-win32-x64\arduino-cli\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\sys-include\sys\reent.h:503,
from D:\windowsoftInstalled\mixly\mixly2.0-win32-x64\arduino-cli\Arduino15\packages\esp32\hardware\esp32\2.0.7/tools/sdk/esp32/include/newlib/platform_include/sys/reent.h:17,
from d:\windowsoftinstalled\mixly\mixly2.0-win32-x64\arduino-cli\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\sys-include\stdio.h:60,
from D:\windowsoftInstalled\mixly\mixly2.0-win32-x64\arduino-cli\Arduino15\packages\esp32\hardware\esp32\2.0.7\cores\esp32/Arduino.h:27,
from sketch\testArduino.ino.cpp:1:
d:\windowsoftinstalled\mixly\mixly2.0-win32-x64\arduino-cli\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\cstdlib:41:10: fatal error: bits/c++config.h: No such file or directory
#include <bits/c++config.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
构建时出错:exit status 1
已使用的平台 版本 路径
esp32:esp32 2.0.7 D:\windowsoftInstalled\mixly\mixly2.0-win32-x64\arduino-cli\Arduino15\packages\esp32\hardware\esp32\2.0.7
==编译失败==
解决方法:
1、找到缺失文件的目录
D:\windowsoftInstalled\mixly\mixly2.0-win32-x64\arduino-cli\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\bits
发现给目录下的确缺少了必要的头文件
2、进入
D:\windowsoftInstalled\mixly\mixly2.0-win32-x64\arduino-cli\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\xtensa-esp32-elf\bits
将这个目录的所有文件全部复制粘贴到第1步的目录中。
3、重新编译正常
参考:https://www.cnblogs.com/jsit-dj-it/p/15627698.html