probonopd / WirelessPrinting

Print wirelessly from Cura, PrusaSlicer or Slic3r to your 3D printer connected to an ESP8266 or ESP32 module
352 stars 65 forks source link

SDfat compile error #161

Closed wjflier closed 2 years ago

wjflier commented 3 years ago

can't get past this error. " \Documents\Arduino\libraries\SdFat-2.0.4\src/SdFat.h:423:16: error: 'typedef class File32 File' conflicts with a previous declaration"

probonopd commented 3 years ago

Probably you are using some different revision of the library than we used?

wjflier commented 3 years ago

That's what I thought, tried a couple. Guess it's hit and miss

probonopd commented 3 years ago

Best start with the exact combination of revisions we are using, and then go from there. The are automatically used by Platformio but also documented here:

https://github.com/probonopd/WirelessPrinting/blob/acaed497142244f7e95d25bc3a13e4a6f1c886a0/platformio.ini#L19-L26

wjflier commented 3 years ago

Ok, I'll play with that. Thanks

wjflier commented 3 years ago

No joy, same error.

probonopd commented 3 years ago

What IDE are you using? PlatformIO? If not, please retry with it.

wjflier commented 3 years ago

Thanks for the reply. I using Arduino 1.8.9. Tried 1.8.7 too. Can't get PlatformIO to run on my pc. Tried several FS.h files. Looks like #define FS_NO_GLOBALS is not doing it's job. Probably move to my new pc this weekend. Win10.

probonopd commented 3 years ago

OK, we have never tested this on Windows. Best use PlatformIO on a Linux system that supports it.

wjflier commented 3 years ago

Will do, thanks.

wjflier commented 3 years ago

FYI, flashed with Pyflasher, worked like a charm. next a good HTML interface.