magicshifter / MS3000

The Official Firmware for the MagicShifter 3000 light synthesizer / magic lamp.
http://magicshifter.net/
22 stars 8 forks source link

Tooling Fail: mods to espressif SDK required for building #11

Closed seclorum closed 5 years ago

seclorum commented 8 years ago

At the moment, to build MS3KOS you must do the following braindead things:

1 // comment out the min() and max() macro's from Arduino.h. This is braindead of Arduino to do these macro's, but so be it - developer beware!

vi ~/.platformio/packages/framework-arduinoespressif/cores/esp8266/Arduino.h

line #253 .. 254 should look like this- i.e. commented out:

`#ifndef _GLIBCXX_VECTOR // arduino is not compatible with std::vector //#define min(a,b) ((a)<(b)?(a):(b))

//#define max(a,b) ((a)>(b)?(a):(b))

endif

`

(Please note: these macro's are buggy, do not use them! Ever!)

Note: you must do 'make clean' after this, to rebuild the .pioenvs build-dir!

2 isSpiffsFilenameValid At the moment, we use the SPIFFS openDir API inappropriately. For that reason, stick a return 0 in the isSpiffsFilenameValid method, thus:

vi ~/.platformio/packages/framework-arduinoespressif/cores/esp8266/spiffs_api.cpp

bool isSpiffsFilenameValid(const char* name) { return true; We will address the inappropriate filesystem usage in a separate issue.

Note: you also must do 'make clean' after this, to rebuild the .pioenvs build-dir! In fact, just generally, always do a clean build .. i.e. "make clean test monitor" ..

seclorum commented 8 years ago

SPIFFS issue has been treated as a BUG by upstream and the fix will be available shortly:

https://github.com/esp8266/Arduino/issues/1818

wizard23 commented 8 years ago

I didn't follow this closely. Is this still an issue with the new toolchain?

seclorum commented 5 years ago

No longer an issue with new toolchain/espressif package.