[lolin_s2_mini,PlatformIO] Codebase no longer builds "ESPmDNS.cpp:42:10: fatal error: WiFi.h: No such file or directory"
Posted: Sat May 13, 2023 12:50 pm
I'm trying to re-build a project which I last worked on perhaps 6-10 months ago.
However, while I can reference WiFi.h in main no problem - The esp32 ESPmDNS.cpp file for whatever reason is unable to find the file.
I've tried going back to V2, but it doesn't solve my issue.\
--
As it's a project issue, I'll prove my entire project. The hardware isn't required to build the code.
Link:
https://tmpfiles.org/1413943/esp32-s2scooter.zip
--
Error log:
However, while I can reference WiFi.h in main no problem - The esp32 ESPmDNS.cpp file for whatever reason is unable to find the file.
I've tried going back to V2, but it doesn't solve my issue.\
--
As it's a project issue, I'll prove my entire project. The hardware isn't required to build the code.
Link:
https://tmpfiles.org/1413943/esp32-s2scooter.zip
--
Error log:
C:/Users/Administrator/.platformio/packages/framework-arduinoespressif32@src-e36c2260a49b9bf6768237494cebb35d/libraries/ESPmDNS/src/ESPmDNS.cpp:42:10: fatal error: WiFi.h: No such file or directory
**************************************************************
* Looking for WiFi.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:WiFi.h"
* Web > https://registry.platformio.org/search?q=header:WiFi.h
*
**************************************************************
#include <WiFi.h>
^~~~~~~~
compilation terminated.
*** [.pio\build\lolin_s2_mini\libc09\ESPmDNS\ESPmDNS.cpp.o] Error 1
======================= [FAILED] Took 13.20 seconds =======================
Environment Status Duration
------------- -------- ------------
lolin_s2_mini FAILED 00:00:13.203
================== 1 failed, 0 succeeded in 00:00:13.203 ==================
* The terminal process "C:\Users\Administrator\.platformio\penv\Scripts\platformio.exe 'run', '--environment', 'lolin_s2_mini'" terminated with exit code: 1.