Error Compiling

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
anantbhula
New user
Posts: 4
Joined: 15 Apr 2016, 03:41

Error Compiling

#1 Post by anantbhula » 16 Apr 2016, 19:44

Hi I had no trouble to upload R78 and just recently downloaded R100 and getting compile following error in Arduino IDE please help

Code: Select all

Arduino: 1.6.8 (Mac OS X), Board: "Generic ESP8266 Module, Serial, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck"

WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
/Users/anantbhula/Documents/Arduino/ESPEasy/Hardware.ino: In function 'void hardwareInit()':
Hardware:41: error: 'class TwoWire' has no member named 'setClockStretchLimit'
         Wire.setClockStretchLimit(Settings.WireClockStretchLimit);
              ^
/Users/anantbhula/Documents/Arduino/ESPEasy/_C001.ino: In function 'boolean CPlugin_001(byte, EventStruct*, String&)':
_C001:42: error: 'base64' was not declared in this scope
           base64 encoder;
           ^
_C001:42: error: expected ';' before 'encoder'
           base64 encoder;
                  ^
_C001:46: error: 'encoder' was not declared in this scope
           authHeader = "Authorization: Basic " + encoder.encode(auth) + " \r\n";
                                                  ^
/Users/anantbhula/Documents/Arduino/ESPEasy/_P020_Ser2Net.ino: In function 'boolean Plugin_020(byte, EventStruct*, String&)':
_P020_Ser2Net:114: error: 'SerialConfig' was not declared in this scope
             Serial.begin(ExtraTaskSettings.TaskDevicePluginConfigLong[1], (SerialConfig)serialconfig);
                                                                            ^
exit status 1
'class TwoWire' has no member named 'setClockStretchLimit'

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

User avatar
ManS-H
Normal user
Posts: 279
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Re: Error Compiling

#2 Post by ManS-H » 16 Apr 2016, 19:56

For R78 you use esp8266 by ESP8266 Community version 2.0.0 and for R100 you need esp8266 by ESP8266 Community version 2.1.0

Hoffan72
New user
Posts: 3
Joined: 15 Apr 2016, 19:36

Re: Error Compiling

#3 Post by Hoffan72 » 16 Apr 2016, 20:39

I get this one.. And can't fint out how to solve it



Arduino:1.6.8 (Mac OS X), Kort:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)"

In file included from /Users/Hello/Documents/ESPEasy/ESPEasy/_P205_FrameOLED.ino:30:0:
/Users/NiclasHofsten/Documents/ESPEasy/libraries/Adafruit_SSD1306/SSD1306.h:23:25: fatal error: application.h: No such file or directory
#include "application.h"
^
compilation terminated.
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

anantbhula
New user
Posts: 4
Joined: 15 Apr 2016, 03:41

Re: Error Compiling

#4 Post by anantbhula » 16 Apr 2016, 23:37

ManS-H wrote:For R78 you use esp8266 by ESP8266 Community version 2.0.0 and for R100 you need esp8266 by ESP8266 Community version 2.1.0
I love you. You're a life saver.
Thank you so much
Changed from 2.0.0 to 2.1.0 and worked like a charm

segepe
New user
Posts: 1
Joined: 18 Apr 2016, 18:26

Re: Error Compiling

#5 Post by segepe » 18 Apr 2016, 18:32

Hi
Im trying to verify/compile ESPEasy and get the following error:
Arduino:1.6.8 (Windows 10), Kort:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)"

C:\Users\Hemma Laptop\Documents\Easyesp\Source\ESPEasy\_P020_Ser2Net.ino: In function 'boolean Plugin_020(byte, EventStruct*, String&)':

_P020_Ser2Net:114: error: invalid conversion from 'byte {aka unsigned char}' to 'SerialConfig' [-fpermissive]

Serial.begin(ExtraTaskSettings.TaskDevicePluginConfigLong[1], serialconfig);

^

In file included from C:\Users\Hemma Laptop\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266/Arduino.h:246:0,

from sketch\ESPEasy.ino.cpp:1:

C:\Users\Hemma Laptop\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266/HardwareSerial.h:77:10: error: initializing argument 2 of 'void HardwareSerial::begin(long unsigned int, SerialConfig)' [-fpermissive]

void begin(unsigned long baud, SerialConfig config)

^

exit status 1
invalid conversion from 'byte {aka unsigned char}' to 'SerialConfig' [-fpermissive]

This report would have more information with
"Show verbose output during compilation"

I'm new to this, so I will be very happy if someone could help me.

Thanks in advance
option enabled in File -> Preferences.

User avatar
ManS-H
Normal user
Posts: 279
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Re: Error Compiling

#6 Post by ManS-H » 18 Apr 2016, 20:30

i've got the same problem and the combination of 1.6.8 and 2.1.0 give me errors. Now is work with 1.6.5 and 2.1.0 and the errors are gone. Maybe works this is for you too.

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

Re: Error Compiling

#7 Post by tozett » 19 Apr 2016, 09:05

i also have no errors with my arduino ide 1.6.5 and plattform 2.1.0 ...

MonkeyTown
Normal user
Posts: 25
Joined: 08 May 2016, 02:29

Re: Error Compiling

#8 Post by MonkeyTown » 08 May 2016, 06:30

Just my 5 cents...

Running 1.6.8:

R_78:
MQTT lib 1.9.1
ESP8266 2.0.0

Latest:
MQTT lib 1.9.1
ESP8266 2.1.0

any higher version of the MQTT lib results in errors on compile...

other stuff...
ArduinoJson 5.4.0
Base64 1.0.0

duikeend
New user
Posts: 1
Joined: 09 Jun 2016, 21:16

Re: Error Compiling

#9 Post by duikeend » 09 Jun 2016, 21:35

Hello all

i had the same problem compiling r78. im using cores 2.2.0

Code: Select all

******\Desktop\arduino\esp8266\ESPEasy_R78\Source\ESPEasy\_P020_Ser2Net.ino: In function 'boolean Plugin_020(byte, EventStruct*, String&)':

_P020_Ser2Net:114: error: invalid conversion from 'byte {aka unsigned char}' to 'SerialConfig' [-fpermissive]

           Serial.begin(ExtraTaskSettings.TaskDevicePluginConfigLong[1], serialconfig);

                                                                                     ^

In file included from ******\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\cores\esp8266/Arduino.h:246:0,

                 from sketch\ESPEasy.ino.cpp:1:

******\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\cores\esp8266/HardwareSerial.h:77:10: error:   initializing argument 2 of 'void HardwareSerial::begin(long unsigned int, SerialConfig)' [-fpermissive]

     void begin(unsigned long baud, SerialConfig config)
so i contacted my friendly neighbourhood helpdesk and he suggested i'd change line 114 in _p020_Ser2Net.ino from this:

Code: Select all

Serial.begin(ExtraTaskSettings.TaskDevicePluginConfigLong[1], serialconfig);
to this:

Code: Select all

Serial.begin(ExtraTaskSettings.TaskDevicePluginConfigLong[1], static_cast<SerialConfig>(serialconfig));

it then compiled like a charm. I'm not sure if this helps anyone but it helped me greatly so i made an account to share it with you guys. thanx for this great sketch! it looks promising :lol:

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

Re: Error Compiling

#10 Post by tozett » 10 Jun 2016, 16:53

good hint,

should go to the wiki, to have an actual working settings for all who are new to espeasy.
compiling is an often mention problem ...

there was once an idea by the devs, to have an automated build-system.
there was an example on hackaday with the use of travis from github.
maybe that is another way...
if a dev is interested: here: http://blog.squix.org/2016/06/esp8266-c ... ction.html

mayur
New user
Posts: 4
Joined: 04 Sep 2020, 09:29

Re: Error Compiling

#11 Post by mayur » 04 Sep 2020, 10:17

Hello Guys,
I am new to ESPeasy and also recently joined the forum hence cannot create a new thread and hence will add to this thread.

Currently, I am using ESPEasy_ESP82xx_mega-20200812 and added a plugin code for the ACS712 sensor. When I am trying to compile it gives a compilation error. I have tried adding libraries to documents-->Arduino folder but it is still not working. I am using Arduino version 1.6.12 and I have tried ESP8266 version of 2.4.0, 2.5.0 and 2.6.1. Can anyone help me to resolve my issue?


Error (ESP8266 version 2.6.1):-
Arduino: 1.6.12 (Windows 8.1), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new can abort), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

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'
Build options changed, rebuilding all
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).
C:\Users\Desktop\REEPL\IoT\Codes\ESPEasy_ESP82xx_mega-20200812 - with changes\source\src\ESPEasy\_P036_FrameOLED.ino: In function 'boolean Plugin_036(uint8_t, EventStruct*, String&)':

C:\Users\Desktop\REEPL\IoT\Codes\ESPEasy_ESP82xx_mega-20200812 - with changes\source\src\ESPEasy\_P036_FrameOLED.ino:693:69: error: invalid conversion from 'const char*' to 'const uint8_t* {aka const unsigned char*}' [-fpermissive]

P036_data->display->setFont(P036_data->ScrollingPages.Font);

^

In file included from C:\Users\Documents\Arduino\libraries\ESP8266_and_ESP32_OLED_driver_for_SSD1306_displays-4.1.0\src/SSD1306Wire.h:34:0,

from C:\Users\Documents\Arduino\libraries\ESP8266_and_ESP32_OLED_driver_for_SSD1306_displays-4.1.0\src/SSD1306.h:33,

from sketch\src/PluginStructs/P036_data_struct.h:9,

from C:\Users\Desktop\REEPL\IoT\Codes\ESPEasy_ESP82xx_mega-20200812 - with changes\source\src\ESPEasy\_P036_FrameOLED.ino:79:

C:\Users\SUYOG\Documents\Arduino\libraries\ESP8266_and_ESP32_OLED_driver_for_SSD1306_displays-4.1.0\src/OLEDDisplay.h:254:10: error: initializing argument 1 of 'void OLEDDisplay::setFont(const uint8_t*)' [-fpermissive]

void setFont(const uint8_t *fontData);

^

Multiple libraries were found for "Servo.h"
Used: C:\Users\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.1\libraries\Servo
Not used: C:\Program Files (x86)\Arduino\libraries\Servo
Multiple libraries were found for "ArduinoJson.h"
Used: C:\Users\Documents\Arduino\libraries\ArduinoJson
Not used: C:\Users\Documents\Arduino\libraries\ArduinoJson-6.x
Multiple libraries were found for "SSD1306.h"
Used: C:\Users\Documents\Arduino\libraries\ESP8266_and_ESP32_OLED_driver_for_SSD1306_displays-4.1.0
Not used: C:\Users\Documents\Arduino\libraries\esp8266-oled-ssd1306
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

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

Re: Error Compiling

#12 Post by TD-er » 04 Sep 2020, 12:54

Please use the libraries as included in the repository's lib directory.
Some have been changed to work with ESPEasy, so if you download the libraries via the library manager of Arduino IDE, you may get one that will not work.
Also Arduino IDE 1.6 is quite old. Not sure if things will work with that version.
Building via PlatformIO (either in Atom or Visual Studio Code) should make things a lot more easy to do as the platformio configuration specifies what versions should be used.

For example "Disabled (new can abort)" will lead to crashes in a build made with this Arduino setting, if the ESP may run out of memory.
In our normal builds we use the setting where a call to new may return a null pointer, which in some situations we do check.

mayur
New user
Posts: 4
Joined: 04 Sep 2020, 09:29

Re: Error Compiling

#13 Post by mayur » 04 Sep 2020, 14:26

TD-er wrote: 04 Sep 2020, 12:54 Please use the libraries as included in the repository's lib directory.
Some have been changed to work with ESPEasy, so if you download the libraries via the library manager of Arduino IDE, you may get one that will not work.
Also Arduino IDE 1.6 is quite old. Not sure if things will work with that version.
Building via PlatformIO (either in Atom or Visual Studio Code) should make things a lot more easy to do as the platformio configuration specifies what versions should be used.

For example "Disabled (new can abort)" will lead to crashes in a build made with this Arduino setting, if the ESP may run out of memory.
In our normal builds we use the setting where a call to new may return a null pointer, which in some situations we do check.
Okay. Now I have switched to Platform.io using Microsoft VS code. This is the first time I am using it and I am getting the following errors can you help me with these errors?

{
"resource": "/c:/Users/Desktop/IoT/Codes/ESPEasy_ESP82xx_mega-20200812 - updates/source/.vscode/c_cpp_properties.json",
"owner": "c:\\Users\\Desktop\\IoT\\Codes\\ESPEasy_ESP82xx_mega-20200812 - updates\\source",
"severity": 4,
"message": "Cannot find \"C:\\Users\\Desktop\\IoT\\Codes\\ESPEasy_ESP82xx_mega-20200812 - updates\\source\\include\".",
"startLineNumber": 9,
"startColumn": 17,
"endLineNumber": 9,
"endColumn": 112
}
{
"resource": "/c:/Users/Desktop/IoT/Codes/ESPEasy_ESP82xx_mega-20200812 - updates/source/.vscode/c_cpp_properties.json",
"owner": "c:\\Users\\Desktop\\IoT\\Codes\\ESPEasy_ESP82xx_mega-20200812 - updates\\source",
"severity": 4,
"message": "Cannot find \"C:\\Users\\Desktop\\IoT\\Codes\\ESPEasy_ESP82xx_mega-20200812 - updates\\source\\.pio\\build\\custom_ESP8266_4M1M\\core\".",
"startLineNumber": 61,
"startColumn": 17,
"endLineNumber": 61,
"endColumn": 140
}

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

Re: Error Compiling

#14 Post by TD-er » 04 Sep 2020, 17:45

Only strange thing I can see which could explain it is that you're using a directory name with spaces.
A while ago I tried to make some video explaining how to install VScode + PlatformIO.
https://www.youtube.com/watch?v=ArqwMcY ... Noorlander

Sadly at that time I only had the in Windows 10 included editor which also lacked any preview when editing (probably driver issue with USB-C dock)
So the editing is very poor and the video is way longer than needed, but I guess it can be somewhat more clear compared to written text.

openphil
New user
Posts: 3
Joined: 04 Sep 2020, 23:40

Re: Error Compiling

#15 Post by openphil » 04 Sep 2020, 23:50

I am also very interested in "how to complie your own version of easyesp".
for example, I want to add a custom "stair-light-motion" to the neopixel include.
I used to build my sketches from scratch, but I want to switch over to easyESP, so I know a bit about code and I recently started to do my work in platformio.
But.. I just have no idea where to start when I want to complie your project from your sourcecode.
Is there a youtube video for dummies? :)

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

Re: Error Compiling

#16 Post by TD-er » 05 Sep 2020, 14:32

Well the video I linked at least show you how to install PlatformIO in VScode + all needed to at least build it.

I will work on a few tutorials on how to compile your own builds and what to look for.

Mike_p
New user
Posts: 2
Joined: 05 Sep 2020, 10:12

Re: Error Compiling

#17 Post by Mike_p » 06 Sep 2020, 15:30

Sorry to add another post to an existing thread but as a new forum member I cant create new threads.

Yesterday I was having trouble compiling ESPEasy in the Arduino ide.

I had to edit NeworkState.h to change to relative path for:

Code: Select all

#include "../../ESPEasy-Globals.h"
#include "../../ESPEasy_plugindefs.h" 
then plugin001 had "undefined Servo" so I simply changed the ifdef to disable the whole module.
Where is Servo defined?

After that it compiled and loaded happily (Arduino 1.8.13, compiling for various ESP32 and ESP8266 modules)

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

Re: Error Compiling

#18 Post by TD-er » 06 Sep 2020, 16:06

Ah OK, that may be an error I created when moving things around.
Arduino IDE is quite picky in the absolute path, where PlatformIO is a bit more forgiving.

I will fix it.
Thanks for reporting it.

Edit:
Fixed it.

Mike_p
New user
Posts: 2
Joined: 05 Sep 2020, 10:12

Re: Error Compiling

#19 Post by Mike_p » 06 Sep 2020, 20:50

TD-er wrote: 06 Sep 2020, 16:06 I will fix it.
Thanks for reporting it.
Edit:
Fixed it.
Thanks. It's very impressive to see a bug fixed so quickly after a report by a newbie!

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

Re: Error Compiling

#20 Post by TD-er » 06 Sep 2020, 21:50

Newbe status has nothing to do with it.
To be honest, if you present a copy-paste solution to fix it, then it is very likely to be fixed almost immediately.
There's nothing newbe to that way of reporting a bug :)

mayur
New user
Posts: 4
Joined: 04 Sep 2020, 09:29

Re: Error Compiling

#21 Post by mayur » 07 Sep 2020, 07:03

TD-er wrote: 04 Sep 2020, 17:45 Only strange thing I can see which could explain it is that you're using a directory name with spaces.
A while ago I tried to make some video explaining how to install VScode + PlatformIO.
https://www.youtube.com/watch?v=ArqwMcY ... Noorlander

Sadly at that time I only had the in Windows 10 included editor which also lacked any preview when editing (probably driver issue with USB-C dock)
So the editing is very poor and the video is way longer than needed, but I guess it can be somewhat more clear compared to written text.
Thank you, I have successfully installed VScode + PlatformIO but I am trying to add a plugin for a particular sensor. But I facing this particular issue while compiling, also is there any documentation that explains compiling ESPeasy after the addition of a plugin using VScode and how to create a BIN file that can be flashed in NODEMCU using VScode?

mayur
New user
Posts: 4
Joined: 04 Sep 2020, 09:29

Re: Error Compiling

#22 Post by mayur » 07 Sep 2020, 07:36

mayur wrote: 07 Sep 2020, 07:03
TD-er wrote: 04 Sep 2020, 17:45 Only strange thing I can see which could explain it is that you're using a directory name with spaces.
A while ago I tried to make some video explaining how to install VScode + PlatformIO.
https://www.youtube.com/watch?v=ArqwMcY ... Noorlander

Sadly at that time I only had the in Windows 10 included editor which also lacked any preview when editing (probably driver issue with USB-C dock)
So the editing is very poor and the video is way longer than needed, but I guess it can be somewhat more clear compared to written text.
Thank you, I have successfully installed VScode + PlatformIO but I am trying to add a plugin for a particular sensor. But I facing this particular issue while compiling, also is there any documentation that explains compiling ESPeasy after the addition of a plugin using VScode and how to create a BIN file that can be flashed in NODEMCU using VScode?

Edit:

I discovered how to compile the plugin but now I am facing a certain library issue I have added the libraries to respective repositories but the error still exists. I have kept ESPeasy.ino as the main sketch while compiling the code for the plugin sensor.

ERROR:-

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'
C:\Users\S****G\Desktop\R****L\IoT\Codes\ESPEasy_ESP82xx_mega-20200812 - updates\source\src\ESPEasy\ESPEasy.ino:87:29: fatal error: ESPEasy-Globals.h: No such file or directory

#include "ESPEasy-Globals.h"

^

compilation terminated.

exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
Last edited by mayur on 07 Sep 2020, 09:41, edited 1 time in total.

openphil
New user
Posts: 3
Joined: 04 Sep 2020, 23:40

Re: Error Compiling

#23 Post by openphil » 07 Sep 2020, 08:39

TD-er wrote: 05 Sep 2020, 14:32 Well the video I linked at least show you how to install PlatformIO in VScode + all needed to at least build it.

I will work on a few tutorials on how to compile your own builds and what to look for.
Indeed, thanks for point that out again. I wasn't watching that video because I know how to install vscode and Plattformio. The part I was missing is that you can just open the folder from the Git-Download in VScode then and press the compile button from plattformio.

That worked.. partially. I don't have all devices in "my" build, compared to the downloaded version. Will check soon again, maybe because I don't have python installed yet - but I haven't seen any errors, just the missing options in the device tap after flashing.

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

Re: Error Compiling

#24 Post by TD-er » 07 Sep 2020, 09:34

You can create a 'custom' build (see PIO environment names with "custom" in their name), which is probably the simplest way to make a build with the plugins you need.
For this you can chose from 2 options:
- Create a Custom.h file, based on the Custom-sample.h (place Custom.h in the same folder as this sample, or simply rename the sample file)
- Edit the pre_custom_espxxxx.py file in tools/pio

If there is a Custom.h file found, when building a custom PIO environment, then it will include that one and ignore the changes made to the tools/pio/pre_custom_espxxxx.py file.
In there you can just uncomment the plugins you need.

N.B. any changes in Custom.h will be ignored by Git, so if you later update the branch, your Custom.h will not be overwritten. (but keep a copy somewhere safe, just to be sure, if you want to use it again later)

openphil
New user
Posts: 3
Joined: 04 Sep 2020, 23:40

Re: Error Compiling

#25 Post by openphil » 07 Sep 2020, 23:53

Thank you! Works like a charm! With that "guide" I was able to build the custom bins and upload them to my Node, both, with USB and wireless. love it - you have another (small) patron!

I found myself wondering why some settings worked, and some don't. I assume the firmware upgrad does not overwrite things like default_name? So I assume having a firmware-file (or sourcecode) and having a Settings file will keep my device alive in case the 8266 burns or so.

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

Re: Error Compiling

#26 Post by TD-er » 08 Sep 2020, 00:13

You can also define your own defaults in the Custom.h file.
So if you do a factory reset, it will start with some proper defaults.
For example your WiFi setup, to mention some nice way to skip the initial setup.

tempbmx
New user
Posts: 6
Joined: 26 Oct 2020, 03:41

Re: Error Compiling

#27 Post by tempbmx » 24 Nov 2020, 02:33

openphil wrote: 07 Sep 2020, 08:39
TD-er wrote: 05 Sep 2020, 14:32 Well the video I linked at least show you how to install PlatformIO in VScode + all needed to at least build it.

I will work on a few tutorials on how to compile your own builds and what to look for.
Indeed, thanks for point that out again. I wasn't watching that video because I know how to install vscode and Plattformio. The part I was missing is that you can just open the folder from the Git-Download in VScode then and press the compile button from plattformio.

That worked.. partially. I don't have all devices in "my" build, compared to the downloaded version. Will check soon again, maybe because I don't have python installed yet - but I haven't seen any errors, just the missing options in the device tap after flashing.
Ive been an espeasy user for almost 2 years, well versed with programming, and not once can i hit on some search results of how to build a firmware with the plugins i need from plugin playground. Any nudge in the right direction would be greatly appreciated. I would remain silent and continue to search but the time, its just so short these days. Need more of me. and hands. and smokes.

Thanks.

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

Re: Error Compiling

#28 Post by TD-er » 24 Nov 2020, 09:42

@tempbmx
What specific plugin do you need from the playground?

Most of the plugins there no longer can be compiled without minor (and sometimes major) modifications due to changes in the ESPEasy core.

tempbmx
New user
Posts: 6
Joined: 26 Oct 2020, 03:41

Re: Error Compiling

#29 Post by tempbmx » 24 Nov 2020, 19:28

Sad to say but id like to use the RcSwitch library to control some 433/315mhz devices i already control via a Tasmotaflashed nodemcu, but that rules editor is just the cats meow and i cant handle having to use tasmota like a caveman. Any advice is greatly appreciated.

Not afraid to compile, already got all the fixins to do so but never an up to date how to

_P111_RF and
_P112_RFTX to be specific.

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

Re: Error Compiling

#30 Post by TD-er » 25 Nov 2020, 09:26

tempbmx wrote: 24 Nov 2020, 19:28 Sad to say but id like to use the RcSwitch library to control some 433/315mhz devices i already control via a Tasmotaflashed nodemcu, but that rules editor is just the cats meow and i cant handle having to use tasmota like a caveman. Any advice is greatly appreciated.

Not afraid to compile, already got all the fixins to do so but never an up to date how to

_P111_RF and
_P112_RFTX to be specific.
I fixed the compile issues for both plugins in the Playground.
So you should be able to compile them again.
The plugins do need quite a bit of work to make them using less resources as there's a lot of memory allocated which may not be used at all.

tempbmx
New user
Posts: 6
Joined: 26 Oct 2020, 03:41

Re: Error Compiling

#31 Post by tempbmx » 25 Nov 2020, 21:02

but my setback is more 'the guide of what to do'

like, open source in visual studio, copy plugin files to /?whatever , copy paste include this or that, run build?

even some links to the most relevant would be such a huge help, it always seems to be one thing after another when trying to build stuff because of outdated instructions and having to piece together tidbits

thanks for taking the time to update the plugins

User avatar
Ath
Normal user
Posts: 3419
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Error Compiling

#32 Post by Ath » 25 Nov 2020, 21:38

If you want to build your own ESPEasy, it is advised to follow these instructions, describing the use of PlatformIO and VSCode (not to be confused with Visual Studio, that's a full-blown IDE, VSCode is a quite capable editor with broad plugin support, but not an IDE, IMHO)
Some Github skills are assumed, but that's not too difficult, once someone gets you started...
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 27 guests