arduino IDE开发esp32CAM文件缺失问题bits/c++config.h

错误信息

Arduino:1.8.16 (Windows 10), 开发板:"ESP32 Wrover Module, Huge APP (3MB No OTA/1MB SPIFFS), QIO, 80MHz, 921600, None"

In file included from c:\users\administrator.win-s9s46joca7n\appdata\local\arduino15\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:\Users\Administrator.WIN-S9S46JOCA7N\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:142,

                 from sketch\CameraWebServer.ino.cpp:1:

c:\users\administrator.win-s9s46joca7n\appdata\local\arduino15\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

为开发板 ESP32 Wrover Module 编译时出错。



在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。

image

解决

  1. 找到缺失文件的目录
    C:\Users\Administrator.WIN-S9S46JOCA7N\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\bits
    这个目录可能啥都没有。
    image

  2. 进入
    C:\Users\Administrator.WIN-S9S46JOCA7N\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\xtensa-esp32-elf\bits目录
    image
    将这个目录的所有文件全部复制粘贴到第1步的目录中。

结果

image

posted @ 2021-12-01 10:29  DingJie1024  阅读(3289)  评论(0编辑  收藏  举报