Problems to compile espeasy

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
sledge
Normal user
Posts: 17
Joined: 20 Jan 2017, 20:42

Problems to compile espeasy

#1 Post by sledge » 10 Aug 2018, 16:50

Hi Guys,

i try to compile the mega branch to test some plugins. Unfortunatelly i get a lot of errors trying to compile with platformio. The debug looks like this:

Code: Select all

Warning! Access to system environment variable via `${env.TRAVIS_TAG}` is deprecated. Please use `${sysenv.TRAVIS_TAG}` instead
Processing normal_1024 (platform: espressif8266; board: esp12e; framework: arduino)
 
Verbose mode can be enabled via `-v, --verbose` option
PLATFORM: Espressif 8266 > Espressif ESP8266 ESP-12E
SYSTEM: ESP8266 80MHz 80KB RAM (4MB Flash)
Converting ESPEasy.ino

Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 41 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ESP8266mDNS>
|   |-- <ESP8266WiFi> 1.0
|-- <SDS011 sensor Library> 0.0.5

|   |-- <EspSoftwareSerial> 3.3.1
|-- <Adafruit Motor Shield V2 Library> 1.0.4
|   |-- <Wire> 1.0
|-- <SparkFun APDS9960 RGB and Gesture Sensor> 1.4.2
|   |-- <Wire> 1.0
|-- <AS_BH1750>
|   |-- <Wire> 1.0
|-- <AM2320>
|   |-- <Wire> 1.0
|-- <LiquidCrystal_I2C>
|   |-- <Wire> 1.0
|-- <Adafruit NeoPixel> 1.0.6
|-- <Servo(esp8266)> 1.0.2
|-- <ESP8266 Oled Driver for SSD1306 display> 2.0.1
|   |-- <Wire> 1.0
|-- <ESP8266WebServer> 1.0
|   |-- <ESP8266WiFi> 1.0
|-- <PubSubClient> 2.6
|-- <ESP8266WiFi> 1.0
|-- <IRremoteESP8266> 1.2.0
|-- <Adafruit TCS34725> 1.0.1
|   |-- <Wire> 1.0
|-- <EspSoftwareSerial> 3.3.1
|-- <SD(esp8266)> 1.0.5
|   |-- <SPI> 1.0
|-- <ArduinoOTA> 1.0
|   |-- <ESP8266WiFi> 1.0
|   |-- <ESP8266mDNS>
|   |   |-- <ESP8266WiFi> 1.0
|-- <Json> 5.6.4
|-- <MechInputs> 0.0.1
|-- <DNSServer> 1.1.0
|   |-- <ESP8266WiFi> 1.0
|-- <CHT16K33 LED Matrix Library> 0.0.1
|   |-- <Wire> 1.0
|-- <Wire> 1.0
|-- <ESP8266HTTPUpdateServer> 1.0
|   |-- <ESP8266WebServer> 1.0
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <ESP8266WiFi> 1.0

|-- <SPI> 1.0
|-- <Adafruit MPR121> 1.0.0
|   |-- <Wire> 1.0
Compiling .pioenvs\normal_1024\src\ESPEasy.ino.cpp.o
Compiling .pioenvs\normal_1024\libb94\ESP8266WiFi\ESP8266WiFi.cpp.o
Compiling .pioenvs\normal_1024\libb94\ESP8266WiFi\ESP8266WiFiAP.cpp.o
Compiling .pioenvs\normal_1024\libb94\ESP8266WiFi\ESP8266WiFiGeneric.cpp.o
Compiling .pioenvs\normal_1024\libb94\ESP8266WiFi\ESP8266WiFiMulti.cpp.o
Compiling .pioenvs\normal_1024\libb94\ESP8266WiFi\ESP8266WiFiSTA.cpp.o
Compiling .pioenvs\normal_1024\libb94\ESP8266WiFi\ESP8266WiFiScan.cpp.o
Compiling .pioenvs\normal_1024\libb94\ESP8266WiFi\WiFiClient.cpp.o
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P035_IRTX.ino:6:2: error: stray '#' in program
S#include <IRremoteESP8266.h>
^
Compiling .pioenvs\normal_1024\libb94\ESP8266WiFi\WiFiClientSecure.cpp.o
Compiling .pioenvs\normal_1024\libb94\ESP8266WiFi\WiFiServer.cpp.o
Compiling .pioenvs\normal_1024\libb94\ESP8266WiFi\WiFiServerSecure.cpp.o
Compiling .pioenvs\normal_1024\libb94\ESP8266WiFi\WiFiUdp.cpp.o
Compiling .pioenvs\normal_1024\lib0eb\ESP8266mDNS\ESP8266mDNS.cpp.o
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/ESPEasy.ino: In function 'boolean setSystemTimer(long unsigned int, byte, byte, byte, byte)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/ESPEasy.ino:1153:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/ESPEasy.ino: In function 'boolean setSystemCMDTimer(long unsigned int, String&)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/ESPEasy.ino:1168:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/ESPEasy.ino: In function 'boolean checkSystemTimers()':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/ESPEasy.ino:1203:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Command.ino: In function 'bool safeReadStringUntil(Stream&, String&, char, int, int)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Command.ino:27:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (str.length()>=maxSize)
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Command.ino:35:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
} while(millis() - startMillis < timeout);
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Command.ino: In function 'void ExecuteCommand(byte, const char*)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Command.ino:275:12: warning: unused variable 'error' [-Wunused-variable]

byte error = Calculate(TmpStr1, &result);
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Controller.ino: In function 'boolean sendData(EventStruct*)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Controller.ino:51:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Controller.ino: In function 'void MQTTCheck()':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Controller.ino:159:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if (Protocol[ProtocolIndex].usesMQTT)
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Misc.ino: In function 'int getParamStartPos(String&, byte)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Misc.ino:211:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int x = 0; x < tmpString.length(); x++)
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Misc.ino: In function 'boolean setPinState(byte, byte, byte, uint16_t)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Misc.ino:253:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Misc.ino: In function 'boolean timeOut(long unsigned int)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Misc.ino:356:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (((now >= timer) && ((now - timer) < 1 << 31))  || ((timer >= now) && (timer - now > 1 << 31)))
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Misc.ino:356:95: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (((now >= timer) && ((now - timer) < 1 << 31))  || ((timer >= now) && (timer - now > 1 << 31)))
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Misc.ino: In function 'boolean GetArgv(const char*, char*, int)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Misc.ino:610:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (string_pos < strlen(string))
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Misc.ino: In function 'boolean str2ip(char*, byte*)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Misc.ino:670:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int x = 0; x <= strlen(string); x++)
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Misc.ino: In function 'boolean LoadSettings()':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Misc.ino:715:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Misc.ino: In function 'long unsigned int string2TimeLong(String&)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Misc.ino:1278:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if (w >= '0' && w <= '9' || w == '*')

^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Misc.ino: In function 'void rulesProcessingFile(String, String&)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Misc.ino:2116:7: warning: unused variable 'pos' [-Wunused-variable]
int pos = 0;
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/WebServer.ino: In function 'void handle_controllers()':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/WebServer.ino:851:10: warning: unused variable 'str' [-Wunused-variable]
char str[20];
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/WebServer.ino: In function 'void handle_notifications()':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/WebServer.ino:1041:10: warning: unused variable 'str' [-Wunused-variable]
char str[20];
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/WebServer.ino:922:8: warning: unused variable 'tmpString' [-Wunused-variable]
char tmpString[64];
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/WebServer.ino: In function 'byte arrayLessThan(char*, char*)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/WebServer.ino:1773:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (i < strlen(ptr_1))    // For each character in string 1, starting with the first:
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/WebServer.ino:1777:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (strlen(ptr_2) < i)    // If string 2 is shorter, then switch them
^
Compiling .pioenvs\normal_1024\libe12\SoftwareSerial\SoftwareSerial.cpp.o
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/WebServer.ino: In function 'boolean handle_json()':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/WebServer.ino:2929:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/WebServer.ino: In function 'void handle_advanced()':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/WebServer.ino:2999:8: warning: unused variable 'str' [-Wunused-variable]
char str[20];
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/WebServer.ino: In function 'void handleFileUpload()':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/WebServer.ino:3208:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int x = 0; x < sizeof(struct TempStruct); x++)
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/WebServer.ino: In function 'void handle_SDfilelist()':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/WebServer.ino:3379:27: warning: comparison with string literal results in unspecified behaviour [-Waddress]
if (entry.name() != "config.dat" && entry.name() != "security.dat")
^

D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/WebServer.ino:3379:59: warning: comparison with string literal results in unspecified behaviour [-Waddress]
if (entry.name() != "config.dat" && entry.name() != "security.dat")
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Wifi.ino: In function 'boolean WifiDisconnect()':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Wifi.ino:227:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_C002.ino: In function 'boolean CPlugin_002(byte, EventStruct*, String&)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_C002.ino:74:59: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (Settings.TaskDeviceID[ControllerID][x] == idx) // get idx for our controller index
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_C005.ino: In function 'boolean CPlugin_005(byte, EventStruct*, String&)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_C005.ino:100:14: warning: unused variable 'DeviceIndex' [-Wunused-variable]
byte DeviceIndex = getDeviceIndex(Settings.TaskDeviceNumber[event->TaskIndex]);
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_C006.ino: In function 'boolean CPlugin_006(byte, EventStruct*, String&)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_C006.ino:93:14: warning: unused variable 'DeviceIndex' [-Wunused-variable]
byte DeviceIndex = getDeviceIndex(Settings.TaskDeviceNumber[event->TaskIndex]);
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_C010.ino: In function 'boolean C010_Send(EventStruct*, byte, float, long unsigned int)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_C010.ino:74:11: warning: unused variable 'success' [-Wunused-variable]
boolean success = false;
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_C010.ino:105:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P003_Pulse.ino: In function 'void Plugin_003_pulsecheck(byte)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P003_Pulse.ino:184:58: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(PulseTime > Settings.TaskDevicePluginConfig[Index][0]) // check with debounce time for this task
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P004_Dallas.ino: In function 'boolean Plugin_004(byte, EventStruct*, String&)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P004_Dallas.ino:101:18: warning: unused variable 'devCount' [-Wunused-variable]
byte devCount = Plugin_004_DS_scan(getFormItemInt(F("plugin_004_dev")), addr);
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P005_DHT.ino: In function 'boolean Plugin_005(byte, EventStruct*, String&)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P005_DHT.ino:72:14: warning: unused variable 'Retry' [-Wunused-variable]
byte Retry = 0;
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P007_PCF8591.ino: In function 'boolean Plugin_007(byte, EventStruct*, String&)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P007_PCF8591.ino:14:15: warning: unused variable 'portValue' [-Wunused-variable]

static byte portValue = 0;
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P009_MCP.ino: In function 'boolean Plugin_009_Write(byte, byte)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P009_MCP.ino:269:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P009_MCP.ino: In function 'boolean Plugin_009_Config(byte, byte)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P009_MCP.ino:277:11: warning: unused variable 'success' [-Wunused-variable]
boolean success = false;
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P009_MCP.ino:307:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P011_PME.ino: In function 'boolean Plugin_011_Write(byte, byte)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P011_PME.ino:213:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
Compiling .pioenvs\normal_1024\lib4fe\SDS011\SDS011.cpp.o
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P019_PCF8574.ino: In function 'boolean Plugin_019_Write(byte, byte)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P019_PCF8574.ino:226:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P021_Level.ino: In function 'boolean Plugin_021(byte, EventStruct*, String&)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P021_Level.ino:47:14: warning: unused variable 'tmpString' [-Wunused-variable]
char tmpString[128];
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P022_PCA9685.ino: In function 'boolean Plugin_022(byte, EventStruct*, String&)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P022_PCA9685.ino:20:15: warning: unused variable 'switchstate' [-Wunused-variable]
static byte switchstate[TASKS_MAX];
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P022_PCA9685.ino: In function 'boolean Plugin_022_Write(byte, int)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P022_PCA9685.ino:99:11: warning: unused variable 'success' [-Wunused-variable]
boolean success = false;
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P022_PCA9685.ino:109:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P024_MLX90614.ino: In function 'uint16_t readRegister024(uint8_t, uint8_t)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P024_MLX90614.ino:22:11: warning: unused variable 'pec' [-Wunused-variable]
uint8_t pec = Wire.read();

^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P024_MLX90614.ino: In function 'boolean Plugin_024(byte, EventStruct*, String&)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P024_MLX90614.ino:38:15: warning: unused variable 'portValue' [-Wunused-variable]
static byte portValue = 0;
^
Compiling .pioenvs\normal_1024\libce0\Wire\Wire.cpp.o
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P025_ADS1115.ino: In function 'boolean Plugin_025(byte, EventStruct*, String&)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P025_ADS1115.ino:24:15: warning: unused variable 'portValue' [-Wunused-variable]
static byte portValue = 0;
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P034_DHT12.ino: In function 'boolean Plugin_034(byte, EventStruct*, String&)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P034_DHT12.ino:53:14: warning: unused variable 'dht_in' [-Wunused-variable]
byte dht_in;
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P034_DHT12.ino:55:14: warning: unused variable 'Retry' [-Wunused-variable]
byte Retry = 0;
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P035_IRTX.ino: At global scope:
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P035_IRTX.ino:6:1: error: 'S' does not name a type
S#include <IRremoteESP8266.h>
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P035_IRTX.ino: In function 'boolean Plugin_035(byte, EventStruct*, String&)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P035_IRTX.ino:41:13: error: 'Plugin_035_irSender' was not declared in this scope
if (Plugin_035_irSender == 0 && irPin != -1)
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P035_IRTX.ino:47:13: error: 'Plugin_035_irSender' was not declared in this scope
if (Plugin_035_irSender != 0 && irPin == -1)
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P035_IRTX.ino:50:18: error: type '<type error>' argument given to 'delete', expected pointer
delete Plugin_035_irSender;
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P035_IRTX.ino:74:51: error: 'Plugin_035_irSender' was not declared in this scope
if (cmdCode.equalsIgnoreCase("IRSEND") && Plugin_035_irSender != 0)
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P035_IRTX.ino:117:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < IrRaw.length(); i++)
^
Compiling .pioenvs\normal_1024\libe86\Adafruit_Motor_Shield_V2\Adafruit_MotorShield.cpp.o
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P040_ID12.ino: In function 'boolean Plugin_040(byte, EventStruct*, String&)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P040_ID12.ino:86:31: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]

if (bytesread & 1 == 1) {
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P042_Candle.ino: In function 'boolean Plugin_042(byte, EventStruct*, String&)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P042_Candle.ino:141:13: warning: unused variable 'optionValues' [-Wunused-variable]
int optionValues[8];
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P044_P1WifiGateway.ino: In function 'bool checkDatagram(int)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P044_P1WifiGateway.ino:407:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
validCRCFound = (strtol(messageCRC, NULL, 16) == currCRC);
^
C:\users\patri\.platformio\packages\framework-arduinoespressif8266\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'void SoftwareSerial::rxRead()':
C:\users\patri\.platformio\packages\framework-arduinoespressif8266\libraries\SoftwareSerial\SoftwareSerial.cpp:219:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare
]
if (next != m_outPos) {
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Misc.ino: In function 'float pop()':
Compiling .pioenvs\normal_1024\libe86\Adafruit_Motor_Shield_V2\utility\Adafruit_MS_PWMServoDriver.cpp.o
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/Misc.ino:1587:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_C005.ino: In function 'boolean CPlugin_005(byte, EventStruct*, String&)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_C005.ino:121:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_C006.ino: In function 'boolean CPlugin_006(byte, EventStruct*, String&)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_C006.ino:109:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_C008.ino: In function 'boolean HTTPSend(EventStruct*, byte, float, long unsigned int)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_C008.ino:161:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_C009.ino: In function 'boolean FHEMHTTPsend(String&, String&, byte)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_C009.ino:206:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P004_Dallas.ino: In function 'int Plugin_004_DS_getResolution(uint8_t*)':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P004_Dallas.ino:277:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^

D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P006_BMP085.ino: In function 'boolean Plugin_006_bmp085_begin()':
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P006_BMP085.ino:140:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P023_OLED.ino: At global scope:
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P023_OLED.ino:370:13: warning: 'void Plugin_023_sendCharXY(unsigned char, int, int)' defined but not used [-Wunused-function]
static void Plugin_023_sendCharXY(unsigned char data, int X, int Y)
^
D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P023_OLED.ino:414:13: warning: 'void Plugin_023_sendStr(unsigned char*)' defined but not used [-Wunused-function]
static void Plugin_023_sendStr(unsigned char *string)
^
*** [.pioenvs\normal_1024\src\ESPEasy.ino.cpp.o] Error 1
lib\SDS011\SDS011.cpp: In member function 'int SDS011::read(float*, float*)':
lib\SDS011\SDS011.cpp:63:40: warning: 'checksum_is' may be used uninitialized in this function [-Wmaybe-uninitialized]
case (8): if (value == (checksum_is % 256)) { checksum_ok = 1; } else { len = -1; }; break;
^
lib\Adafruit_Motor_Shield_V2\Adafruit_MotorShield.cpp: In member function 'void Adafruit_StepperMotor::step(uint16_t, uint8_t, uint8_t)':
lib\Adafruit_Motor_Shield_V2\Adafruit_MotorShield.cpp:220:11: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
uint8_t ret = 0;
^
lib\Adafruit_Motor_Shield_V2\Adafruit_MotorShield.cpp: In member function 'uint8_t Adafruit_StepperMotor::onestep(uint8_t, uint8_t)':
lib\Adafruit_Motor_Shield_V2\Adafruit_MotorShield.cpp:242:11: warning: unused variable 'a' [-Wunused-variable]
uint8_t a, b, c, d;
^
lib\Adafruit_Motor_Shield_V2\Adafruit_MotorShield.cpp:242:14: warning: unused variable 'b' [-Wunused-variable]
uint8_t a, b, c, d;
^
lib\Adafruit_Motor_Shield_V2\Adafruit_MotorShield.cpp:242:17: warning: unused variable 'c' [-Wunused-variable]
uint8_t a, b, c, d;
^
lib\Adafruit_Motor_Shield_V2\Adafruit_MotorShield.cpp:242:20: warning: unused variable 'd' [-Wunused-variable]
uint8_t a, b, c, d;
^
lib\Adafruit_Motor_Shield_V2\Adafruit_MotorShield.cpp: In member function 'Adafruit_DCMotor* Adafruit_MotorShield::getMotor(uint8_t)':
lib\Adafruit_Motor_Shield_V2\Adafruit_MotorShield.cpp:89:31: warning: 'in2' may be used uninitialized in this function [-Wmaybe-uninitialized]
dcmotors[num].IN2pin = in2;
^
lib\Adafruit_Motor_Shield_V2\Adafruit_MotorShield.cpp:88:31: warning: 'in1' may be used uninitialized in this function [-Wmaybe-uninitialized]
dcmotors[num].IN1pin = in1;
^

lib\Adafruit_Motor_Shield_V2\Adafruit_MotorShield.cpp:87:31: warning: 'pwm' may be used uninitialized in this function [-Wmaybe-uninitialized]
dcmotors[num].PWMpin = pwm;
^
lib\Adafruit_Motor_Shield_V2\Adafruit_MotorShield.cpp: In member function 'Adafruit_StepperMotor* Adafruit_MotorShield::getStepper(uint16_t, uint8_t)':
lib\Adafruit_Motor_Shield_V2\Adafruit_MotorShield.cpp:118:33: warning: 'bin2' may be used uninitialized in this function [-Wmaybe-uninitialized]
steppers[num].BIN2pin = bin2;
^
lib\Adafruit_Motor_Shield_V2\Adafruit_MotorShield.cpp:117:33: warning: 'bin1' may be used uninitialized in this function [-Wmaybe-uninitialized]
steppers[num].BIN1pin = bin1;
^
lib\Adafruit_Motor_Shield_V2\Adafruit_MotorShield.cpp:116:33: warning: 'ain2' may be used uninitialized in this function [-Wmaybe-uninitialized]
steppers[num].AIN2pin = ain2;
^
lib\Adafruit_Motor_Shield_V2\Adafruit_MotorShield.cpp:115:33: warning: 'ain1' may be used uninitialized in this function [-Wmaybe-uninitialized]
steppers[num].AIN1pin = ain1;
^
lib\Adafruit_Motor_Shield_V2\Adafruit_MotorShield.cpp:114:33: warning: 'pwmb' may be used uninitialized in this function [-Wmaybe-uninitialized]
steppers[num].PWMBpin = pwmb;
^
lib\Adafruit_Motor_Shield_V2\Adafruit_MotorShield.cpp:113:33: warning: 'pwma' may be used uninitialized in this function [-Wmaybe-uninitialized]
steppers[num].PWMApin = pwma;
^
 [ERROR] Took 4.51 seconds
Environment normal_1024 [ERROR]
 
 [SUMMARY]
Environment normal_4096 [SKIP]
Environment normal_8285 [SKIP]
Environment test_1024   [SKIP]
Environment test_4096   [SKIP]
Environment test_8285   [SKIP]
Environment dev_1024    [SKIP]
Environment dev_4096    [SKIP]
Environment dev_8285    [SKIP]
 [ERROR] Took 4.51 seconds
I hitted F7 and tried several options but all result in errors. Can please someone help me?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Problems to compile espeasy

#2 Post by grovkillen » 10 Aug 2018, 17:34

What environment do you use (PlatformIO or Arudino etc.)?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Problems to compile espeasy

#3 Post by TD-er » 10 Aug 2018, 22:08

You are building a very old version (if the directory is reflecting the version number)

Here is your error:

Code: Select all

D:/espeasy_build/ESPEasy_v2.0.0-dev11/Source/src/_P035_IRTX.ino:6:2: error: stray '#' in program
S#include <IRremoteESP8266.h>
^
Just remove that "S" pointed at in your file and then at least that error is fixed.

sledge
Normal user
Posts: 17
Joined: 20 Jan 2017, 20:42

Re: Problems to compile espeasy

#4 Post by sledge » 11 Aug 2018, 13:20

Lol, true. I downloaded several builds and nothing worked for me. Now i again downloaded the actual mega branch as zip and it worked. Thx for reply and apology for my stupidness :roll:

MaikelK
Normal user
Posts: 11
Joined: 20 Jun 2017, 19:56

Re: Problems to compile espeasy

#5 Post by MaikelK » 20 Aug 2018, 14:00

Hi,

Im also facing problems with compiling, i do have to say that my knowledge on this is not so good and i just try to do exactly what the tutorial says:
https://www.letscontrolit.com/wiki/inde ... ct_version

Im trying to add the P150 plugin from the playground:
_P150_SDM120C.ino / https://github.com/letscontrolit/ESPEas ... DM120C.ino

I downloaded https://github.com/letscontrolit/ESPEas ... 180818.zip
And copied over the ino file to the src folder.
It gave me an error that SDM.h was missing so i downloaded this as stated in the ino file and added it to the source folder.

Still compiling failed and i cant stand it that i dont understand why.
Is someone able to help me out or to compile it for me? Im running a Wemos D1 and it has 4096 flash.

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: Problems to compile espeasy

#6 Post by vader » 20 Aug 2018, 15:21

@MaikelK: Make a "SDM" folder in the libraries folder and copy all stuff in, except the INO-file (stays in src folder). That works for me... :mrgreen:

MaikelK
Normal user
Posts: 11
Joined: 20 Jun 2017, 19:56

Re: Problems to compile espeasy

#7 Post by MaikelK » 20 Aug 2018, 15:30

Thanks for the reply, tried it as you said:

Code: Select all

^
C:/Users/M.Kooij/Downloads/atom test/ESPEasy-mega-20180815/ESPEasy-mega-20180815/src/WebServer.ino:2615:6: note:   candidate expects 8 arguments, 7 provided
Compiling .pioenvs\dev_ESP8266_4096\FrameworkArduino\MD5Builder.cpp.o
Compiling .pioenvs\dev_ESP8266_4096\FrameworkArduino\Print.cpp.o
Compiling .pioenvs\dev_ESP8266_4096\FrameworkArduino\Schedule.cpp.o
*** [.pioenvs\dev_ESP8266_4096\src\ESPEasy.ino.cpp.o] Error 1
 [ERROR] Took 36.20 seconds

 
 [SUMMARY]
Environment esp32dev                    [SKIP]
Environment normal_ESP8266_1024         [SKIP]
Environment normal_ESP8285_1024         [SKIP]
Environment normal_WROOM02_2048         [SKIP]
Environment normal_ESP8266_4096         [SKIP]
Environment test_ESP8266_1024           [SKIP]
Environment test_ESP8285_1024           [SKIP]
Environment test_WROOM02_2048           [SKIP]
Environment test_ESP8266_4096           [SKIP]
Environment test_ESP8266_4096_VCC       [SKIP]
Environment dev_ESP8266_1024            [SKIP]
Environment dev_ESP8285_1024            [SKIP]
Environment dev_WROOM02_2048            [SKIP]
Environment dev_ESP8266PUYA_1024        [SKIP]
Environment dev_ESP8266PUYA_1024_VCC    [SKIP]
Environment hard_SONOFF_POW             [SKIP]
Environment hard_SONOFF_POW_R2          [SKIP]
Environment hard_Ventus_W266            [SKIP]
Environment dev_ESP8266_4096            [ERROR]
 [ERROR] Took 36.21 seconds
 
Cant seem to copy the full log?

MaikelK
Normal user
Posts: 11
Joined: 20 Jun 2017, 19:56

Re: Problems to compile espeasy

#8 Post by MaikelK » 20 Aug 2018, 15:38

@vader, could you share me the working firmware so that i can upload it?

I still want to know what im doing wrong, so if you only want to help me to learn what i did wrong thats also okay, haha.

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: Problems to compile espeasy

#9 Post by vader » 20 Aug 2018, 20:14

That's not so easy. For the SDMs you need first to know what kind of communication you want to use: hard- or software-serial. So a different kind of firmware is compiled! HW serial seems also to be fixed to GPIO-1 and -3 and baud rate of 9600. But HW serial makes a lot less problems, as I can read somewhere... :roll:

MaikelK
Normal user
Posts: 11
Joined: 20 Jun 2017, 19:56

Re: Problems to compile espeasy

#10 Post by MaikelK » 21 Aug 2018, 16:11

mm, is it easy for you to compile both?

Where have you read for the hardware control or software control?

I have ordered the following parts
https://community.openhab.org/t/how-to- ... on/7205/11

So the TTL to 485 converter and the Wemos D1 Mini, that's should be hardware control i suppose?

MaikelK
Normal user
Posts: 11
Joined: 20 Jun 2017, 19:56

Re: Problems to compile espeasy

#11 Post by MaikelK » 22 Aug 2018, 13:30

I tried it with ArduinoIDE instead and got following error, i changed in file ESPEASY-GLOBALS.H #define PLUGIN_BUILD_NORMAL to //#define PLUGIN_BUILD_NORMAL and //#define PLUGIN_BUILD_DEV to #define PLUGIN_BUILD_DEV
I found this somewhere on internet to do!

//build all the normal stable plugins (on by default)
//#define PLUGIN_BUILD_NORMAL

//build all plugins that are in test stadium
//#define PLUGIN_BUILD_TESTING

//build all plugins that still are being developed and are broken or incomplete
#define PLUGIN_BUILD_DEV

Code: Select all

_P150_SDM120C:21: error: 'SDM' is not a template

 SDM<2400, D6, D7> Plugin_150_SDM;>

 ^

_P150_SDM120C:21: error: no matching function for call to 'SDM::SDM()'

 SDM<2400, D6, D7> Plugin_150_SDM;>

                   ^

C:\Users\M.Kooij\Downloads\ESPEasy-2.0\ESPEasy\_P150_SDM120C.ino:21:19: note: candidates are:

In file included from C:\Users\M.Kooij\Downloads\ESPEasy-2.0\ESPEasy\_P150_SDM120C.ino:20:0:

C:\Users\M.Kooij\Documents\Arduino\libraries\SDM_Energy_Meter-master/SDM.h:153:5: note: SDM::SDM(SoftwareSerial&, long int, int)

     SDM(SoftwareSerial& serial, long baud = SDM_UART_BAUD, int dere_pin = DERE_PIN);

     ^

C:\Users\M.Kooij\Documents\Arduino\libraries\SDM_Energy_Meter-master/SDM.h:153:5: note:   candidate expects 3 arguments, 0 provided

C:\Users\M.Kooij\Documents\Arduino\libraries\SDM_Energy_Meter-master/SDM.h:148:7: note: constexpr SDM::SDM(const SDM&)

 class SDM {

       ^

C:\Users\M.Kooij\Documents\Arduino\libraries\SDM_Energy_Meter-master/SDM.h:148:7: note:   candidate expects 1 argument, 0 provided

_P150_SDM120C:21: error: expected unqualified-id before '>' token

 SDM<2400, D6, D7> Plugin_150_SDM;>

                                  ^

Multiple libraries were found for "Servo.h"
 Used: C:\Users\M.Kooij\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\Servo
 Not used: C:\Users\M.Kooij\Downloads\arduino-1.8.5\libraries\Servo
Multiple libraries were found for "SD.h"
 Used: C:\Users\M.Kooij\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\SD
 Not used: C:\Users\M.Kooij\Downloads\arduino-1.8.5\libraries\SD
exit status 1
'SDM' is not a template

Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests