让我在这里提出我的问题。我正在尝试将 NodeMCU 与基于 AWS Greengrass 库 (
https://github.com/aws-samples/arduino- ... ngrass-iot ) 的 AWS Greengrass 连接起来。当我尝试编译任何示例时,我得到以下信息:
代码:
全选Using board \'nodemcuv2\' from platform in folder: /Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1
Using core \'esp8266\' from platform in folder: /Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1
/Users/john/Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3 -I /Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/mkbuildoptglobals.py \"/Applica
tions/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build\" 10607 /private/var/folders/ld/f8tnbwrx6319c8ms2mppn8dm0000gn/T/arduino/sketches/025356207E7F985B33DDBF592D6C6819 /private/var/folders/ld/f8tnbwrx6319c8ms2mppn8dm0000gn/T/arduino/sketches/025356207E7F985B33DDBF592D6C6819/core/build.opt /Users/john/Documents/Arduino/nodeMCU/GreenGrass_test3/GreenGrass_test3.ino.globals.h /Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/cores/esp8266/CommonHFile.h
Note: optional global include file \'/Users/john/Documents/Arduino/nodeMCU/GreenGrass_test3/GreenGrass_test3.ino.globals.h\' does not exist.
Read more at
https://arduino-esp8266.readthedocs.io/en/latest/faq/a06-global-build-options.html
Detecting libraries used...
/Users/john/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE -DESP8266 @/private/var/folders/ld/f8tnbwrx6319c8ms2mppn8dm0000gn/T/arduino/sketches/025356207E7F985B33DDBF592D6C6819/core/build.opt -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/sdk/include -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/sdk/lwip2/include -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/sdk/libc/xtensa-lx106-elf/include -I/private/var/folders/ld/f8tnbwrx6319c8ms2mppn8dm0000gn/T/arduino/sketches/025356207E7F985B33DDBF592D6C6819/core -c @/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/warnings/none-g++ -Os -g -free -fipa-pta -Werror=return-type -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10607 -DARDUINO_ESP8266_NODEMCU_ESP12E -DARDUINO_ARCH_ESP8266 \"-DARDUINO_BOARD=\\\"ESP8266_NODEMCU_ESP12E\\\"\" \"-DARDUINO_BOARD_ID=\\\"nodemcuv2\\\"\" -DLED_BUILTIN=2 -DFLASHMODE_DIO -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/cores/esp8266 -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/variants/nodemcu /private/var/folders/ld/f8tnbwrx6319c8ms2mppn8dm0000gn/T/arduino/sketches/025356207E7F985B33DDBF592D6C6819/sketch/GreenGrass_test3.ino.cpp -o /dev/null
Alternatives for Wire.h: [
Wire@1.0]
ResolveLibrary(Wire.h)
-> candidates: [
Wire@1.0]
/Users/john/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE -DESP8266 @/private/var/folders/ld/f8tnbwrx6319c8ms2mppn8dm0000gn/T/arduino/sketches/025356207E7F985B33DDBF592D6C6819/core/build.opt -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/sdk/include -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/sdk/lwip2/include -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/sdk/libc/xtensa-lx106-elf/include -I/private/var/folders/ld/f8tnbwrx6319c8ms2mppn8dm0000gn/T/arduino/sketches/025356207E7F985B33DDBF592D6C6819/core -c @/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/warnings/none-g++ -Os -g -free -fipa-pta -Werror=return-type -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10607 -DARDUINO_ESP8266_NODEMCU_ESP12E -DARDUINO_ARCH_ESP8266 \"-DARDUINO_BOARD=\\\"ESP8266_NODEMCU_ESP12E\\\"\" \"-DARDUINO_BOARD_ID=\\\"nodemcuv2\\\"\" -DLED_BUILTIN=2 -DFLASHMODE_DIO -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/cores/esp8266 -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/variants/nodemcu -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/libraries/Wire /private/var/folders/ld/f8tnbwrx6319c8ms2mppn8dm0000gn/T/arduino/sketches/025356207E7F985B33DDBF592D6C6819/sketch/GreenGrass_test3.ino.cpp -o /dev/null
Alternatives for ESP8266WiFi.h: [
ESP8266WiFi@1.0]
ResolveLibrary(ESP8266WiFi.h)
-> candidates: [
ESP8266WiFi@1.0]
/Users/john/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE -DESP8266 @/private/var/folders/ld/f8tnbwrx6319c8ms2mppn8dm0000gn/T/arduino/sketches/025356207E7F985B33DDBF592D6C6819/core/build.opt -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/sdk/include -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/sdk/lwip2/include -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/sdk/libc/xtensa-lx106-elf/include -I/private/var/folders/ld/f8tnbwrx6319c8ms2mppn8dm0000gn/T/arduino/sketches/025356207E7F985B33DDBF592D6C6819/core -c @/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/warnings/none-g++ -Os -g -free -fipa-pta -Werror=return-type -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10607 -DARDUINO_ESP8266_NODEMCU_ESP12E -DARDUINO_ARCH_ESP8266 \"-DARDUINO_BOARD=\\\"ESP8266_NODEMCU_ESP12E\\\"\" \"-DARDUINO_BOARD_ID=\\\"nodemcuv2\\\"\" -DLED_BUILTIN=2 -DFLASHMODE_DIO -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/cores/esp8266 -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/variants/nodemcu -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/libraries/Wire -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/libraries/ESP8266WiFi/src /private/var/folders/ld/f8tnbwrx6319c8ms2mppn8dm0000gn/T/arduino/sketches/025356207E7F985B33DDBF592D6C6819/sketch/GreenGrass_test3.ino.cpp -o /dev/null
Alternatives for AWSGreenGrassIoT.h: [
AwsGreenGrassIoT@1.0]
ResolveLibrary(AWSGreenGrassIoT.h)
-> candidates: [
AwsGreenGrassIoT@1.0]
/Users/john/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE -DESP8266 @/private/var/folders/ld/f8tnbwrx6319c8ms2mppn8dm0000gn/T/arduino/sketches/025356207E7F985B33DDBF592D6C6819/core/build.opt -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/sdk/include -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/sdk/lwip2/include -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/sdk/libc/xtensa-lx106-elf/include -I/private/var/folders/ld/f8tnbwrx6319c8ms2mppn8dm0000gn/T/arduino/sketches/025356207E7F985B33DDBF592D6C6819/core -c @/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/warnings/none-g++ -Os -g -free -fipa-pta -Werror=return-type -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10607 -DARDUINO_ESP8266_NODEMCU_ESP12E -DARDUINO_ARCH_ESP8266 \"-DARDUINO_BOARD=\\\"ESP8266_NODEMCU_ESP12E\\\"\" \"-DARDUINO_BOARD_ID=\\\"nodemcuv2\\\"\" -DLED_BUILTIN=2 -DFLASHMODE_DIO -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/cores/esp8266 -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/variants/nodemcu -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/libraries/Wire -I/Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/libraries/ESP8266WiFi/src -I/Users/john/Documents/Arduino/libraries/AwsGreenGrassIoT/src /private/var/folders/ld/f8tnbwrx6319c8ms2mppn8dm0000gn/T/arduino/sketches/025356207E7F985B33DDBF592D6C6819/sketch/GreenGrass_test3.ino.cpp -o /dev/null
Alternatives for mbedtls/config.h: []
ResolveLibrary(mbedtls/config.h)
-> candidates: []
In file included from /Users/john/Documents/Arduino/libraries/AwsGreenGrassIoT/src/network_interface.h:35,
from /Users/john/Documents/Arduino/libraries/AwsGreenGrassIoT/src/aws_iot_mqtt_client.h:57,
from /Users/john/Documents/Arduino/libraries/AwsGreenGrassIoT/src/AWSGreenGrassIoT.h:20,
from /Users/john/Documents/Arduino/nodeMCU/GreenGrass_test3/GreenGrass_test3.ino:21:
/Users/john/Documents/Arduino/libraries/AwsGreenGrassIoT/src/network_platform.h:20:10: fatal error: mbedtls/config.h: No such file or directory
20 | #include \"mbedtls/config.h\"
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
Using library Wire at version 1.0 in folder: /Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/libraries/Wire
Using library ESP8266WiFi at version 1.0 in folder: /Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/libraries/ESP8266WiFi
Using library AwsGreenGrassIoT at version 1.0 in folder: /Users/john/Documents/Arduino/libraries/AwsGreenGrassIoT
exit status 1
Compilation error: exit status 1
所以我无法继续。
我的设置是:配备 Intel Core i7 和 16GB RAM 运行 Mac Os Ventura 13.1 的 Apple MacBook Pro 2017。
我正在使用 Arduino IDE 2.0.4 和 ESP8266 社区的 esp8266,版本为 3.1.1
我尝试安装 esp-idf 工具(
https://docs.espressif.com/projects/esp ... setup.html)和 mbedtls (
https://github.com/Mbed-TLS/mbedtls ) 但没有办法让它工作。我希望任何人都可以在这里给我一些启发。