同样的代码编译多次,每次错误原因都不一样(每次都是错误之后,再次点击上传,没有修改任何代码,拔插硬件):
错误1:
"C:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\tools\\xtensa-esp32s3-elf-gcc\\8.4.0/bin/xtensa-esp32s3-elf-g++" -DHAVE_CONFIG_H "-DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h"" -DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX -D_GNU_SOURCE "-DIDF_VER="v4.4.4"" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -iprefix "C:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/tools/sdk/esp32s3/include/" "@C:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/tools/sdk/esp32s3/flags/includes" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/libraries/lvgl/src" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/libraries/ESP32_IO_Expander/src" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/libraries/ESP32_Display_Panel/src" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/libraries/SD/src" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/libraries/asr/src" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/libraries/DFRobot_ESPASR/src" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/libraries/Adafruit_NeoPixel/src" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/libraries/unihiker_k10/src" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\cache\\tmp_dev-DFRobot-unihikerK10\\build" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/tools/sdk/esp32s3/qio_opi/include" -mlongcalls -ffunction-sections -fdata-sections -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -freorder-blocks -Wwrite-strings -fstack-protector -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu++11 -fexceptions -fno-rtti -c -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_esp32s3bit -DARDUINO_ARCH_ESP32S3 "-DARDUINO_BOARD="esp32s3bit"" "-DARDUINO_VARIANT="esp32s3bit"" -DARDUINO_PARTITION_large_spiffs_16MB -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DBOARD_HAS_PSRAM -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 "@C:\\Users\\antho\\AppData\\Local\\mind+\\cache\\tmp_dev-DFRobot-unihikerK10\\build/build_opt.h" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1\\cores\\esp32" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1\\variants\\esp32s3bit" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1\\libraries\\DFRobot_AHT20" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1\\libraries\\Wire\\src" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1\\libraries\\FS\\src" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1\\libraries\\SPI\\src" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1\\libraries\\TFT_eSPI" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1\\libraries\\SPIFFS\\src" "C:\\Users\\antho\\AppData\\Local\\mind+\\cache\\tmp_dev-DFRobot-unihikerK10\\build\\sketch\\tmp_dev-DFRobot-unihikerK10.ino.cpp" -o "C:\\Users\\antho\\AppData\\Local\\mind+\\cache\\tmp_dev-DFRobot-unihikerK10\\build\\preproc\\sketch_merged.cpp"
In file included from C:\Users\antho\AppData\Local\mind+\cache\tmp_dev-DFRobot-unihikerK10\tmp_dev-DFRobot-unihikerK10.ino:6:
C:\Users\antho\AppData\Local\mind+\Arduino\packages\mindplus\hardware\esp32s3\1.0.1/libraries/unihiker_k10/src/unihiker_k10.h:32:10: fatal error: lv_qrcode.h: No such file or directory
#include "lv_qrcode.h"
^~~~~~~~~~~~~
compilation terminated. 复制代码
错误2:In file included from c:\users\antho\appdata\local\mind+\arduino\packages\mindplus\hardware\esp32s3\1.0.1\libraries\lvgl\src\misc\lv_style.h:22,
from c:\users\antho\appdata\local\mind+\arduino\packages\mindplus\hardware\esp32s3\1.0.1\libraries\lvgl\src\draw\lv_draw.h:18,
from c:\users\antho\appdata\local\mind+\arduino\packages\mindplus\hardware\esp32s3\1.0.1\libraries\lvgl\src/hal/lv_hal_disp.h:21,
from c:\users\antho\appdata\local\mind+\arduino\packages\mindplus\hardware\esp32s3\1.0.1\libraries\lvgl\src/hal/lv_hal.h:16,
from c:\users\antho\appdata\local\mind+\arduino\packages\mindplus\hardware\esp32s3\1.0.1\libraries\lvgl\lvgl.h:33,
from C:\Users\antho\AppData\Local\mind+\Arduino\packages\mindplus\hardware\esp32s3\1.0.1/libraries/lvgl/src/lvgl.h:17,
from C:\Users\antho\AppData\Local\mind+\Arduino\packages\mindplus\hardware\esp32s3\1.0.1/libraries/unihiker_k10/src/unihiker_k10.h:19,
from C:\Users\antho\AppData\Local\mind+\cache\tmp_dev-DFRobot-unihikerK10\tmp_dev-DFRobot-unihikerK10.ino:6:
c:\users\antho\appdata\local\mind+\arduino\packages\mindplus\hardware\esp32s3\1.0.1\libraries\lvgl\src\misc\lv_txt.h:23: internal compiler error: Segmentation fault
#include "lv_types.h"
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
使用 1.0.0 版本的 DFRobot_AHT20 库,在列出的文件夹中:C:\Users\antho\AppData\Local\mind+\Arduino\packages\mindplus\hardware\esp32s3\1.0.1\libraries\DFRobot_AHT20
使用 2.0.0 版本的 Wire 库,在列出的文件夹中:C:\Users\antho\AppData\Local\mind+\Arduino\packages\mindplus\hardware\esp32s3\1.0.1\libraries\Wire
使用 2.0.0 版本的 FS 库,在列出的文件夹中:C:\Users\antho\AppData\Local\mind+\Arduino\packages\mindplus\hardware\esp32s3\1.0.1\libraries\FS
[92m已使用的库[0m [92m版本[0m [90m路径[0m
[93mDFRobot_AHT20[0m 1.0.0 [90mC:\Users\antho\AppData\Local\mind+\Arduino\packages\mindplus\hardware\esp32s3\1.0.1\libraries\DFRobot_AHT20[0m
[93mWire[0m 2.0.0 [90mC:\Users\antho\AppData\Local\mind+\Arduino\packages\mindplus\hardware\esp32s3\1.0.1\libraries\Wire[0m
[93mFS[0m 2.0.0 [90mC:\Users\antho\AppData\Local\mind+\Arduino\packages\mindplus\hardware\esp32s3\1.0.1\libraries\FS[0m
[92m已使用的平台[0m [92m版本[0m [90m路径[0m
[93mmindplus:esp32s3[0m 1.0.1 [90mC:\Users\antho\AppData\Local\mind+\Arduino\packages\mindplus\hardware\esp32s3\1.0.1[0m
构建时出错:exit status 1
1
复制代码
错误3:
生成函数原型。。。
"C:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\tools\\xtensa-esp32s3-elf-gcc\\8.4.0/bin/xtensa-esp32s3-elf-g++" -DHAVE_CONFIG_H "-DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h"" -DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX -D_GNU_SOURCE "-DIDF_VER="v4.4.4"" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -iprefix "C:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/tools/sdk/esp32s3/include/" "@C:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/tools/sdk/esp32s3/flags/includes" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/libraries/lvgl/src" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/libraries/ESP32_IO_Expander/src" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/libraries/ESP32_Display_Panel/src" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/libraries/SD/src" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/libraries/asr/src" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/libraries/DFRobot_ESPASR/src" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/libraries/Adafruit_NeoPixel/src" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/libraries/unihiker_k10/src" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\cache\\tmp_dev-DFRobot-unihikerK10\\build" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1/tools/sdk/esp32s3/qio_opi/include" -mlongcalls -ffunction-sections -fdata-sections -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -freorder-blocks -Wwrite-strings -fstack-protector -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu++11 -fexceptions -fno-rtti -c -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_esp32s3bit -DARDUINO_ARCH_ESP32S3 "-DARDUINO_BOARD="esp32s3bit"" "-DARDUINO_VARIANT="esp32s3bit"" -DARDUINO_PARTITION_large_spiffs_16MB -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DBOARD_HAS_PSRAM -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 "@C:\\Users\\antho\\AppData\\Local\\mind+\\cache\\tmp_dev-DFRobot-unihikerK10\\build/build_opt.h" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1\\cores\\esp32" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1\\variants\\esp32s3bit" "-IC:\\Users\\antho\\AppData\\Local\\mind+\\Arduino\\packages\\mindplus\\hardware\\esp32s3\\1.0.1\\libraries\\DFRobot_AHT20" "C:\\Users\\antho\\AppData\\Local\\mind+\\cache\\tmp_dev-DFRobot-unihikerK10\\build\\sketch\\tmp_dev-DFRobot-unihikerK10.ino.cpp" -o "C:\\Users\\antho\\AppData\\Local\\mind+\\cache\\tmp_dev-DFRobot-unihikerK10\\build\\preproc\\sketch_merged.cpp"
In file included from C:\Users\antho\AppData\Local\mind+\Arduino\packages\mindplus\hardware\esp32s3\1.0.1/libraries/unihiker_k10/src/unihiker_k10.h:13,
from C:\Users\antho\AppData\Local\mind+\cache\tmp_dev-DFRobot-unihikerK10\tmp_dev-DFRobot-unihikerK10.ino:6:
C:\Users\antho\AppData\Local\mind+\Arduino\packages\mindplus\hardware\esp32s3\1.0.1\libraries\DFRobot_AHT20/DFRobot_AHT20.h:26:10: fatal error: Wire.h: No such file or directory
#include <Wire.h>
^~~~~~~~
compilation terminated. 复制代码