编译ESP8266出错
Arduino:1.8.13 (Windows 10), 开发板:"Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), no dtr (aka ck), 26 MHz, 40MHz, QIO (fast), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1 (legacy), v2 Lower Memory, Disabled, None, Only Sketch, 115200"In file included from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:10:0,
from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker.h:36,
from C:\Users\Administrator\Desktop\sketch_dec01a\sketch_dec01a.ino:4:
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h: In member function 'virtual char* BlinkerMQTT::lastRead()':
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h:905:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "";
^
In file included from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:90:0,
from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:11,
from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker.h:36,
from C:\Users\Administrator\Desktop\sketch_dec01a\sketch_dec01a.ino:4:
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApiBase.h: In member function 'char* BlinkerBridge_key::getName()':
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApiBase.h:196:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "false";
^
In file included from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:91:0,
from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:11,
from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker.h:36,
from C:\Users\Administrator\Desktop\sketch_dec01a\sketch_dec01a.ino:4:
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::deviceName()':
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h:104:86: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char * deviceName() { if (isInit) return conn->deviceName(); else return ""; }
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::authKey()':
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h:105:83: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char * authKey() { if (isInit) return conn->authKey(); else return "";}
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::dataParse()':
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h:255:86: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char* dataParse() { if (canParse) return conn->lastRead(); else return ""; }
^
In file included from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:11:0,
from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker.h:36,
from C:\Users\Administrator\Desktop\sketch_dec01a\sketch_dec01a.ino:4:
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: At global scope:
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:815:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
BlinkerWidgets_string _BUILTIN_SWITCH = BlinkerWidgets_string(BLINKER_CMD_BUILTIN_SWITCH);
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::bridgeKey(uint8_t)':
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7241:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "";
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::bridgeName(uint8_t)':
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7248:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "false";
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_str(uint8_t)':
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7877:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "";
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_joy(uint8_t)':
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7884:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "";
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_rgb(uint8_t)':
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7891:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "";
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_int(uint8_t)':
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7897:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "";
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_tab(uint8_t)':
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7903:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "";
^
C:\Users\Administrator\Desktop\sketch_dec01a\sketch_dec01a.ino: At global scope:
C:\Users\Administrator\Desktop\sketch_dec01a\sketch_dec01a.ino:13:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
BlinkerButton Button1("btn-abc");//注意:要和APP组件’数据键名’一致
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\WebSockets\WebSocketsClient.cpp: In member function 'void WebSocketsClient::loop()':
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\WebSockets\WebSocketsClient.cpp:174:87: warning: 'bool BearSSL::WiFiClientSecure::setCACert(const uint8_t*, size_t)' is deprecated (declared at C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:142): This is deprecated AxTLS API, check https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/src/WiFiClientSecure.h#L25-L99 [-Wdeprecated-declarations]
_client.ssl->setCACert((const uint8_t *)_CA_cert, strlen(_CA_cert) + 1);
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\WebSockets\WebSocketsClient.cpp: In member function 'void WebSocketsClient::connectedCb()':
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\WebSockets\WebSocketsClient.cpp:761:68: warning: 'bool BearSSL::WiFiClientSecure::verify(const char*, const char*)' is deprecated (declared at C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:182): This is deprecated AxTLS API, check https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/src/WiFiClientSecure.h#L25-L99 [-Wdeprecated-declarations]
if(!_client.ssl->verify(_fingerprint.c_str(), _host.c_str())) {
^
In file included from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\arduino/../painlessmesh/mesh.hpp:11:0,
from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\arduino/../painlessMeshConnection.h:19,
from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\arduino/wifi.hpp:7,
from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\painlessMeshSTA.cpp:13:
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp: In function 'void painlessmesh::plugin::ota::addPackageCallback(Scheduler&, painlessmesh::plugin::PackageHandler<T>&, TSTRING)':
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp:280:3: warning: 'SPIFFS' is deprecated (declared at C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
SPIFFS.begin();// Start the SPI Flash Files System
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp:282:7: warning: 'SPIFFS' is deprecated (declared at C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
if (SPIFFS.exists(currentFW->ota_fn)) {
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp:283:17: warning: 'SPIFFS' is deprecated (declared at C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
auto file = SPIFFS.open(currentFW->ota_fn, "r");
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp: In lambda function:
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp:371:23: warning: 'SPIFFS' is deprecated (declared at C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
auto file = SPIFFS.open(updateFW->ota_fn, "w");
^
In file included from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\painlessmesh/mesh.hpp:11:0,
from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\painlessMeshConnection.h:19,
from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\painlessMeshConnection.cpp:9:
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\painlessmesh/ota.hpp: In function 'void painlessmesh::plugin::ota::addPackageCallback(Scheduler&, painlessmesh::plugin::PackageHandler<T>&, TSTRING)':
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\painlessmesh/ota.hpp:280:3: warning: 'SPIFFS' is deprecated (declared at C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
SPIFFS.begin();// Start the SPI Flash Files System
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\painlessmesh/ota.hpp:282:7: warning: 'SPIFFS' is deprecated (declared at C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
if (SPIFFS.exists(currentFW->ota_fn)) {
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\painlessmesh/ota.hpp:283:17: warning: 'SPIFFS' is deprecated (declared at C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
auto file = SPIFFS.open(currentFW->ota_fn, "r");
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\painlessmesh/ota.hpp: In lambda function:
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\painlessmesh/ota.hpp:371:23: warning: 'SPIFFS' is deprecated (declared at C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
auto file = SPIFFS.open(updateFW->ota_fn, "w");
^
In file included from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\arduino/../painlessmesh/mesh.hpp:11:0,
from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\arduino/../painlessMeshConnection.h:19,
from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\arduino/wifi.hpp:7,
from D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\wifi.cpp:2:
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp: In function 'void painlessmesh::plugin::ota::addPackageCallback(Scheduler&, painlessmesh::plugin::PackageHandler<T>&, TSTRING)':
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp:280:3: warning: 'SPIFFS' is deprecated (declared at C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
SPIFFS.begin();// Start the SPI Flash Files System
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp:282:7: warning: 'SPIFFS' is deprecated (declared at C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
if (SPIFFS.exists(currentFW->ota_fn)) {
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp:283:17: warning: 'SPIFFS' is deprecated (declared at C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
auto file = SPIFFS.open(currentFW->ota_fn, "r");
^
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp: In lambda function:
D:\�û�Ŀ¼\�ҵ��ĵ�\Arduino\libraries\blinker-library-master\src\modules\painlessMesh\arduino/../painlessmesh/ota.hpp:371:23: warning: 'SPIFFS' is deprecated (declared at C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
auto file = SPIFFS.open(updateFW->ota_fn, "w");
^
c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: core\core.a(core_esp8266_main.cpp.o): in function `__loop_end':
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/core_esp8266_main.cpp:185: undefined reference to `setup'
c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/core_esp8266_main.cpp:185: undefined reference to `loop'
c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: core\core.a(core_esp8266_main.cpp.o): in function `loop_wrapper()':
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/core_esp8266_main.cpp:191: undefined reference to `setup'
c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/core_esp8266_main.cpp:192: undefined reference to `loop'
collect2.exe: error: ld returned 1 exit status
exit status 1
为开发板 Generic ESP8266 Module 编译时出错。
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
Arduino:1.8.13 (Windows 10), 开发板:"Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), no dtr (aka ck), 26 MHz, 40MHz, QIO (fast), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1 (legacy), v2 Lower Memory, Disabled, None, Only Sketch, 115200" In file included from sketch\sketch_dec01a.ino.cpp:1:0:C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/Arduino.h:296:26: fatal error: pins_arduino.h: No such file or directory #include "pins_arduino.h" ^compilation terminated.exit status 1为开发板 Generic ESP8266 Module 编译时出错。 在文件 -> 首选项开启 “编译过程中显示详细输出”选项 这份报告会包含更多信息。 虽然我也没有认真看,但是你的一堆中文路径,对编译可能不是很友好
页:
[1]