microsoft / ExpressivePixels

ExpressivePixels is an embedded prototype platform for ambient LED based displays that allows for the rapid assembly, authoring and control of animations and lighting sequences.
MIT License
71 stars 15 forks source link

'File' has not been declared #32

Closed emanavas closed 1 year ago

emanavas commented 1 year ago

The Error

In file included from D:\Projects\iMatch\Firmware\arduino-1.8.19\portable\sketchbook\libraries\ExpressivePixelsArduinoPlatformLibrary/EPXPlatform_CStorage.h:5, from D:\Projects\iMatch\Firmware\arduino-1.8.19\portable\sketchbook\libraries\ExpressivePixelsArduinoCoreLibrary/EPXApp_CStorage.h:5, from D:\Projects\iMatch\Firmware\arduino-1.8.19\portable\sketchbook\libraries\ExpressivePixelsArduinoCoreLibrary/EPXApp.h:45, from D:\Projects\iMatch\Firmware\ExpressivePixels-master\Firmware\Arduino\Examples\ExpressivePixelsFull\ExpressivePixelsFull.ino:3: D:\Projects\iMatch\Firmware\arduino-1.8.19\portable\sketchbook\libraries\ExpressivePixelsArduinoPlatformLibrary/EPXPlatform_CStorageBase.h:30:26: error: 'File' has not been declared virtual size_t ReadFile(File *file, uint8_t *pBuffer, int bufferLen) = 0; ^~~~ D:\Projects\iMatch\Firmware\arduino-1.8.19\portable\sketchbook\libraries\ExpressivePixelsArduinoPlatformLibrary/EPXPlatform_CStorageBase.h:31:27: error: 'File' has not been declared virtual size_t WriteFile(File *file, uint8_t *pBuffer, int bufferLen) = 0; ^~~~ D:\Projects\iMatch\Firmware\arduino-1.8.19\portable\sketchbook\libraries\ExpressivePixelsArduinoPlatformLibrary/EPXPlatform_CStorageBase.h:32:10: error: 'File' does not name a type; did you mean 'SdFile'? virtual File OpenFile(char *pszFilename, uint8_t mode) = 0; ^~~~ SdFile D:\Projects\iMatch\Firmware\arduino-1.8.19\portable\sketchbook\libraries\ExpressivePixelsArduinoPlatformLibrary/EPXPlatform_CStorageBase.h:33:10: error: 'File' does not name a type; did you mean 'SdFile'? virtual File *OpenFileDyn(char *pszFilename, uint8_t mode) = 0; ^~~~ SdFile D:\Projects\iMatch\Firmware\arduino-1.8.19\portable\sketchbook\libraries\ExpressivePixelsArduinoPlatformLibrary/EPXPlatform_CStorageBase.h:34:28: error: 'File' has not been declared virtual uint32_t Position(File *file) = 0; ^~~~ D:\Projects\iMatch\Firmware\arduino-1.8.19\portable\sketchbook\libraries\ExpressivePixelsArduinoPlatformLibrary/EPXPlatform_CStorageBase.h:35:21: error: 'File' has not been declared virtual void Close(File *file) = 0; ^~~~ exit status 1 Error compiling for board ESP32 Dev Module.

Using Arduino 1.8.19, ESP32 Arduino core 2.0.4

LIBS:

Adafruit_BusIO Adafruit_DotStar Adafruit_DotStarMatrix Adafruit_GFX_Library Adafruit_NeoPixel Adafruit_Protomatter Adafruit_SPIFlash-master ArduinoJson ArduinoNvs-master AsyncTCP-master ESP32-HUB75-MatrixPanel-I2S-DMA-master ESP32-P3RGB64x32MatrixPanel-master ESP32-RGB64x32MatrixPanel-I2S-DMA-master esp32_arduino_sqlite3_lib-master ESPAsyncWebServer-master ExpressivePixelsArduinoCoreLibrary ExpressivePixelsArduinoPlatformLibrary FastLED-master GFX_Root-master LittleFSesp32 SdFat-_Adafruit_Fork Segger

Whitch 'File' library mean?

emanavas commented 1 year ago

The Error

In file included from D:\Projects\iMatch\Firmware\arduino-1.8.19\portable\sketchbook\libraries\ExpressivePixelsArduinoPlatformLibrary/EPXPlatform_CStorage.h:5, from D:\Projects\iMatch\Firmware\arduino-1.8.19\portable\sketchbook\libraries\ExpressivePixelsArduinoCoreLibrary/EPXApp_CStorage.h:5, from D:\Projects\iMatch\Firmware\arduino-1.8.19\portable\sketchbook\libraries\ExpressivePixelsArduinoCoreLibrary/EPXApp.h:45, from D:\Projects\iMatch\Firmware\ExpressivePixels-master\Firmware\Arduino\Examples\ExpressivePixelsFull\ExpressivePixelsFull.ino:3: D:\Projects\iMatch\Firmware\arduino-1.8.19\portable\sketchbook\libraries\ExpressivePixelsArduinoPlatformLibrary/EPXPlatform_CStorageBase.h:30:26: error: 'File' has not been declared virtual size_t ReadFile(File *file, uint8_t *pBuffer, int bufferLen) = 0; ^~~~ D:\Projects\iMatch\Firmware\arduino-1.8.19\portable\sketchbook\libraries\ExpressivePixelsArduinoPlatformLibrary/EPXPlatform_CStorageBase.h:31:27: error: 'File' has not been declared virtual size_t WriteFile(File *file, uint8_t *pBuffer, int bufferLen) = 0; ^~~~ D:\Projects\iMatch\Firmware\arduino-1.8.19\portable\sketchbook\libraries\ExpressivePixelsArduinoPlatformLibrary/EPXPlatform_CStorageBase.h:32:10: error: 'File' does not name a type; did you mean 'SdFile'? virtual File OpenFile(char *pszFilename, uint8_t mode) = 0; ^~~~ SdFile D:\Projects\iMatch\Firmware\arduino-1.8.19\portable\sketchbook\libraries\ExpressivePixelsArduinoPlatformLibrary/EPXPlatform_CStorageBase.h:33:10: error: 'File' does not name a type; did you mean 'SdFile'? virtual File *OpenFileDyn(char *pszFilename, uint8_t mode) = 0; ^~~~ SdFile D:\Projects\iMatch\Firmware\arduino-1.8.19\portable\sketchbook\libraries\ExpressivePixelsArduinoPlatformLibrary/EPXPlatform_CStorageBase.h:34:28: error: 'File' has not been declared virtual uint32_t Position(File *file) = 0; ^~~~ D:\Projects\iMatch\Firmware\arduino-1.8.19\portable\sketchbook\libraries\ExpressivePixelsArduinoPlatformLibrary/EPXPlatform_CStorageBase.h:35:21: error: 'File' has not been declared virtual void Close(File *file) = 0; ^~~~ exit status 1 Error compiling for board ESP32 Dev Module.

Using Arduino 1.8.19, ESP32 Arduino core 2.0.4

LIBS:

Adafruit_BusIO Adafruit_DotStar Adafruit_DotStarMatrix Adafruit_GFX_Library Adafruit_NeoPixel Adafruit_Protomatter Adafruit_SPIFlash-master ArduinoJson ArduinoNvs-master AsyncTCP-master ESP32-HUB75-MatrixPanel-I2S-DMA-master ESP32-P3RGB64x32MatrixPanel-master ESP32-RGB64x32MatrixPanel-I2S-DMA-master esp32_arduino_sqlite3_lib-master ESPAsyncWebServer-master ExpressivePixelsArduinoCoreLibrary ExpressivePixelsArduinoPlatformLibrary FastLED-master GFX_Root-master LittleFSesp32 SdFat-_Adafruit_Fork Segger

Whitch 'File' library mean?

SOLVED.

Adding #include on EPXPlatform_CStorageBase.h