Page 1 of 1

[SOLVED] Compile Error - U_SPIFFS

Posted: 06 May 2020, 15:22
by tyrann619
Hi, I'm trying to compile ESPeasy my own.. I followed to instruction to set everything up (git,vscode,platformio) and installed all needed plugins (I also needed pygit2 which was not mentioned in the wiki).

But there is one error while building custom_ESP8266_4M1M which I can't solve and google hasn't an answer for me.

I don't know if this is the right place for this question, but I would like to write a custom plugin (and maybe contribute it).
Without a working Build of the stock ESPeasy code I cannot start :(

Sorry for bothering you because it's likely a setup problem and not a code problem.

Code: Select all

Compiling .pio/build/custom_ESP8266_4M1M/liba9a/ArduinoOTA_ID6178/WiFiOTA.cpp.o
/home/MYUSER/.platformio/lib/ArduinoOTA_ID6178/src/InternalStorageESP.cpp: In member function 'virtual int InternalStorageESPClass::open(int, uint8_t)':
/home/MYUSER/.platformio/lib/ArduinoOTA_ID6178/src/InternalStorageESP.cpp:35:56: error: 'U_SPIFFS' was not declared in this scope
   return Update.begin(length, command == 0 ? U_FLASH : U_SPIFFS);
                                                        ^
/home/MYUSER/.platformio/lib/ArduinoOTA_ID6178/src/InternalStorageESP.cpp:36:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
*** [.pio/build/custom_ESP8266_4M1M/liba9a/ArduinoOTA_ID6178/InternalStorageESP.cpp.o] Error 1

Re: Compile Error - U_SPIFFS

Posted: 06 May 2020, 17:15
by tyrann619
SORRY.. nvm..

I had installed a ArduinoOTA library via PlatformIO. :oops:

After trying for some hours I removed the library (PlatformIO -> Libraries -> Installed -> Uninstall everything with ArduinoOTA)
Now it works..

Re: [SOLVED] Compile Error - U_SPIFFS

Posted: 07 May 2020, 00:20
by TD-er
Good to see you solved it.

About the pygit2 dependency.. that was only added 2 days ago so not yet documented in all places we have documentation.