Arduino IDE and compile

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
Achim_T
New user
Posts: 4
Joined: 09 May 2017, 16:58

Arduino IDE and compile

#1 Post by Achim_T » 09 May 2017, 17:15

Hello,
I am trying to compile the sourcode with the Arduino IDE. I am keeping exactly to these instructions:
https://www.letscontrolit.com/wiki/inde ... are_Upload

Unfortunately I always get these error messages:

Code: Select all

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:138: error: 'root' was not declared in this scope

     root.rewindDirectory();

     ^

Command:139: error: 'printDirectory' was not declared in this scope

     printDirectory(root, 0);

                           ^

Command:150: error: 'SD' was not declared in this scope

     SD.remove((char*)fname.c_str());

     ^

Command:155: error: 'lowestRAM' was not declared in this scope

     Serial.print(lowestRAM);

                  ^

Command:157: error: 'lowestRAMid' was not declared in this scope

     Serial.println(lowestRAMid);

                    ^

Command:170: error: 'loopCounterLast' was not declared in this scope

     Serial.print(100 - (100 * loopCounterLast / loopCounterMax));

                               ^

Command:170: error: 'loopCounterMax' was not declared in this scope

     Serial.print(100 - (100 * loopCounterLast / loopCounterMax));

                                                 ^

Command:188: error: 'SecuritySettings' was not declared in this scope

     Serial.println(sizeof(SecuritySettings));

                           ^

Command:190: error: 'Settings' was not declared in this scope

     Serial.println(sizeof(Settings));

                           ^

Command:192: error: 'ExtraTaskSettings' was not declared in this scope

     Serial.println(sizeof(ExtraTaskSettings));

                           ^

Command:194: error: 'Device' was not declared in this scope

     Serial.println(sizeof(Device));

                           ^

Command:206: error: 'Wire' was not declared in this scope

     Wire.beginTransmission(Par1);  // address

     ^

Command:215: error: 'Wire' was not declared in this scope

     Wire.beginTransmission(Par1);  // address

     ^

Command:231: error: 'Settings' was not declared in this scope

     Settings.Build = Par1;

     ^

Command:238: error: 'Settings' was not declared in this scope

     Settings.deepSleep = 0;

     ^

Command:248: error: 'Wire' was not declared in this scope

       Wire.beginTransmission(address);

       ^

Command:281: error: 'UserVar' was not declared in this scope

       UserVar[(VARS_PER_TASK * (Par1 - 1)) + Par2 - 1] = result;

       ^

Command:281: error: 'VARS_PER_TASK' was not declared in this scope

       UserVar[(VARS_PER_TASK * (Par1 - 1)) + Par2 - 1] = result;

                ^

Command:293: error: 'RULES_TIMER_MAX' was not declared in this scope

     if (Par1>=0 && Par1<RULES_TIMER_MAX)

                         ^

Command:298: error: 'RulesTimer' was not declared in this scope

         RulesTimer[Par1 - 1] = millis() + (1000 * Par2);

         ^

Command:301: error: 'RulesTimer' was not declared in this scope

         RulesTimer[Par1 - 1] = 0L;

         ^

Command:315: error: 'Settings' was not declared in this scope

       Settings.UseRules = true;

       ^

Command:317: error: 'Settings' was not declared in this scope

       Settings.UseRules = false;

       ^

Command:326: error: 'Settings' was not declared in this scope

     if (Settings.UseRules)

         ^

Command:353: error: 'MQTTclient' was not declared in this scope

       MQTTclient.publish(topic.c_str(), value.c_str(), Settings.MQTTRetainFlag);

       ^

Command:353: error: 'Settings' was not declared in this scope

       MQTTclient.publish(topic.c_str(), value.c_str(), Settings.MQTTRetainFlag);

                                                        ^

Command:367: error: 'IPAddress' was not declared in this scope

     IPAddress UDP_IP(ipaddress[0], ipaddress[1], ipaddress[2], ipaddress[3]);

     ^

Command:367: error: expected ';' before 'UDP_IP'

     IPAddress UDP_IP(ipaddress[0], ipaddress[1], ipaddress[2], ipaddress[3]);

               ^

Command:368: error: 'portUDP' was not declared in this scope

     portUDP.beginPacket(UDP_IP, port.toInt());

     ^

Command:368: error: 'UDP_IP' was not declared in this scope

     portUDP.beginPacket(UDP_IP, port.toInt());

                         ^

Command:381: error: 'WiFiClient' was not declared in this scope

     WiFiClient client;

     ^

Command:381: error: expected ';' before 'client'

     WiFiClient client;

                ^

Command:382: error: 'client' was not declared in this scope

     if (client.connect(host.c_str(), port.toInt()))

         ^

Command:399: error: 'LOG_LEVEL_DEBUG' was not declared in this scope

           addLog(LOG_LEVEL_DEBUG, line);

                  ^

Command:414: error: 'SecuritySettings' was not declared in this scope

     strcpy(SecuritySettings.WifiSSID, Line + 9);

            ^

Command:420: error: 'SecuritySettings' was not declared in this scope

     strcpy(SecuritySettings.WifiKey, Line + 8);

            ^

Command:458: error: 'WiFi' was not declared in this scope

     WiFi.persistent(true); // use SDK storage of SSID/WPA parameters

     ^

Command:484: error: 'Settings' was not declared in this scope

     Settings.SerialLogLevel = Par1;

     ^

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:

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

 #pragma GCC visibility push(default)

                                     ^

Multiple libraries were found for "Servo.h"
 Used: E:\Program Files\Arduino\ESPeasy_portable\arduino-1.6.12P230\portable\packages\esp8266\hardware\esp8266\2.3.0\libraries\Servo
 Not used: E:\Program Files\Arduino\ESPeasy_portable\arduino-1.6.12P230\libraries\Servo
Multiple libraries were found for "SD.h"
 Used: E:\Program Files\Arduino\ESPeasy_portable\arduino-1.6.12P230\portable\packages\esp8266\hardware\esp8266\2.3.0\libraries\SD
 Not used: E:\Program Files\Arduino\ESPeasy_portable\arduino-1.6.12P230\libraries\SD
exit status 1
variable or field 'printDirectory' declared void

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
The included binaries to flash is not a problem.
Can anyone help please?

Achim_T
New user
Posts: 4
Joined: 09 May 2017, 16:58

Re: Arduino IDE and compile

#2 Post by Achim_T » 09 May 2017, 18:20

It lay on the project director, instead of ESPEasy I always used ESPeasy ...

Who is online

Users browsing this forum: Ahrefs [Bot], Anthropic Claude Bot [bot] and 3 guests