[Solved] ESP Easy R78: build from source code failed

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
4refr0nt
Normal user
Posts: 19
Joined: 10 Feb 2016, 17:46

[Solved] ESP Easy R78: build from source code failed

#1 Post by 4refr0nt » 10 Feb 2016, 18:19

[Solved] All needed latest source files
Hi!
I'm try build ESP Easy R78 from github source code (Arduino IDE 1.6.5-r5, ESP Community 2.1.0-rc2, PubSubClient 1.99.1 from Imroy) but have many errors.
Please, tell me about actual (modified?) necessary libraries.
Last edited by 4refr0nt on 23 Feb 2016, 22:16, edited 2 times in total.

costo
Normal user
Posts: 490
Joined: 21 Nov 2015, 15:03

Re: ESP Easy R78: build from source code failed

#2 Post by costo » 10 Feb 2016, 19:29

Source code of ESPEasy will only compile errorfree on the Arduino 1.6.5 software together with ESP8266 Community version 2.0.0

4refr0nt
Normal user
Posts: 19
Joined: 10 Feb 2016, 17:46

Re: ESP Easy R78: build from source code failed

#3 Post by 4refr0nt » 10 Feb 2016, 20:13

costo wrote:Source code of ESPEasy will only compile errorfree on the Arduino 1.6.5 software together with ESP8266 Community version 2.0.0
I'm try build with stable version ESP8266 Community version 2.0.0, but have some issue:

ESPEasy:190: error: no matching function for call to 'PubSubClient::PubSubClient(const char [1])'

I'm try with Imroy lib 1.99.1 (latest from https://github.com/Imroy/pubsubclient) and 2.6.0 Nick O'Leary (latest from lib manager).
I'm inspect both, but not found constructor for this line 190: PubSubClient MQTTclient("");

costo
Normal user
Posts: 490
Joined: 21 Nov 2015, 15:03

Re: ESP Easy R78: build from source code failed

#4 Post by costo » 10 Feb 2016, 22:09

Did you start with the stable version R48 from sourceforge ?
The libraries that are needed are included in the zipfile of R48.
After installing these libraries you can compile the github R78 version.

4refr0nt
Normal user
Posts: 19
Joined: 10 Feb 2016, 17:46

Re: ESP Easy R78: build from source code failed

#5 Post by 4refr0nt » 11 Feb 2016, 09:03

costo wrote:Did you start with the stable version R48 from sourceforge ?
Yes, without problem.
costo wrote:The libraries that are needed are included in the zipfile of R48.
After installing these libraries you can compile the github R78 version.
I'm try donloads R78 from there http://www.esp8266.nu/downloads/ESPEasy_R78.zip
and there https://sourceforge.net/projects/espeasy/
but this archives contains binaries files and flash tool only, without source code or libaries.
Libraries files exists in archive (old version R48), but may be not actual for latest release R78 (but R78 build without error)

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

Re: ESP Easy R78: build from source code failed

#6 Post by tozett » 11 Feb 2016, 13:34

4refr0nt wrote: I'm try donloads R78 from there http://www.esp8266.nu/downloads/ESPEasy_R78.zip
start the .bat in there and give port-nr, memory-size and version 078,
than it will flash your esp.
you dont have to build this version anymore.

for any other version there was here some readings how to set up the right arduino ide.
or come back, if you want directly here more help... :?

4refr0nt
Normal user
Posts: 19
Joined: 10 Feb 2016, 17:46

Re: ESP Easy R78: build from source code failed

#7 Post by 4refr0nt » 11 Feb 2016, 13:58

tozett wrote:start the .bat in there and give port-nr, memory-size and version 078,
than it will flash your esp.
Thanks, but I'm flash this binaries without issues, I need help for building from latest source.
tozett wrote:for any other version there was here some readings how to set up the right arduino ide.
or come back, if you want directly here more help... :?
Yes, I'm reading tutorial (not actual now, because last archiv R78 not contains any source files) http://www.esp8266.nu/index.php/Tutoria ... are_Upload
I'm looking for latest libraries for R78

dannybloe
Normal user
Posts: 36
Joined: 16 Dec 2015, 16:29

Re: ESP Easy R78: build from source code failed

#8 Post by dannybloe » 11 Feb 2016, 14:17

Are there still people using Windows??? Amazing... so, would be nice for the real engineers among us to update the wiki and explain how to upload R78 to an ESP without Windows.. Like Linux, Mac etc etc. :)

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

Re: ESP Easy R78: build from source code failed

#9 Post by tozett » 11 Feb 2016, 14:30

:D
real engineers using mac?
:D
or linux? than they know-how?

Code: Select all

sudo python esptool.py --port /dev/ttyUSB0  write_flash 0x00000 The_Path_To_The_Firmware.bin
---
Notice that /dev/ttyUSB0 may change according to the UART you have used and the linux distribution you have chosen.
may you take the bin file from the R078 download and use the linux nodemcu flasher.
or the same bin file and look in the nodemcu descrptions for help with mac.. :roll:

http://www.whatimade.today/flashing-the ... nux-guide/

dannybloe
Normal user
Posts: 36
Joined: 16 Dec 2015, 16:29

Re: ESP Easy R78: build from source code failed

#10 Post by dannybloe » 11 Feb 2016, 14:51

tozett wrote::D
real engineers using mac?
:D
or linux? than they know-how?
The moment I wrote this sentence I knew someone was going to say this. LOL.

dannybloe
Normal user
Posts: 36
Joined: 16 Dec 2015, 16:29

Re: ESP Easy R78: build from source code failed

#11 Post by dannybloe » 11 Feb 2016, 14:52

Anyway, indeed I figured out how to do this already.. flashing went well however...

Code: Select all

load 0x4010f000, len 1264, room 16 
tail 0
chksum 0x42
csum 0x42
~ld
ªU
PID:1396788294
Version:1394621000
INIT : Incorrect PID or version!
RESET: Reboot count: 1
FLASH: Erase Sector: 92
FLASH: Erase Sector: 93
FLASH: Erase Sector: 94
FLASH: Erase Sector: 95
FLASH: Erase Sector: 96
FLASH: Erase Sector: 97
FLASH: Erase Sector: 98
FLASH: Erase Sector: 99
FLASH: Erase Sector: 100
FLASH: Erase Sector: 101
FLASH: Erase Sector: 102
FLASH: Erase Sector: 103
FLASH: Erase Sector: 104
FLASH: Erase Sector: 105
FLASH: Erase Sector: 106
FLASH: Erase Sector: 107
FLASH: Erase Sector: 108
FLASH: Erase Sector: 109
FLASH: Erase Sector: 110
FLASH: Erase Sector: 111
FLASH: Erase Sector: 112
FLASH: Erase Sector: 113
FLASH: Erase Sector: 114
FLASH: Erase Sector: 115
FLASH: Erase Sector: 116
FLASH: Erase Sector: 117
FLASH: Erase Sector: 118
FLASH: Erase Sector: 119
FLASH: Erase Sector: 120
FLASH: Erase Sector: 121
FLASH: Erase Sector: 122
FLASH: Erase Sector: 123
FLASH: Erase Sector: 124
FLASH: Erase Sector: 125
FLASH: Erase Sector: 126
FLASH: Erase Sector: 127
FLASH: Settings saved
FLASH: Settings saved
No success :( It keeps rebooting.

costo
Normal user
Posts: 490
Joined: 21 Nov 2015, 15:03

Re: ESP Easy R78: build from source code failed

#12 Post by costo » 11 Feb 2016, 14:55

@ 4refr0nt

R78 is meant to be used with the libraries packed with the R48 release. There are no new or updated libraries provided by the developers. So if you are updating any of the old libraries you may get compilation errors.
Just stick to the old libraries.

dannybloe
Normal user
Posts: 36
Joined: 16 Dec 2015, 16:29

Re: ESP Easy R78: build from source code failed

#13 Post by dannybloe » 11 Feb 2016, 15:03

dannybloe wrote:Anyway, indeed I figured out how to do this already.. flashing went well however..
...
No success :( It keeps rebooting.
Moved this slightly off-topic post to it's own: http://www.esp8266.nu/forum/viewtopic.php?f=6&t=805.

cherowley
Normal user
Posts: 125
Joined: 14 Jan 2016, 09:39

Re: ESP Easy R78: build from source code failed

#14 Post by cherowley » 11 Feb 2016, 15:11

Hi,

I would also like to build r078 from source but the files aren't correct for r078..

R078 asks for libraries that were not in r048.

Where to get the correct libraries from as:

a) Some new libraries are used.

b) some previously used libraries in r048 must have been changed in r078 as r078 gives compile errors about incorrect definitions, parameters etc.

I've tried using the libraries from https://github.com/esp8266/Arduino/tree ... /libraries but still get compile errors.
I've tried mixing n matching libraries from r048 and github but still no good..

One thing: In my arduino board manager it shows as esp8266 community 1.6.5-1084-ga39c329, Arduino ide ver is 1.6.5

Are these the correct versions for r078?

Thanks!

costo
Normal user
Posts: 490
Joined: 21 Nov 2015, 15:03

Re: ESP Easy R78: build from source code failed

#15 Post by costo » 11 Feb 2016, 15:22

I think you are using an old esp8266 library. The board manager should display V.2.0.0.
So chech your IDE preferences for the right board URL.

4refr0nt
Normal user
Posts: 19
Joined: 10 Feb 2016, 17:46

Re: ESP Easy R78: build from source code failed

#16 Post by 4refr0nt » 11 Feb 2016, 15:27

costo wrote:R78 is meant to be used with the libraries packed with the R48 release
Please, give me proof from developers :D

cherowley
Normal user
Posts: 125
Joined: 14 Jan 2016, 09:39

Re: ESP Easy R78: build from source code failed

#17 Post by cherowley » 11 Feb 2016, 16:02

4refr0nt wrote:
costo wrote:R78 is meant to be used with the libraries packed with the R48 release
Please, give me proof from developers :D
Yes I agree, it can't be the same as r048 - r048 compiling didn't give this error:

ESPEasy.ino:179:37: fatal error: ESP8266HTTPUpdateServer.h: No such file or directory

;)

I'll try 2.0.0.0 community if I find out the new url - mine just gives 1.6.5 :)

Success!

Flashing n running will have to wait till I'm home :)

4refr0nt
Normal user
Posts: 19
Joined: 10 Feb 2016, 17:46

Re: ESP Easy R78: build from source code failed

#18 Post by 4refr0nt » 11 Feb 2016, 16:23

I'll try 2.0.0.0 community if I find out the new url - mine just gives 1.6.5 :)
2.0.0

cherowley
Normal user
Posts: 125
Joined: 14 Jan 2016, 09:39

Re: ESP Easy R78: build from source code failed

#19 Post by cherowley » 11 Feb 2016, 17:49

4refr0nt wrote:
I'll try 2.0.0.0 community if I find out the new url - mine just gives 1.6.5 :)
2.0.0
Cheers, found it and compiles ok :)

costo
Normal user
Posts: 490
Joined: 21 Nov 2015, 15:03

Re: ESP Easy R78: build from source code failed

#20 Post by costo » 11 Feb 2016, 22:09

It looks like the link to the older stable versions are removed from the esp8266.nu index page. If you want to compile sourcecode yourself you need to start with this page:

https://sourceforge.net/projects/espeasy/

go to the bottom of the page and download: ESPEasy R048.zip
In here you will find the libraries that are used for all versions of ESPEasy including R78.
After installing these libraries you need to check for the right version of the Arduino-ESP8266.com libraries that are needed to compile on the Arduino IDE for the ESP8266 core.

Do not forget that you need to use the ARDUINO IDE Version 1.6.5 not a later one.
In the preferences of the IDE for: " Additional Boards Manager URLs: " you need to have this URL:

http://arduino.esp8266.com/stable/packa ... index.json

Then install the files from this URL with this Boards Manager in the IDE.
When everything went fine you will read :

esp8266 by ESP8266 Community version 2.0.0 INSTALLED

This will make it possible to compile the ESPEasy sourcecode without warnings or errors.

4refr0nt
Normal user
Posts: 19
Joined: 10 Feb 2016, 17:46

Re: ESP Easy R78: build from source code failed

#21 Post by 4refr0nt » 11 Feb 2016, 22:15

costo wrote:This will make it possible to compile the ESPEasy sourcecode without warnings or errors.
Confirmation from me

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

Re: ESP Easy R78: build from source code failed

#22 Post by tozett » 12 Feb 2016, 08:08

i would be nice if the treadstarter could mark this thread as: SOLVED: thread...
to have more overview for searchin help in this forum.
;)

lunarok
Normal user
Posts: 34
Joined: 28 Oct 2015, 10:11

Re: [Solved] ESP Easy R78: build from source code failed

#23 Post by lunarok » 02 Mar 2016, 22:34

Hi,

I'm having the same issue.

Finally want to jump to ESPeasy after insuring it's working for users with my MQTT plugin for Jeedom.
So I have received some Sonoff, read the post and ready to upload. Well ... I'm only using Linux, laptop, server, you don't need a Windows.
But the firmware : Windows exe, argh

Ok try the Arduino IDE, setup it and then a lot of errors.
I get these types of errors on one other project for ESP (Wifinfo) and guess what ? For real systems, case matters :D
I don't know if this is the case here, but seeing a lot of "not declared" with words using some upper/lowercase, make me think it can be this.

Is it possible that until now there is case lower/upper errors in sketchs ? I will try on a windows if I find one or by flashing with the command you give, but I read it needs R80 for sonoff so firmware not in binary format yet.

costo
Normal user
Posts: 490
Joined: 21 Nov 2015, 15:03

Re: [Solved] ESP Easy R78: build from source code failed

#24 Post by costo » 02 Mar 2016, 23:31

lunarok wrote:Hi,

Ok try the Arduino IDE, setup it and then a lot of errors.
`````
Is it possible that until now there is case lower/upper errors in sketchs ? I will try on a windows if I find one or by flashing with the command you give, but I read it needs R80 for sonoff so firmware not in binary format yet.
You make the binary yourself very easy with the Arduino IDE.
First download the zipfile of stable version R78 on http://www.esp8266.nu/downloads/ESPEasy_R78.zip
Unzip it, place the libraries from the source code in the right place, so in the library folder, this will make it possible to compile without errors.

Lastly under tab 'Tools' select Flash Size: '512K (64K SPIFFS)' and under tab 'Sketch' do "Export compiled Library"
This generates the binary file you can flash with a flasher program.

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

Re: [Solved] ESP Easy R78: build from source code failed

#25 Post by tozett » 03 Mar 2016, 07:52

lunarok wrote:MQTT plugin for Jeedom.
i catched "Jeedom", googled and found a cool home automation solution (in french)
coool :mrgreen: https://www.jeedom.com/doc/documentatio ... ation.html

report how it goes with compiling the espeasy...
the wiki and forum has some help
http://www.esp8266.nu/index.php/Tutoria ... are_Upload

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests