[Solved] ESP Easy R78: build from source code failed
Moderators: grovkillen, Stuntteam, TD-er
[Solved] ESP Easy R78: build from source code failed
[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.
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.
Re: ESP Easy R78: build from source code failed
Source code of ESPEasy will only compile errorfree on the Arduino 1.6.5 software together with ESP8266 Community version 2.0.0
Re: ESP Easy R78: build from source code failed
I'm try build with stable version ESP8266 Community version 2.0.0, but have some issue: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
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("");
Re: ESP Easy R78: build from source code failed
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.
The libraries that are needed are included in the zipfile of R48.
After installing these libraries you can compile the github R78 version.
Re: ESP Easy R78: build from source code failed
Yes, without problem.costo wrote:Did you start with the stable version R48 from sourceforge ?
I'm try donloads R78 from there http://www.esp8266.nu/downloads/ESPEasy_R78.zipcosto wrote:The libraries that are needed are included in the zipfile of R48.
After installing these libraries you can compile the github R78 version.
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)
Re: ESP Easy R78: build from source code failed
start the .bat in there and give port-nr, memory-size and version 078,4refr0nt wrote: I'm try donloads R78 from there http://www.esp8266.nu/downloads/ESPEasy_R78.zip
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...

Re: ESP Easy R78: build from source code failed
Thanks, but I'm flash this binaries without issues, I need help for building from latest source.tozett wrote:start the .bat in there and give port-nr, memory-size and version 078,
than it will flash your esp.
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_Uploadtozett 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...
I'm looking for latest libraries for R78
Re: ESP Easy R78: build from source code failed
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. 

Re: ESP Easy R78: build from source code failed

real engineers using mac?

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.
or the same bin file and look in the nodemcu descrptions for help with mac..

http://www.whatimade.today/flashing-the ... nux-guide/
Re: ESP Easy R78: build from source code failed
The moment I wrote this sentence I knew someone was going to say this. LOL.tozett wrote:![]()
real engineers using mac?
![]()
or linux? than they know-how?
Re: ESP Easy R78: build from source code failed
Anyway, indeed I figured out how to do this already.. flashing went well however...
No success
It keeps rebooting.
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

Re: ESP Easy R78: build from source code failed
@ 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.
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.
Re: ESP Easy R78: build from source code failed
Moved this slightly off-topic post to it's own: http://www.esp8266.nu/forum/viewtopic.php?f=6&t=805.dannybloe wrote:Anyway, indeed I figured out how to do this already.. flashing went well however..
...
No successIt keeps rebooting.
Re: ESP Easy R78: build from source code failed
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!
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!
Re: ESP Easy R78: build from source code failed
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.
So chech your IDE preferences for the right board URL.
Re: ESP Easy R78: build from source code failed
Please, give me proof from developerscosto wrote:R78 is meant to be used with the libraries packed with the R48 release

Re: ESP Easy R78: build from source code failed
Yes I agree, it can't be the same as r048 - r048 compiling didn't give this error:4refr0nt wrote:Please, give me proof from developerscosto wrote:R78 is meant to be used with the libraries packed with the R48 release
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

Re: ESP Easy R78: build from source code failed
2.0.0I'll try 2.0.0.0 community if I find out the new url - mine just gives 1.6.5
Re: ESP Easy R78: build from source code failed
Cheers, found it and compiles ok4refr0nt wrote:2.0.0I'll try 2.0.0.0 community if I find out the new url - mine just gives 1.6.5

Re: ESP Easy R78: build from source code failed
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.
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.
Re: ESP Easy R78: build from source code failed
Confirmation from mecosto wrote:This will make it possible to compile the ESPEasy sourcecode without warnings or errors.
Re: ESP Easy R78: build from source code failed
i would be nice if the treadstarter could mark this thread as: SOLVED: thread...
to have more overview for searchin help in this forum.

to have more overview for searchin help in this forum.

Re: [Solved] ESP Easy R78: build from source code failed
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
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.
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

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.
Re: [Solved] ESP Easy R78: build from source code failed
You make the binary yourself very easy with the Arduino IDE.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.
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.
Re: [Solved] ESP Easy R78: build from source code failed
i catched "Jeedom", googled and found a cool home automation solution (in french)lunarok wrote:MQTT plugin for Jeedom.
coool

report how it goes with compiling the espeasy...
the wiki and forum has some help
http://www.esp8266.nu/index.php/Tutoria ... are_Upload
Who is online
Users browsing this forum: Ahrefs [Bot] and 13 guests