Hallo,
ich versuche folgendes Projekt mit der Arduino IDE zu kompilieren.
https://www.letscontrolit.com/wiki/index.php/ESPEasy
Dabei halte ich mich an folgende Anleitung:
https://www.letscontrolit.com/wiki/index.php/Tutorial_Arduino_Firmware_Upload#Selecting_the_plugin_sets
leider erhalte ich beim kompilieren folgende Fehlermeldungen
Arduino: 1.6.12 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (1M SPIFFS)"
Command:522: error: variable or field 'printDirectory' declared void
void printDirectory(File dir, int numTabs) {
^
Command:522: error: 'File' was not declared in this scope
Command:522: error: expected primary-expression before 'int'
void printDirectory(File dir, int numTabs) {
^
Networking:394: error: variable or field 'SSDP_schema' declared void
void SSDP_schema(WiFiClient client) {
^
Networking:394: error: 'WiFiClient' was not declared in this scope
_N001_Email:110: error: 'WiFiClient' was not declared in this scope
boolean NPlugin_001_MTA(WiFiClient client, String aStr, String aWaitForPattern)
^
_N001_Email:110: error: expected primary-expression before 'aStr'
boolean NPlugin_001_MTA(WiFiClient client, String aStr, String aWaitForPattern)
^
_N001_Email:110: error: expected primary-expression before 'aWaitForPattern'
boolean NPlugin_001_MTA(WiFiClient client, String aStr, String aWaitForPattern)
^
_N001_Email:110: error: expression list treated as compound expression in initializer [-fpermissive]
boolean NPlugin_001_MTA(WiFiClient client, String aStr, String aWaitForPattern)
^
E:\Program Files\Arduino\ESPeasy_portable\ESPEasy_v2.0.0-dev8\Source\ESPeasy\Command.ino: In function 'bool safeReadStringUntil(Stream&, String&, char, int, int)':
Command:29: error: 'LOG_LEVEL_ERROR' was not declared in this scope
addLog(LOG_LEVEL_ERROR, F("Not enough bufferspace to read all input data!"));
^
Command:37: error: 'LOG_LEVEL_ERROR' was not declared in this scope
addLog(LOG_LEVEL_ERROR, F("Timeout while reading input data!"));
^
E:\Program Files\Arduino\ESPeasy_portable\ESPEasy_v2.0.0-dev8\Source\ESPeasy\Command.ino: In function 'void ExecuteCommand(byte, const char*)':
Command:89: error: 'RTC' was not declared in this scope
RTC.factoryResetCounter = 0;
^
Command:106: error: 'Settings' was not declared in this scope
if (Settings.NotificationEnabled[Par1 - 1] && Settings.Notification[Par1 - 1] != 0)
^
Command:109: error: aggregate 'EventStruct TempEvent' has incomplete type and cannot be defined
struct EventStruct TempEvent;
^
Command:111: error: 'NPlugin_id' was not declared in this scope
if (NPlugin_id[NotificationProtocolIndex] != 0)
^
Command:112: error: 'NPlugin_ptr' was not declared in this scope
NPlugin_ptr[NotificationProtocolIndex](NPLUGIN_NOTIFY, &TempEvent, message);
^
Command:112: error: 'NPLUGIN_NOTIFY' was not declared in this scope
NPlugin_ptr[NotificationProtocolIndex](NPLUGIN_NOTIFY, &TempEvent, message);
^
Command:120: error: 'RTC' was not declared in this scope
RTC.flashDayCounter = 0;
^
Command:137: error: 'File' was not declared in this scope
File root = SD.open("/");
^
Command:137: error: expected ';' before 'root'
File root = SD.open("/");
^
Command:491: error: 'Settings' was not declared in this scope
if (!str2ip(TmpStr1, Settings.IP))
^
Command:502: error: 'IPAddress' was not declared in this scope
IPAddress ip = WiFi.localIP();
^
Command:502: error: expected ';' before 'ip'
IPAddress ip = WiFi.localIP();
^
Command:503: error: 'ip' was not declared in this scope
sprintf_P(str, PSTR("%u.%u.%u.%u"), ip[0], ip[1], ip[2], ip[3]);
^
Command:505: error: 'BUILD' was not declared in this scope
Serial.print(F(" Build : ")); Serial.println((int)BUILD);
^
Command:506: error: 'Settings' was not declared in this scope
Serial.print(F(" Unit : ")); Serial.println((int)Settings.Unit);
^
Command:507: error: 'SecuritySettings' was not declared in this scope
Serial.print(F(" WifiSSID : ")); Serial.println(SecuritySettings.WifiSSID);
^
E:\Program Files\Arduino\ESPeasy_portable\ESPEasy_v2.0.0-dev8\Source\ESPeasy\Command.ino: At global scope:
Command:522: error: variable or field 'printDirectory' declared void
void printDirectory(File dir, int numTabs) {
^
Command:522: error: 'File' was not declared in this scope
Command:522: error: expected primary-expression before 'int'
void printDirectory(File dir, int numTabs) {
^
In file included from e:\program files\arduino\espeasy_portable\arduino-1.6.12p230\portable\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\typeinfo:34:0,
from e:\program files\arduino\espeasy_portable\arduino-1.6.12p230\portable\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\functional:53,
from E:\Program Files\Arduino\ESPeasy_portable\arduino-1.6.12P230\portable\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFiGeneric.h:27,
from E:\Program Files\Arduino\ESPeasy_portable\arduino-1.6.12P230\portable\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFiSTA.h:28,
from E:\Program Files\Arduino\ESPeasy_portable\arduino-1.6.12P230\portable\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:34,
from E:\Program Files\Arduino\ESPeasy_portable\ESPEasy_v2.0.0-dev8\Source\ESPeasy\ESPEasy.ino:273:
Mehrere Bibliotheken wurden für "Servo.h" gefunden
Benutzt: E:\Program Files\Arduino\ESPeasy_portable\arduino-1.6.12P230\portable\packages\esp8266\hardware\esp8266\2.3.0\libraries\Servo
e:\program files\arduino\espeasy_portable\arduino-1.6.12p230\portable\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\exception:35:37: error: expected declaration before end of line
Nicht benutzt: E:\Program Files\Arduino\ESPeasy_portable\arduino-1.6.12P230\libraries\Servo
Mehrere Bibliotheken wurden für "SD.h" gefunden
#pragma GCC visibility push(default)
Benutzt: E:\Program Files\Arduino\ESPeasy_portable\arduino-1.6.12P230\portable\packages\esp8266\hardware\esp8266\2.3.0\libraries\SD
^
Nicht benutzt: E:\Program Files\Arduino\ESPeasy_portable\arduino-1.6.12P230\libraries\SD
exit status 1
variable or field 'printDirectory' declared void
Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.
Ich kann damit nicht viel anfangen, evtl. kann mir hier ja einer sagen wo ich ansetzen muss, oder was ich übersehe.
Auf die richtigen libraries müsste er doch zugreifen, weil ich generell Esp8266 Modelle ohne Probleme flashen kann, nur mit diesem coolen Projekt will es leider nicht klappen. Ich habe auch schon diverse IDE Versionen durchprobiert, leider ohne Erfolg.
Dem Projekt liegen auch fertige binaries bei, die ich auch zum laufen gebracht habe, ich würde aber gerne meine eigenen erstellen.
Grüße