Compilation error for nodemcuv2 and d1_mini_pro-ota envrionment: AsyncUDP.h no such file or directory
Opened this issue · 1 comments
Souliboi commented
when compiling under the two environments in a freshly cloned project it will fail with
In file included from src/main.cpp:29:
include/plugins/DDPPlugin.h:4:10: fatal error: AsyncUDP.h: No such file or directory
******************************************************************
* Looking for AsyncUDP.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:AsyncUDP.h"
* Web > https://registry.platformio.org/search?q=header:AsyncUDP.h
*
******************************************************************
4 | #include "AsyncUDP.h"
| ^~~~~~~~~~~~
compilation terminated.
*** [.pio/build/d1_mini_pro-ota/src/main.cpp.o] Error 1
while compiling just fine with the esp32dev environment
some help would be very welcomed as i would like to see this compile for a esp8266 instead of exclusively on the esp32
rhyswfbowles commented
From my poking around, it appears to be because the espressif8266
platform does not ship AsyncUDP as expected.
I added me-no-dev/ESPAsyncUDP
to the lib_deps of the two mentioned envs
And updated the DDPPlugin.h to include
#ifdef ESP32
#include <AsyncUDP.h>
#elif defined(ESP8266)
#include <ESPAsyncUDP.h>
#endif
Haven't fully tested it yet but this got me past the build error