s00500/ESPUI

compiler errors when trying to compile complete example

StefanL38 opened this issue · 4 comments

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

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

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.