Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error for nodemcuv2 and d1_mini_pro-ota envrionment: AsyncUDP.h no such file or directory #115

Open
Souliboi opened this issue Aug 3, 2024 · 1 comment

Comments

@Souliboi
Copy link

Souliboi commented Aug 3, 2024

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
Copy link

rhyswfbowles commented Aug 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants