-
Notifications
You must be signed in to change notification settings - Fork 132
Other bad includes with ESP32 #1296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Even i comment the includes, sloeber.ino.cpp ask to put a new version with the includes... Here is the complete console output message (with out any visible reference to SD & WiFi) Compiling is wrong: 08:30:47 **** Incremental Build of configuration Release for project Toto4 **** 08:30:49 Build Failed. 3 errors, 10 warnings. (took 2s.660ms) |
Here is the out console message for a working project Toto5, the same then Toto4 before including anything 08:58:50 **** Incremental Build of configuration Release for project Toto5 **** 'Finished building target: Toto5' 08:59:16 Build Finished. 0 errors, 37 warnings. (took 26s.683ms) |
fHi thanks Jantje, |
In #1184 your asking for checking project->properties->C/C++ build->environment. I instal ESP32 as your vidéo tutotrial so i dont put esp32S2 So i think it is ok for that, iam going to read the next step in #1184 |
I have looking all #1184, i am using 4.3.3 I have uncheck expand environment variable |
No but removing the Release folder is making sure 100% Using a github repository as private hardware is difficult. Note that my workaround statement was only for #1295 there is no workaround for #1184 |
I put partitions in the general folder what do you think of using a project reference to the gitub project C:...esp32 is this a good think? |
I have to make my big project: For the first time (pixels) i do in Sloeber and i run it on IDE, but including all libraries i hope working with Sloeber, and impossible to run on IDE, libraries are differents... How could i work like the ESP8266 environement? |
I put the project on a ESP32 1.0.4: i have got 225 bads includes!!! |
I have better results refering copy of github repertory than using the ESP32 1.0.4 On problem with ESP32 Reference project is the integration of memory, how could i make a string path to have tools in the environnement? |
New test with Github Esp32 (not 1.0.4)
i am going checking the files on disk drive... |
So i have analysed the process (and close and save the files) adding SD.h, Builds N°:
And it is possible to see SD.h ok on a file and not ok on the other...
|
If in .ino or sloeber.ino.cpp:
|
|
so if i clean, build, clean each time no error (in the first time clean dont give up the error)
is it possible to make an automatic process? Or is it mystake again? i just verify erasing release doesnt change anything in my case, maybe it is an other problem? |
last observation: For changing "" to <> it is possible by creating a script based on pair and not pair compile or comment uncomment before ech compile. |
Last observation, simple: |
I include 3 libraries, the problem is always the 1 library of the sloeber.ino.cpp |
All time the bad include is correctly fix but in this extract 1:48:14 **** Incremental Build of configuration Release for project Toto6 ****
21:48:15 Build Failed. 3 errors, 1 warnings. (took 747ms) we cant see :0:21: warning: ISO C++11 requires whitespace after the macro name |
because it is/overwrites a system variable |
I think you are also hitting #1210 |
Hello @jantje,
my make path contains: What do you think about whitespaces? |
What about mixing \ & / in the file code Problematic or no? So i decide to use absolute path using asolute for SD
using absolute for FS then SD
CONCLUSION It is exactly the same error! |
CONLUSION
|
What about an other library? But in WiFi there are more inclusions! This is the list:
The message is
So sysytem have done 9 inclusion fefore crash! What are the include in WiFiClient?
<memory>?
|
If i made a multiple jobs without stopping on errors it seems it is good after second job
for finaly have
CONCLUSION |
After runing 8 time without stops, and warning only on declarations problems:
the error is here buf(new uint8_t[bufSize]); buf is non declared in the scope And i dont know what doing with this complex declaration CONCLUSION
|
For an other library esp_camera same problem with unique_ptr ...
|
#including WiFi.h is a problem for me because of #include <stdint.h>, even i put it on board esp32 1.0.4 |
please use "project->export" and choose general->archive file, paste here |
OK, thanks,
but i haven't got any complex ESP32 project yet: i complexifie and now it is unsuable on arduino IDE and Sloeber? |
This is my problem (for information). i'll going to resolve!
|
I see this in your wifi.cpp
I won't say this will not work but it for sure doesn't make the code easy to investigate |
The download of xtensa-esp32-elf-win32-1.22.0-80-g6c4433a-5.2.0.zip failed. |
Indeed it is a problem |
@jentie maybe after succesfull installation of pkg, add one file marker "ok" inside directory and reinstall later? |
I do again and same problem just killing esp32 1.0.4 file |
@uzi18 basically the problem is that Sloeber does not use the checksum/size info in the json file to validate correct download. |
I think it is not a problem: i'am just using Sloeber since 15 days, and it will be my first operation... I have the message but ESP8266 works so i go on this... and dont remenber for whats happen the first time in this new strange world i try
And i have
|
i check #1290, have a special think to do? For ESP32 1.0.4 #define IN_ECLIPSE is false so Sloeber.ino.cpp is unused.
22:55:39 Build Failed. 2 errors, 0 warnings. (took 943ms) |
This is an other project for MEGA2560 |
If i put Toto11 (WiFi.h + SD.h) on MEGA2560 impossible to have WiFi.h
But Compacto_MEGA have WiFi.h and compile and puting seems OK |
Oh, this the past |
I guess there are enough messages in the log stating "this is not supported " to indicate your Sloeber configuration is bad. |
Hello Jantje, uzi18,
Well, i ll hav made an empty Arduino Plugin\libraries. (so normal configuration ( i hope) tell me if it is still bad)
09:03:49 Build Failed. 2 errors, 0 warnings. (took 412ms) |
This problem has nothing todo with Sloeber
but WiFi.begin does not exists. Wifi is a variable instantiation of the class WiFiClass. That is literally what the log dump you provided states. |
It even tells you that the char needed is the wifi ssid |
Hello,
Thanks to be pedagogic, i seen that but as we done wifi.begin() few year ago, it was strongest in my mind. I clean my ArduinoPlugin, and now ARDUINO IDE compiles!
Do you think, there are mistakes in my job or have you got a solution to resolve? Thanks. |
The problem you are experiencing is that you didn't install the board using the boards manager. As such you do not have a json file telling the location of the tools (that is you are missing some environment variables) Sloeber only knows the location of the cores and variants and the build/upload commands. |
@Brolensky here is nothing standard about your install. Your Arduino folder should look more like: FYI I use Sloeber about daily and is working just fine. @jantje seem that @Brolensky wants to use the not-yet-released version of Arduino for ESP32. |
@me-no-dev |
OK, thanks for yours investigations, here this is my introspection. I hope it will help us.
I'am using informations given by Google and this video https://www.youtube.com/watch?v=szRrvJPvQz4 which is the first one given, so i says C:\Users\cabrol\git\esp32
I am using ESP32S2, because of recomandations to test that.
I use get.exe from tools/ like says in the vidéo (5 times) For the boards, i always use json links as i do in IDE (i think/i Hope: it is my intention)
My mystakes are mystakes of non professionals code maker. Just think about some people intergrate arduino and programation with ardublock and somes IDE like that. But i think "having a past" is a problem or the problem for a lots of potentiel users of this magnifics tools, but they give up after somes hours, as i do 3 years ago. Have you already heard something like this? Could you confirm me please, if it is right, using a librairies folder in arduino IDE and in Sloeber Arduino Plugins is possible? My mystake was to copy and put my IDE Arduino librairies folder in Sloeber libraries folder, to simply start with my world. So, i was thinking to ask you: I have experience on these questions: on the French Arduino forum, regular users complained about the misuse of conventions. I proposed to rename the tutorial "Good editing your post for dummies" and since then people are reading and everything is working now. What do you think about that? I know it is bad, but how? Thanks again for yours investigations and your Job, sorry being so French (but english doesn't help us! dunnies will be difficult for peoples but ? is universal). Cordialy Cedric. |
Hello, |
for esp32 1,0,4 installed with the json link in board manager on the new sloeber 4,4, for a new project based on esp32 1,0,4 board have this 09:49:45 **** Build of configuration Release for project toto2 **** 09:49:45 Build Failed. 2 errors, 0 warnings. (took 654ms) |
@Brolensky |
Hello @jantje,
Whats happen could you explain me? ( Are you runing on my computer? lol) Slober is download dimanche 14 février 2021, 18:01:45 |
Hello,

I have got a problem with ESP32 with basic projet. (in first time i put with issu #1295, but i think now it is not the same)
Here is my all in one view:
The problem is
If i "clean project", "index freshen, rebuild" and put libraries and "build all" or "build project", it will be ok or no.
When it is good it is only few time, after Sloeber.ino.h got the libraries include and the problems appears.
Even i erease the includes it still non working!
I have have configure the enable parrallel built to 8.
If have made the git ESP32 external project import and inclusion like in the vidéo 5 times and now step by step.
(The only difference are the use versions, i reproduce the new project before get procedure and the project doesnt create at this step (invisible), i erase and made a new after get procedure)
I am trying to adding a reference to
"${workspace_loc:/Toto4/core/variant}"
"${workspace_loc:/Toto4/core/core}"
"${C:\Users\cabrol\git\arduino-esp32\libraries}"
the problem is with or without last line
So what is my mystake?
Thank for your Help
Cedric
These are other tests:
A) Effect of direct build
Adding an #include "SD.h" in .ino and direct build
kill the project
B) Multi step
1 ) Creating project with 8 parrallel built, OK.
2) Adding an #include "SD.h" in .ino underligne the #include "SD.h"
3) Searching unresolved inclusions says everithing is OK
4) Build project says OK, but SD.h is undertligned SD begin is wrong too & searching unresolved is OK???
C) Reality verification (Living or dead?)
void loop(){
SD.begin(),
Serial.println("Hey");
}
Print:...
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
Connect to serial port COM11 at 115200
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
So it is really not include...
D) Stopping the artificial life:
and if i dont search unresolved, before the last Build, inclusion error appear, and compiling is refused...
and includes are unremovables...
After this message, i have put exemples of console outputs messages.
Originally posted by @Brolensky in #1295 (comment)
The text was updated successfully, but these errors were encountered: