Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiler problems #11

Open
pvdw0310 opened this issue Dec 11, 2020 · 3 comments
Open

compiler problems #11

pvdw0310 opened this issue Dec 11, 2020 · 3 comments

Comments

@pvdw0310
Copy link

pvdw0310 commented Dec 11, 2020

Hi,
I like to compile simple.ino and i have different compiler errors : I added the libraries (sdfat and ESPWebDav) form github

Arduino: 1.8.13 (Windows 7), Board:"WeMos D1 R1, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

In file included from C:\Users\peter\Documents\Arduino\libraries\ESPWebDAV-master/ESPWebDAV.h:2:0,
from C:\Users\peter\AppData\Local\Temp\arduino_modified_sketch_549109\Simple.ino:8:
C:\Users\peter\Documents\Arduino\libraries\SdFat-master\src/SdFat.h:401:16: error: 'typedef class File32 File' conflicts with a previous declaration
typedef File32 File;
^
In file included from C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26:0,
from C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\ESP8266WiFi\src/WiFiClientSecure.h:41,
from C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\peter\AppData\Local\Temp\arduino_modified_sketch_549109\Simple.ino:7:
C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\cores\esp8266/FS.h:52:7: note: previous declaration 'class fs::File'
class File : public Stream
^
In file included from C:\Users\peter\Documents\Arduino\libraries\ESPWebDAV-master/ESPWebDAV.h:2:0,
from C:\Users\peter\AppData\Local\Temp\arduino_modified_sketch_549109\Simple.ino:8:
C:\Users\peter\Documents\Arduino\libraries\SdFat-master\src/SdFat.h:401:16: error: 'typedef class File32 File' conflicts with a previous declaration
typedef File32 File;
^
In file included from C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26:0,
from C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\ESP8266WiFi\src/WiFiClientSecure.h:41,
from C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\peter\AppData\Local\Temp\arduino_modified_sketch_549109\Simple.ino:7:
C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\cores\esp8266/FS.h:52:7: note: previous declaration 'class fs::File'
class File : public Stream
^
In file included from C:\Users\peter\Documents\Arduino\libraries\ESPWebDAV-master/ESPWebDAV.h:2:0,
from C:\Users\peter\AppData\Local\Temp\arduino_modified_sketch_549109\Simple.ino:8:
C:\Users\peter\Documents\Arduino\libraries\SdFat-master\src/SdFat.h:401:16: error: 'typedef class File32 File' conflicts with a previous declaration
typedef File32 File;
^
In file included from C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26:0,
from C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\ESP8266WiFi\src/WiFiClientSecure.h:41,
from C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\peter\AppData\Local\Temp\arduino_modified_sketch_549109\Simple.ino:7:
C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\cores\esp8266/FS.h:52:7: note: previous declaration 'class fs::File'
class File : public Stream
^
C:\Users\peter\AppData\Local\Temp\arduino_modified_sketch_549109\Simple.ino: In function 'void setup()':
Simple:47:49: error: no matching function for call to 'ESPWebDAV::init(int, long unsigned int, int)'
if(!dav.init(SD_CS, SPI_FULL_SPEED, SERVER_PORT)) {
^
C:\Users\peter\AppData\Local\Temp\arduino_modified_sketch_549109\Simple.ino:47:49: note: candidate is:
In file included from C:\Users\peter\AppData\Local\Temp\arduino_modified_sketch_549109\Simple.ino:8:0:
C:\Users\peter\Documents\Arduino\libraries\ESPWebDAV-master/ESPWebDAV.h:22:7: note: bool ESPWebDAV::init(int, SPISettings, int)
bool init(int chipSelectPin, SPISettings spiSettings, int serverPort);
^
C:\Users\peter\Documents\Arduino\libraries\ESPWebDAV-master/ESPWebDAV.h:22:7: note: no known conversion for argument 2 from 'long unsigned int' to 'SPISettings'
Meerdere bibliotheken gevonden voor "SdFat.h"
Gebruikt: C:\Users\peter\Documents\Arduino\libraries\SdFat-master
Niet gebruikt: C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\ESP8266SdFat
Bibliotheek ESP8266WiFi op versie 1.0 in map: C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\ESP8266WiFi wordt gebruikt
Bibliotheek ESPWebDAV-master in map: C:\Users\peter\Documents\Arduino\libraries\ESPWebDAV-master (legacy) wordt gebruikt
Bibliotheek SdFat-master op versie 2.0.2 in map: C:\Users\peter\Documents\Arduino\libraries\SdFat-master wordt gebruikt
Bibliotheek SPI op versie 1.0 in map: C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\SPI wordt gebruikt
Bibliotheek Hash op versie 1.0 in map: C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\Hash wordt gebruikt
exit status 1
no matching function for call to 'ESPWebDAV::init(int, long unsigned int, int)'

what did I wrong?
thanks

@luc-github
Copy link

luc-github commented Jan 15, 2021

you cannot have SdFat-master as installed library - it conflict with the embedded version of SDFat in esp8266 - remove the sdfat-master library and it will remove conflict, or disable the esp8266 sd Fat version if you want to keep sdfat-master

@pvdw0310
Copy link
Author

Thanks for the reply, but now I have still a compiler error.

Arduino: 1.8.13 (Windows 7), Board:"WeMos D1 R1, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

C:\Users\peter\Documents\Arduino\libraries\ESPWebDAV-master/ESPWebDAV.h:39:43: error: 'FatFile' has not been declared
  void sendPropResponse(boolean recursing, FatFile *curFile);
                                           ^
C:\Users\peter\Documents\Arduino\libraries\ESPWebDAV-master/ESPWebDAV.h:42:40: error: 'FatFile' has not been declared
  void handleWriteError(String message, FatFile *wFile);
                                        ^
C:\Users\peter\Documents\Arduino\libraries\ESPWebDAV-master/ESPWebDAV.h:64:2: error: 'SdFat' does not name a type
  SdFat sd;
  ^
Bibliotheek ESP8266WiFi op versie 1.0 in map: C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\ESP8266WiFi  wordt gebruikt
Bibliotheek ESPWebDAV-master in map: C:\Users\peter\Documents\Arduino\libraries\ESPWebDAV-master (legacy) wordt gebruikt
Bibliotheek ESP8266SdFat op versie 1.1.0 in map: C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\ESP8266SdFat  wordt gebruikt
Bibliotheek SPI op versie 1.0 in map: C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\SPI  wordt gebruikt
Bibliotheek Hash op versie 1.0 in map: C:\Users\peter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\libraries\Hash  wordt gebruikt
exit status 1
Fout bij het compileren voor board WeMos D1 R1

@acguardia
Copy link

acguardia commented May 9, 2021

Hello.
Use esp8266 board version 2.4.0 -> https://github.com/esp8266/Arduino
image

Use SdFat library version 1.1.0 -> https://github.com/greiman/SdFat
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants