jamct / DoorsignEPD

Doorsign with E-Paper-Display with ESP32. Loading images from webserver.
GNU General Public License v3.0
100 stars 36 forks source link

compiling error the code #28

Open dodo124 opened 5 years ago

dodo124 commented 5 years ago

Hello, for unknown reasons. The compiling procedure stucks a some point? I can´t figure out why. I did not change anything and it should work froim the startt. All errors occour- yeah I don´t know.

Any ideas?

Thanks in advance.

Regards Dominik

Below is the error code:

"Arduino: 1.8.7 (Windows 7), Board: "DOIT ESP32 DEVKIT V1, 80MHz, 115200, None"

WARNUNG: Bibliothek async-mqtt-client-0.8.1 behauptet auf (esp8266) Architektur(en) ausgeführt werden zu können und ist möglicherweise inkompatibel mit Ihrem derzeitigen Board, welches auf (esp32) Architektur(en) ausgeführt wird. In file included from C:\Users...\Documents\Arduino\libraries\Basecamp-master/WebServer.hpp:16:0,

             from C:\Users\...\Documents\Arduino\libraries\Basecamp-master/Basecamp.hpp:23,

             from C:\Users\...\Documents\Arduino\libraries\DoorsignEPD-master\DoorsignEPD-master\esp32\doorsignEPD\doorsignEPD.ino:5:

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h:70:5: error: 'DynamicJsonBuffer' does not name a type

 DynamicJsonBuffer _jsonBuffer;

 ^

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h: In constructor 'AsyncJsonResponse::AsyncJsonResponse(bool)':

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h:78:17: error: '_jsonBuffer' was not declared in this scope

     _root = _jsonBuffer.createArray();

             ^

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h:80:17: error: '_jsonBuffer' was not declared in this scope

     _root = _jsonBuffer.createObject();

             ^

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h: In member function 'size_t AsyncJsonResponse::setLength()':

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h:86:30: error: 'class ArduinoJson650_0_0::JsonVariant' has no member named 'measureLength'

   _contentLength = _root.measureLength();

                          ^

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h: In member function 'size_t AsyncJsonResponse::getSize()':

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h:91:30: error: '_jsonBuffer' was not declared in this scope

size_t getSize() { return _jsonBuffer.size(); }

                          ^

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h: In member function 'virtual size_t AsyncJsonResponse::_fillBuffer(uint8_t*, size_t)':

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h:95:13: error: 'class ArduinoJson650_0_0::JsonVariant' has no member named 'printTo'

   _root.printTo( dest ) ;

         ^

In file included from C:\Users...\Documents\Arduino\libraries\Basecamp-master/WebServer.hpp:16:0,

             from C:\Users\...\Documents\Arduino\libraries\Basecamp-master/Basecamp.hpp:23,

             from C:\Users\...\Documents\Arduino\libraries\DoorsignEPD-master\DoorsignEPD-master\esp32\doorsignEPD\doorsignEPD.ino:5:

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h: In member function 'virtual void AsyncCallbackJsonWebHandler::handleRequest(AsyncWebServerRequest*)':

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h:136:9: error: 'DynamicJsonBuffer' was not declared in this scope

     DynamicJsonBuffer jsonBuffer;

     ^

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h:137:28: error: 'jsonBuffer' was not declared in this scope

     JsonVariant json = jsonBuffer.parse((uint8_t*)(request->_tempObject));

                        ^

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h:138:18: error: 'class ArduinoJson650_0_0::JsonVariant' has no member named 'success'

     if (json.success()) {

              ^

Mehrere Bibliotheken wurden für "WiFi.h" gefunden Benutzt: C:\Users...\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\libraries\WiFi Nicht benutzt: C:\Program Files (x86)\Arduino\libraries\WiFi exit status 1 Fehler beim Kompilieren für das Board DOIT ESP32 DEVKIT V1.

jamct commented 5 years ago

You ran into a lot of problems with dependencies of this project. I am currently refactoring this project. My experiments with Platform.io are very promising. Compared to Arduino IDE it has a per-project dependency management! I will keep you informed if there are any news.

jdede commented 5 years ago

Which version of ArduinoJson do you have installed? I guess it is version 6.x... This is still beta and not very stable. Furthermore, it has several API changes. Downgrade to the latest 5.x version (should be 5.13.4) via the library manager -- and don't upgrade it if suggested by the board manager... ;-) This should solve your problem.