-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
M5Stack-SD-Menu compilation error #3
Comments
whoops I totally forgot I was using a modified M5Sam library, also forgot to PR the changes or even document it ... shame on me 👎 |
I'm not sure why you got the other error, I can't reproduce it on a fresh environment, could it have something to do with the version of the compiler you're using? It's probably confused because I'm using the same name for a global and a scoped variable.
|
win10 64; arduino ide 1.9.0b; arduino-esp32 current git
rename not change anything, still the same. I also try change the functions order:
|
strange...
QRCode example on esp32 give tons of errors for the same #pragma and break compilation!:
|
Are you on a Mac ? I stil can't reproduce this either on Windows 10 or Linux (Ubuntu 16) so I'm wondering if this is system specific. I'm using xtensa-esp32-elf-gcc\1.22.0-61-gab8375a-5.2.0 on Windows 10, I'll check the Ubuntu version later when back home. I know the M5Sam library gives me tons of warnings too about the TwoWires library, but those are only warnings and can be ignored as long as the sketch works. Maybe your installation of ESP32 SDK is older than mine? I update it once a week but sometimes forget to run |
windows10 both at home and at work submodules updated and tools too of course looks like we have different gcc 1.22.0-61(updated by espressif/arduino-esp32@d27d297#diff-e11b863a8fa4d67f1d23489df1905b88) vs 1.22.0-80
|
that's the same version, OS and SDK
I got the previous version number from the compile window in Arduino IDE, found out there's another ArduinoData/packages/esp32/tools folder, and removed the older GCC from there, but it still compiles fine with the latest version. let's compare library versions, this is my stack:
|
the same...
arduino IDE ??? maybe this? |
However, all your libraries seem to be called from the Program folder instead of your user's Document folder. ... Arduino version maybe ? |
on 1.8.5 from arduino.cc site:
|
maybe it'll shut up with this initialization instead:
|
ok I found a way to reproduce one of those warnings, |
it solves errors problems with:
a bit strange...for what reason the warning settings functionality sometimes turns it into errors ?
Two options how to solve this problem (in my case):
without above, for unknown reasons, first function renderIcon (by ID) knows nothing about second function renderIcon (by file). |
Whoops swapping functions order is the thing I should have done in the beginning. I have a theory on those inconsistencies with the compiler though. I suspect the install directories changed over time (moving from ~/.arduinoxxx to ~/Arduino or to the directory set in the preferences.txt), and multiple copies were made. Now the IDE does not know which one to use as all the SDK are visible. If you look for the "esp32" directories on your hard drive, I bet you'll find more than one with a subdirectory "tools". Although I didn't have the symptoms you had, I renamed the oldest "ESP32" folders to "ESP32.old" and the path to the compiler changed in the IDE. Could it be that you had a separate /duplicate version of the SDK using different compiler flags. I've pushed the changes to the repo anyway, I want to thank you again for finding those anomalies and taking the time to test it, very much appreciated! |
I have only one esp32 dir, because I don't use arduino installators, boards managers etc but does not matter... |
I try compile new example M5Stack-SD-Menu
but I got errors:
when I comment out //#define USE_PSP_JOY true
then got:
The text was updated successfully, but these errors were encountered: