(solve) Problem with Compiling in Arduino

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
wernieman
Normal user
Posts: 13
Joined: 03 Jun 2018, 20:42

(solve) Problem with Compiling in Arduino

#1 Post by wernieman » 07 Oct 2018, 16:55

Hello,

since 3 days I try to compile espeasy in the Version 20181006 with arduino.

I use this instruction: https://www.letscontrolit.com/wiki/inde ... are_Upload
but I work on a Unix (Ubuntu 18.04) Mashine.

I try with a new (clean) arduino. But i get this output, when I try to compile/upload:

Code: Select all

WARNING: Category 'LED' in library CHT16K33 LED Matrix Library is not valid. Setting to 'Uncategorized'
WARNING: Category 'Input' in library MechInputs is not valid. Setting to 'Uncategorized'
WARNING: Category 'Input' in library SerialSensors is not valid. Setting to 'Uncategorized'
WARNING: library LiquidCrystal_I2C claims to run on (avr) architecture(s) and may be incompatible with your current board which runs on (esp8266) architecture(s).
/home/werner/esp/Firmware/ESPEasy_mega-20181006/Source/ESPEasy/Misc.ino: In function 'void ResetFactory()':
Misc:775:34: error: expected primary-expression before ';' token
   Settings.Unit            = UNIT;
Bit I don't understand it. Cloud somebody help?

Greeting Werner
(Sorry about my english)
Last edited by wernieman on 08 Oct 2018, 09:48, edited 1 time in total.

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

Re: Problem with Compiling in Arduino

#2 Post by TD-er » 07 Oct 2018, 17:09

Is it possible you're not using the same version of external libraries?
Try to copy the lib folder onto the library folder in Arduino, or compare the installed libraries in Arduino with the versions included with ESPeasy.
Also it might be possible some libraries have a few changes in the libraries themselves.

wernieman
Normal user
Posts: 13
Joined: 03 Jun 2018, 20:42

Re: Problem with Compiling in Arduino

#3 Post by wernieman » 07 Oct 2018, 17:19

I copy the libarys from Source to arduino ... it is explain in the instruction.

and I use a clean Version on a clan Computer

wernieman
Normal user
Posts: 13
Joined: 03 Jun 2018, 20:42

Re: Problem with Compiling in Arduino

#4 Post by wernieman » 07 Oct 2018, 17:38

I rename the Original ardoino-libary-Folder and copy the espeasy-libare-Folder to the place. I get the same Error:

Code: Select all

WARNING: Category 'LED' in library CHT16K33 LED Matrix Library is not valid. Setting to 'Uncategorized'
WARNING: Category 'Input' in library MechInputs is not valid. Setting to 'Uncategorized'
WARNING: Category 'Input' in library SerialSensors is not valid. Setting to 'Uncategorized'
WARNING: library LiquidCrystal_I2C claims to run on (avr) architecture(s) and may be incompatible with your current board which runs on (esp8266) architecture(s).
/home/werner/esp/Firmware/ESPEasy_mega-20181006/Source/ESPEasy/Misc.ino: In function 'void ResetFactory()':
Misc:775:34: error: expected primary-expression before ';' token
   Settings.Unit            = UNIT;
                                  ^
exit status 1
expected primary-expression before ';' token
I don't know was is wrong with "Settings.Unit = UNIT;" in Misc.ino

wernieman
Normal user
Posts: 13
Joined: 03 Jun 2018, 20:42

Re: Problem with Compiling in Arduino

#5 Post by wernieman » 07 Oct 2018, 18:23

I try it with atom/platformio .... and get the same problem ..

Code: Select all

Compiling .pioenvs/normal_ESP8266_4096/FrameworkArduino/Esp.cpp.o
Compiling .pioenvs/normal_ESP8266_4096/FrameworkArduino/FS.cpp.o
Compiling .pioenvs/normal_ESP8266_4096/FrameworkArduino/FunctionalInterrupt.cpp.o
/home/werner/esp/Firmware/ESPEasy_mega-20181006/Source/src/Misc.ino: In function 'void ResetFactory()':
/home/werner/esp/Firmware/ESPEasy_mega-20181006/Source/src/Misc.ino:775:23: error: expected primary-expression be
fore ';' token
Settings.Unit            = UNIT;
^
So it is not an Arduino-Problem ...

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

Re: Problem with Compiling in Arduino

#6 Post by TD-er » 07 Oct 2018, 21:36

Do you have ESPEasy-Globals.h ?
And is it included?
In that file the "UNIT" define is set.
Maybe you should also look through your code to see if it is somewhere undefined?
Or add something that will cause a compile error in this ESPEasy-Globals.h just to make sure it is being compiled.

wernieman
Normal user
Posts: 13
Joined: 03 Jun 2018, 20:42

Re: Problem with Compiling in Arduino

#7 Post by wernieman » 08 Oct 2018, 08:49

I use a "non-chance-version".

only in ESPEasy-Globals.h I unmark the "//#define PLUGIN_BUILD_TESTING"

At the Moment I have no own Code in the Source. The ESPEasy-Globals.h must be included in the Standard?

Or are some steps in the instruction missing?

I try with a new version ... but only arduino and not atom/platformio

(Sorry I hope you understand my english)

Edit:
its crasy, I do the same then the last 4 days (on a new computer), but only with the Version 201810008 ... and it works!

Edit2:
And the Original Computer work ... I don't know why ....
Last edited by wernieman on 08 Oct 2018, 21:12, edited 1 time in total.

wernieman
Normal user
Posts: 13
Joined: 03 Jun 2018, 20:42

Re: (solve) Problem with Compiling in Arduino

#8 Post by wernieman » 08 Oct 2018, 21:11

sorry but I need a little bit more help .. did somebody know, where I find after compiling the Version, for use to OTA?

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: (solve) Problem with Compiling in Arduino

#9 Post by tozett » 10 Oct 2018, 10:18

after compile you will find a .bin file in the sketchfolder. i guess.
did it help?
Attachments
esp001.png
esp001.png (25.12 KiB) Viewed 15314 times

wernieman
Normal user
Posts: 13
Joined: 03 Jun 2018, 20:42

Re: (solve) Problem with Compiling in Arduino

#10 Post by wernieman » 10 Oct 2018, 10:24

Mercy .. with google I found it (and I forget it to post it here)

thanks for your work

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: (solve) Problem with Compiling in Arduino

#11 Post by tozett » 10 Oct 2018, 10:38

i tried mit source 20181002 to build the binary,
i set up a clean arduino-ide, used only the libs from the source,
but got the same "WARINGS" like in first thread.

Code: Select all

Using board 'd1_mini' from platform in folder: C:\Users\olaf\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1
Using core 'esp8266' from platform in folder: C:\Users\olaf\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1
WARNUNG: Kategorie 'LED' in der Bibliothek CHT16K33 LED Matrix Library ist ungültig und wird auf 'Uncategorized' festgelegt
WARNUNG: Kategorie 'Input' in der Bibliothek MechInputs ist ungültig und wird auf 'Uncategorized' festgelegt
WARNUNG: Kategorie 'Input' in der Bibliothek SerialSensors ist ungültig und wird auf 'Uncategorized' festgelegt
Detecting libraries used...
What about this "uncategorized".
is it ignorable? or who to fix it?

thanks for all hints,
tozett

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

Re: (solve) Problem with Compiling in Arduino

#12 Post by TD-er » 10 Oct 2018, 12:12

It is a warning about a value that is not recognized.
Maybe you have installed another version of the CHT16K33 LED Matrix Library ?
If you're not using that one, I don't think it is a problem for your setup.

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: (solve) Problem with Compiling in Arduino

#13 Post by tozett » 10 Oct 2018, 20:36

i don think i use the CHT16K33 library at all,
only if it was in the source of espeasy.
i took a fresh ide-folder, renamed the arduino-ide lib-folder
and put only the libs from the esp-source in there.

maybe there is another place for another lib?
but i never heard of it, i did not cousciously installed it.

something to check get rid of the RED warnings?

(as i succesfully managed to compile the candl-plugin with warning, i now knew that it works _with_ warnings).
but the red-warning color alarms my eyes..

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

Re: (solve) Problem with Compiling in Arduino

#14 Post by TD-er » 11 Oct 2018, 01:42

I know what you mean.
That's another reason to use Atom + PlatformIO. Then the warnings are in yellow/orange ;)

There are other libraries which give warnings. I should have a look at them too, since some of them have the potential to cause a lot more not reproducible issues.

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests