Bodmer / JPEGDecoder

A JPEG decoder library
Other
220 stars 64 forks source link

Can not load SD.h #77

Open JIRAYUTRPY opened 1 year ago

JIRAYUTRPY commented 1 year ago

I user JPEGDECODER with TFT_eSPI So i try to complie code and then Error show :

error: 'File' does not name a type; did you mean 'SdFile'? 89 | File g_pInFileSd; | ^~~~ | SdFile

i try any solution as inlcude FS.h, In user config i just try uncomment LOAD_SDFAT_LIBRARY, In JPEGDecoder.h i change to

if !defined (FS_NO_GLOBALS) && defined (FS_H)

  #undef LOAD_SD_LIBRARY
    #undef LOAD_SDFAT_LIBRARY
#endif

But still show the same error.