s00500 / ESPUI

A simple web user interface library for ESP32 and ESP8266
https://valencia.lbsfilm.at/midterm-presentation/
Other
896 stars 166 forks source link

compiler errors when trying to compile complete example #293

Open StefanL38 opened 6 months ago

StefanL38 commented 6 months ago

loaded the complete example demo-code C:\Arduino-Pure-Portable\arduino-1.8.19\portable\sketchbook\libraries\ESPUI\examples\completeExample\completeExample.ino and get these compiler-errors

completeExample.cpp:40:2: error: #error on ESP8266 and ESPUI, you must define OOM debug option when developping

40 | #error on ESP8266 and ESPUI, you must define OOM debug option when developping

  |  ^~~~~

Multiple libraries were found for "ESPUI.h"

Used: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\sketchbook\libraries\ESPUI

Not used: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\sketchbook\libraries\ESPUI-old

Multiple libraries were found for "ArduinoOTA.h"

Used: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\packages\esp8266\hardware\esp8266\3.1.2\libraries\ArduinoOTA

Not used: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\sketchbook\libraries\ArduinoOTA

Multiple libraries were found for "LittleFS.h"

Used: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\packages\esp8266\hardware\esp8266\3.1.2\libraries\LittleFS

Not used: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\sketchbook\libraries\esp_littlefs

Multiple libraries were found for "ESPAsyncWebServer.h"

Used: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\sketchbook\libraries\ESPAsyncWebServer

Not used: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\sketchbook\libraries\ESPAsyncWebServer-master

Multiple libraries were found for "Hash.h"

Used: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\packages\esp8266\hardware\esp8266\3.1.2\libraries\Hash

Not used: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\sketchbook\libraries\AsyncElegantOTA

Using library EEPROM at version 1.0 in folder: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\packages\esp8266\hardware\esp8266\3.1.2\libraries\EEPROM

Using library ESPUI at version 2.2.3 in folder: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\sketchbook\libraries\ESPUI

Using library ArduinoJson at version 6.21.3 in folder: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\sketchbook\libraries\ArduinoJson

Using library LittleFS at version 0.1.0 in folder: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\packages\esp8266\hardware\esp8266\3.1.2\libraries\LittleFS

Using library ESPAsyncWebServer at version 1.2.3 in folder: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\sketchbook\libraries\ESPAsyncWebServer

Using library ESP8266WiFi at version 1.0 in folder: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi

Using library ESPAsyncTCP at version 1.2.2 in folder: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\sketchbook\libraries\ESPAsyncTCP

Using library Hash at version 1.0 in folder: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\packages\esp8266\hardware\esp8266\3.1.2\libraries\Hash

Using library ArduinoOTA at version 1.0 in folder: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\packages\esp8266\hardware\esp8266\3.1.2\libraries\ArduinoOTA

Using library ESP8266mDNS at version 1.2 in folder: C:\Arduino-Pure-Portable\arduino-1.8.19\portable\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266mDNS

exit status 1

error on ESP8266 and ESPUI, you must define OOM debug option when developping

MartinMueller2003 commented 6 months ago

If you are using the Arduino IDE, you can set that option in one of the dropdowns.

MartinMueller2003 commented 6 months ago

It looks like it is handled for ESP32 builds. You will need to manually define DEBUG_ESP_OOM as 0 or 1 in the .ino file. This should not be permanently added to the code since it is very platform dependent.

rizaakara commented 1 month ago

Hello how can i do it , please may you tell me ; "You will need to manually define DEBUG_ESP_OOM as 0 or 1 in the .ino file."

MartinMueller2003 commented 1 month ago

Sorry, but I am not an Arduino user. I do all of my work on PlatformIO IDE.