完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
让我在这里提出我的问题。我正在尝试将 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 \"/Applications/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 ) 但没有办法让它工作。我希望任何人都可以在这里给我一些启发。 |
|
相关推荐
1个回答
|
|
libraries/SPIFFS
/Users/john/Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3 /Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/mkspiffs/mkspiffs.py -c data -b 4096 -p 256 -s 0xF0000 /var/folders/2p/y1hbn8bd5zj7rwjx_c0jnqym0000gn/T/arduino_build_xxxxx/sketchname.spiffs.bin DynamicJsonBuffer.h: No such file or directory Multiple libraries were found for "WiFiClientSecure.h" Used: /Users/john/Documents/Arduino/libraries/AWS_Greengrass_WiFiClient Not used: /Users/john/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.1/libraries/ESP8266WiFi/src/include Not used: /Users/john/Documents/Arduino/libraries/ESP8266WiFi #error "Please include either User_Config.h or AutoConnect.h before EasyBuzzer.h." In file included from /Users/john/Documents/Arduino/libraries/AWS_Greengrass_WiFiClient/src/GGWiFiClientSecure.cpp:33:0: /Users/john/Documents/Arduino/libraries/AWS_Greengrass_WiFiClient/src/WiFiClient.h:24:10: error: using typedef-name 'WiFiClient' after 'class' typedef class WiFiClient WiFiClient; 出现这个问题的原因可能是您的Arduino环境没有正确设置或缺少必要的依赖项。首先,确保您已正确安装了Arduino IDE和NodeMCU的驱动程序。然后,请检查您是否已将所需的库和功能包添加到Arduino环境中。如果您没有添加AWS Greengrass库,则需要将其添加到Arduino IDE中。 另外,请检查您的代码是否正确地引用了所需的库和头文件。如果没有,请更新代码以正确引用这些文件。如果以上步骤仍未解决问题,请尝试更新Arduino IDE和所需的库,并重新编译您的代码。如果问题仍然存在,请尝试联系AWS Greengrass社区或技术支持,以获取更进一步的帮助。 |
|
|
|
只有小组成员才能发言,加入小组>>
545浏览 6评论
457浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
437浏览 5评论
441浏览 4评论
411浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 02:45 , Processed in 0.803451 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号