Page 1 of 1

Cant compile ESP Easy with Arduino

Posted: 26 Nov 2021, 20:21
by ohaldi
Hello,
I can't compile with the help of Arduino V1.8.16 the ESP version (mega-20211105).
I still have a problem with the Servo scripts.
I removed the library, made a new installation. But nothing works.
I get the following error messages:

In file included from D:\Electronique\Arduino\DEV ESPEasy-mega\ESPEasy\src\Commands\Servo.h:10,
from D:\Electronique\Arduino\DEV ESPEasy-mega\ESPEasy\src\Commands\InternalCommands.cpp:30:
D:\Electronique\Arduino\libraries\Servo\src/Servo.h:77:2: error: #error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor."
77 | #error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor."
| ^~~~~

I like to have a binary for the ESP8266
Regards
Otto

Re: Cant compile ESP Easy with Arduino

Posted: 26 Nov 2021, 20:25
by TD-er
Are you using the libraries as they are in the lib directory of the repository?

Re: Cant compile ESP Easy with Arduino

Posted: 26 Nov 2021, 20:27
by TD-er
Also please do yourself a really big favor and don't use Arduino IDE.
A number of defines -which are needed- are done in PlatformIO scripts. You can set them yourself in Arduino IDE, but it probably is quite a lot of work to keep it working and to find them all.

Re: Cant compile ESP Easy with Arduino

Posted: 27 Nov 2021, 13:44
by ohaldi
Hello I'm using the following link to update the library's:
http://arduino.esp8266.com/stable/packa ... index.json
If I have a problem I delete the lib and then reinstall it.

Re: Cant compile ESP Easy with Arduino

Posted: 27 Nov 2021, 15:14
by TD-er
The libs may have been modified to be used with ESPEasy, so you should use the files in the libs dir of the ESPEasy repository.
Not using the library manager of Arduino IDE.

Re: Cant compile ESP Easy with Arduino

Posted: 29 Nov 2021, 18:05
by ohaldi
Thank you for your help.
What I did:
1 Deleted my old Arduino and all directories with the Arduino name.
2 Installed the latest version of Arduino 1.8.16
3 From the last file ESPEasy_ESP82xx_mega-20211105.zip
- Copy the directory source\src in a local directory, in my case D:\Arduino\Dev_ESPEASY\ESPEasy\src including the subdirectory \src.
- Copy the sourcelib directory into the D:\Arduino\Dev_ESPEASY\ESPEasy\libraries directory.
(To summarize, in my D:\Arduino\Dev_ESPEASY\ESPEasy\ directory, I have two directories : 1. \libraries, 2. \src and all the source files of ESPEasy.
4 Change the access path to Sketchbook to : D:\Arduino\Dev_ESPEASY\ESPEasy
5 Add "http://arduino.esp8266.com/stable/packa ... index.json" the manager of additional ULRs cards
6 Add the NodeMCU 1.0 board (ESP-12E module)
7 Restart Arduino and open the ESPEasy.ino file
8 Launch the compilation with Sucess.
I only have a warning message : 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).
If someone reads this message maybe it will help.
Just for infomation: I tried to use Platform IO, but without success. For my small project, I find this software too complicated.
Regards
Otto

Re: Cant compile ESP Easy with Arduino

Posted: 29 Nov 2021, 20:00
by TD-er
What SDK version did you select?
esp8266/Arduino 3.0.x is not yet (completely) supported.
A pull request is pending, but not yet merged.
So better use the latest 2.7.x

Re: Cant compile ESP Easy with Arduino

Posted: 01 Dec 2021, 19:23
by ohaldi
As I said, I used the following file: ESPEasy_ESP82xx_mega-20211105.zip
how can I check the SDK Version ?
or what do you mean with SDK ?

Re: Cant compile ESP Easy with Arduino

Posted: 01 Dec 2021, 20:11
by TD-er
When compiling with PlatformIO, the platformio.ini files (and the other .ini files included there) define the used esp8266/Arduino or esp32/Arduino library version.
For Arduino IDE you have to select this yourself in the Arduino configuration.
That's what I mean with the SDK version.

The default (in Arduino IDE) is esp8266/Arduino version 3.0.2 if I'm not mistaken.
But this version is not yet fully supported in ESPEasy. So you have to select version 2.7.4

Re: Cant compile ESP Easy with Arduino

Posted: 01 Dec 2021, 23:28
by ohaldi
OK and many thanks for your help