为开发板 Generic ESP8266 Module 编译时出错,谁能帮忙看看,谢谢-Arduino中文社区 - Powered by Discuz! Archiver

3065876047 发表于 2021-12-11 22:33

为开发板 Generic ESP8266 Module 编译时出错,谁能帮忙看看,谢谢

Arduino:1.8.12 (Windows 10), 开发板:"Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

In file included from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.1\libraries\ESP8266mDNS\src/ESP8266mDNS.h:48,
"Blinker.h" 对应多个库
已使用: C:\Users\Administrator\Documents\Arduino\libraries\Blinker
               from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:9,
未使用:C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master
               from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:10,
               from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Blinker.h:36,
               from F:\点灯\bendikaiguan\bendikaiguan.ino:18:
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.1\libraries\ESP8266mDNS\src/LEAmDNS.h:109:10: fatal error: include/UdpContext.h: No such file or directory
109 | #include "include/UdpContext.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

exit status 1
为开发板 Generic ESP8266 Module 编译时出错。

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

3065876047 发表于 2021-12-11 22:35

最开始的代码是这样的Arduino:1.8.12 (Windows 10), 开发板:"Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, dtr (aka nodemcu), 26 MHz, 40MHz, QIO (fast), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"


In file included from c:\users\administrator\documents\arduino\libraries\blinker\src\modules\websockets\websocketsserver.h:30,
               from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:30,
               from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:16,
               from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Blinker.h:38,
               from F:\点灯\bendikaiguan\bendikaiguan.ino:18:
c:\users\administrator\documents\arduino\libraries\blinker\src\modules\websockets\WebSockets.h:168:38: error: 'WiFiClientSecure' does not name a type; did you mean 'WiFiClient'?
168 | #define WEBSOCKETS_NETWORK_SSL_CLASS WiFiClientSecure
      |                                    ^~~~~~~~~~~~~~~~
c:\users\administrator\documents\arduino\libraries\blinker\src\modules\websockets\WebSockets.h:286:5: note: in expansion of macro 'WEBSOCKETS_NETWORK_SSL_CLASS'
286 |   WEBSOCKETS_NETWORK_SSL_CLASS * ssl;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:16,
               from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Blinker.h:38,
               from F:\点灯\bendikaiguan\bendikaiguan.ino:18:
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h: In member function 'bool BlinkerMQTT::checkInit()':
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:2745:34: error: 'class WiFiClass' has no member named 'smartConfigDone'
2745 |                         if (WiFi.smartConfigDone())
      |                                  ^~~~~~~~~~~~~~~
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:2751:106: error: 'class WiFiClass' has no member named 'psk'
2751 |                                 BLINKER_LOG(BLINKER_F("SSID: "), WiFi.SSID(), BLINKER_F(" PSWD: "), WiFi.psk());
      |                                                                                                          ^~~
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:2763:38: error: 'class WiFiClass' has no member named 'stopSmartConfig'
2763 |                                 WiFi.stopSmartConfig();
      |                                    ^~~~~~~~~~~~~~~
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:2791:30: error: 'class WiFiClass' has no member named 'beginSmartConfig'
2791 |                         WiFi.beginSmartConfig();
      |                              ^~~~~~~~~~~~~~~~
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h: In member function 'void BlinkerMQTT::multiBegin(const char*, const char*)':
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:2931:10: error: 'class WiFiClass' has no member named 'mode'
2931 |   WiFi.mode(WIFI_STA);
      |          ^~~~
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:2931:15: error: 'WIFI_STA' was not declared in this scope
2931 |   WiFi.mode(WIFI_STA);
      |               ^~~~~~~~
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:2936:14: error: 'class WiFiClass' has no member named 'hostname'; did you mean 'hostByName'?
2936 |         WiFi.hostname(_hostname.c_str());
      |            ^~~~~~~~
      |            hostByName
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h: In member function 'bool BlinkerMQTT::autoInit()':
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:2995:10: error: 'class WiFiClass' has no member named 'mode'
2995 |   WiFi.mode(WIFI_STA);
      |          ^~~~
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:2995:15: error: 'WIFI_STA' was not declared in this scope
2995 |   WiFi.mode(WIFI_STA);
      |               ^~~~~~~~
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:3000:14: error: 'class WiFiClass' has no member named 'hostname'; did you mean 'hostByName'?
3000 |         WiFi.hostname(_hostname.c_str());
      |            ^~~~~~~~
      |            hostByName
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:3008:20: error: no matching function for call to 'WiFiClass::begin()'
3008 |         WiFi.begin();
      |                  ^
In file included from F:\点灯\bendikaiguan\bendikaiguan.ino:1:
C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:60:9: note: candidate: 'int WiFiClass::begin(char*)'
   60 |   int begin(char* ssid);
      |         ^~~~~
C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:60:9: note:   candidate expects 1 argument, 0 provided
C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:70:9: note: candidate: 'int WiFiClass::begin(char*, uint8_t, const char*)'
   70 |   int begin(char* ssid, uint8_t key_idx, const char* key);
      |         ^~~~~
C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:70:9: note:   candidate expects 3 arguments, 0 provided
C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:79:9: note: candidate: 'int WiFiClass::begin(char*, const char*)'
   79 |   int begin(char* ssid, const char *passphrase);
      |         ^~~~~
C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:79:9: note:   candidate expects 2 arguments, 0 provided
In file included from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:16,
               from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Blinker.h:38,
               from F:\点灯\bendikaiguan\bendikaiguan.ino:18:
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h: In member function 'void BlinkerMQTT::smartconfig()':
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:3044:10: error: 'class WiFiClass' has no member named 'mode'
3044 |   WiFi.mode(WIFI_STA);
      |          ^~~~
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:3044:15: error: 'WIFI_STA' was not declared in this scope
3044 |   WiFi.mode(WIFI_STA);
      |               ^~~~~~~~
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:3050:14: error: 'class WiFiClass' has no member named 'hostname'; did you mean 'hostByName'?
3050 |         WiFi.hostname(_hostname.c_str());
      |            ^~~~~~~~
      |            hostByName
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:3055:10: error: 'class WiFiClass' has no member named 'beginSmartConfig'
3055 |   WiFi.beginSmartConfig();
      |          ^~~~~~~~~~~~~~~~
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h: In member function 'void BlinkerMQTT::connectWiFi(const char*, const char*)':
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:3341:10: error: 'class WiFiClass' has no member named 'mode'
3341 |   WiFi.mode(WIFI_STA);
      |          ^~~~
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:3341:15: error: 'WIFI_STA' was not declared in this scope
3341 |   WiFi.mode(WIFI_STA);
      |               ^~~~~~~~
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:3346:14: error: 'class WiFiClass' has no member named 'hostname'; did you mean 'hostByName'?
3346 |         WiFi.hostname(_hostname.c_str());
      |            ^~~~~~~~
      |            hostByName
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:3352:20: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
3352 |         WiFi.begin(_ssid, _pswd);
      |                  ^~~~~
      |                  |
      |                  const char*
In file included from F:\点灯\bendikaiguan\bendikaiguan.ino:1:
C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:79:21: note:   initializing argument 1 of 'int WiFiClass::begin(char*, const char*)'
   79 |   int begin(char* ssid, const char *passphrase);
      |               ~~~~~~^~~~
In file included from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:16,
               from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Blinker.h:38,
               from F:\点灯\bendikaiguan\bendikaiguan.ino:18:
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:3355:20: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
3355 |         WiFi.begin(_ssid);
      |                  ^~~~~
      |                  |
      |                  const char*
In file included from F:\点灯\bendikaiguan\bendikaiguan.ino:1:
C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:60:21: note:   initializing argument 1 of 'int WiFiClass::begin(char*)'
   60 |   int begin(char* ssid);
      |               ~~~~~~^~~~
In file included from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:50,
               from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:17,
               from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Blinker.h:38,
               from F:\点灯\bendikaiguan\bendikaiguan.ino:18:
c:\users\administrator\documents\arduino\libraries\blinker\src\functions\blinkerota.h: In member function 'bool BlinkerOTA::update()':
c:\users\administrator\documents\arduino\libraries\blinker\src\functions\blinkerota.h:125:5: error: 'BearSSL' has not been declared
125 |   BearSSL::WiFiClientSecure client_s;
      |   ^~~~~~~
c:\users\administrator\documents\arduino\libraries\blinker\src\functions\blinkerota.h:133:17: error: 'client_s' was not declared in this scope; did you mean 'client_h'?
133 |   bool mfln = client_s.probeMaxFragmentLength(ota_host, ota_port, 1024);
      |               ^~~~~~~~
      |               client_h
In file included from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:17,
               from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Blinker.h:38,
               from F:\点灯\bendikaiguan\bendikaiguan.ino:18:
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: In member function 'void BlinkerApi::run()':
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:3707:30: error: 'class WiFiClass' has no member named 'reconnect'; did you mean 'disconnect'?
3707 |                         WiFi.reconnect();
      |                              ^~~~~~~~~
      |                              disconnect
"Blinker.h" 对应多个库
已使用: C:\Users\Administrator\Documents\Arduino\libraries\Blinker
未使用:C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master
exit status 1
为开发板 Generic ESP8266 Module 编译时出错。


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


页: [1]
查看完整版本: 为开发板 Generic ESP8266 Module 编译时出错,谁能帮忙看看,谢谢