But Library is installed.
Not enough info.
- What’s the
platformio.ini
? - adding
lib_ldf_mode = chain+
in theplatformio.ini
resolves the issue? - is the ESPAsync_WiFiManager library included in
src/main.cpp
?
In file included from .pio/libdeps/ESP32/ESPAsync_WiFiManager/src/ESPAsync_WiFiManager.h:41,
from src/main.cpp:421:
.pio/libdeps/ESP32/ESPAsync_WiFiManager/src/ESPAsync_WiFiManager.hpp:222:10: fatal error: ESPAsyncDNSServer.h: No such file or directory
Added from this file not deiectley from main!
adding lib_ldf_mode = chain+
in the platformio.ini
resolves the issue? nop
Just tried all available options!
PlatformIO.ini
;PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
; ============================================================
; chose environment:
; ESP8266
; ESP32
; ============================================================
;default_envs = ESP8266
default_envs = ESP32
[ESPAsyncWebserver_Lib]
lib_deps =
ArduinoJson@^6.19.4
https://github.com/khoih-prog/ESPAsyncWebServer.git
https://github.com/khoih-prog/ESPAsync_WiFiManager.git
https://github.com/khoih-prog/ESPAsyncDNSServer.git
#https://github.com/devyte/ESPAsyncDNSServer.git
[ESPAsynWebserver_espressif8266]
lib_deps =
${ESPAsyncWebserver_Lib.lib_deps}
#me-no-dev/ESPAsyncTCP@>=1.2.2
#me-no-dev/ESPAsyncUDP @ 0.0.0-alpha+sha.697c75a025
jandrassy/ArduinoOTA @ ^1.0.9
https://github.com/khoih-prog/ESPAsyncUDP.git
https://github.com/esp8266/Arduino.git
https://github.com/khoih-prog/ESPAsyncTCP.git
[ESPAsynWebserver_espressif32]
platform = espressif32
#platform = https://github.com/platformio/platform-espressif32.git
platform_packages =
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32#master
lib_deps =
${ESPAsyncWebserver_Lib.lib_deps}
#https://github.com/devyte/ESPAsyncDNSServer.git
#https://github.com/espressif/arduino-esp32/libraries/LittleFS.git
#lorol/LittleFS_esp32 @ ^1.0.6
#https://github.com/espressif/arduino-esp32.git
#https://github.com/espressif/arduino-esp32/tree/master/libraries
[env]
; ============================================================
; Serial configuration
; choose upload speed, serial-monitor speed
; ============================================================
upload_speed = 115200
;upload_port = COM11
monitor_speed = 115200
;monitor_port = COM11
; Checks for the compatibility with frameworks and dev/platforms
lib_compat_mode = strict
;lib_ldf_mode = chain+
lib_ldf_mode = deep+
build_flags =
; set your debug output (default=Serial)
-D DEBUG_ESP_PORT=Serial
; comment the following line to enable WiFi debugging
-D NDEBUG
-DESP_ARDUINO_VERSION_MAJOR=2
-DESPWFMG_IP_HOST='192,168,0,25' #change Default for ESPAsyncWiFiManager.hpp otherwise 0,0,0,0
-DESPWFMG_IP_GW='192,168,0,1' #change Default for ESPAsyncWiFiManager.hpp otherwise 192.168.2.1
-DESPWFMG_IP_SN='255,255,255,0' #change Default for ESPAsyncWiFiManager.hpp otherwise 255,255,255,0
-DESPWFMG_IP_DNS1='192,168,0,138' #change Default for ESPAsyncWiFiManager.hpp otherwise 192,168,2,1
-DESPWFMG_IP_DNS2='8,8,8,8' #change Default for ESPAsyncWiFiManager.hpp otherwise 8,8,8,8
-DUSE_CONFIGURABLE_DNS=true #for ESPAsyncWiFiManager.hpp
-DDEVELOPE_INFO=2
[env:ESP8266]
platform = espressif8266
framework = arduino
lib_deps =
${ESPAsynWebserver_espressif8266.lib_deps}
; ============================================================
; Board configuration
; choose your board by uncommenting one of the following lines
; ============================================================
;board = gen4iod
;board = huzzah
;board = oak
;board = esp_wroom_02
;board = espduino
;board = espectro
;board = espino
;board = espresso_lite_v1
;board = espresso_lite_v2
;board = esp12e
;board = esp01_1m
;board = esp01
;board = esp07
;board = esp8285
;board = heltec_wifi_kit_8
;board = inventone
;board = nodemcu
board = nodemcu
;board = nodemcuv2
;board = modwifi
;board = phoenix_v1
;board = phoenix_v2
;board = sparkfunBlynk
;board = thing
;board = thingdev
;board = esp210
;board = espinotee
;board = d1
;board = d1_mini
;board = d1_mini_lite
;board = d1_mini_pro
;board = wifi_slot
;board = wifiduino
;board = wifinfo
;board = wio_link
;board = wio_node
;board = xinabox_cw01
;board = esp32doit-devkit-v1
[env:ESP32]
platform = ${ESPAsynWebserver_espressif32.platform}
; platform = espressif32@5.2.0
; platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32#master
platform_packages = ${ESPAsynWebserver_espressif32.platform_packages}
framework = arduino
lib_deps =
${ESPAsynWebserver_espressif32.lib_deps}
; ============================================================
; Board configuration
; choose your board by uncommenting one of the following lines
; ============================================================
;board = esp32cam
;board = alksesp32
;board = featheresp32
;board = espea32
;board = bpi-bit
;board = d-duino-32
;board = esp32doit-devkit-v1
;board = pocket_32
;board = fm-devkit
;board = pico32
;board = esp32-evb
;board = esp32-gateway
;board = esp32-pro
;board = esp32-poe
;board = oroca_edubot
;board = onehorse32dev
;board = lopy
;board = lopy4
board = nodemcu-32s
;board = wesp32
;board = esp32thing
;board = sparkfun_lora_gateway_1-channel
;board = ttgo-lora32-v1
;board = ttgo-t-beam
;board = turta_iot_node
;board = lolin_d32
;board = lolin_d32_pro
;board = lolin32
;board = wemosbat
;board = widora-air
;board = xinabox_cw02
;board = iotbusio
;board = iotbusproteus
;board = nina_w10
How is this going to work for an ESP32? The library.json
of that library declares
which is a very old way of writing espressif8266, as seen in
So this library is not declared to be compatible with the espressif32 platform and so PlatformIO rejects it from being included in the build process.
If you think this library is compatible, add
lib_compat_mode = off
to the platformio.ini
(docs).
Ok i gonna try, cause this Library is modifiet from the owner the Repo of ESPAsyncWifiManager.
So it should work.
Thanks for now
OK could run Compile fine.
Thanks
Linking .pio\build\ESP32\firmware.elf
Retrieving maximum program size .pio\build\ESP32\firmware.elf
Checking size .pio\build\ESP32\firmware.elf
Advanced Memory Usage is available via “PlatformIO Home > Project Inspect”
RAM: [= ] 13.6% (used 44716 bytes from 327680 bytes)
Flash: [======= ] 68.4% (used 897065 bytes from 1310720 bytes)
Building .pio\build\ESP32\firmware.bin
esptool.py v4.2.1
Creating esp32 image…
Merged 25 ELF sections
Successfully created esp32 image.
Right, reading Make AsyncDNS arduino-esp32-compatible · Issue #3 · devyte/ESPAsyncDNSServer · GitHub I also get the idea that it should be compatible.
I’ve opened a PR.
Thanks for your help!!