FabGL icon indicating copy to clipboard operation
FabGL copied to clipboard

Compilation Error: Missing WiFiGeneric.h in ICMP.cpp when using FabGL with ESP32

Open YonLiud opened this issue 1 year ago • 2 comments

I'm encountering a compilation error when running a basic program using FabGL on an ESP32 with the PlatformIO environment (using the Arduino framework). The error occurs when the compiler is unable to find the WiFiGeneric.h header file.

I attempted to add third-party libraries that include the WiFiGeneric.h header, but this did not resolve the issue.

#include "fabgl.h"

fabgl::VGAController DisplayController;
fabgl::Terminal      Terminal;

void setup() {
    DisplayController.begin();
    DisplayController.setResolution(VGA_400x300_60Hz);
    Terminal.begin(&DisplayController);
    Terminal.println("Hello, World!");
}

void loop() {
}

The logs returned:

Compiling .pio\build\esp32doit-devkit-v1\lib391\FabGL\network\ICMP.cpp.o
.pio/libdeps/esp32doit-devkit-v1/FabGL/src/network/ICMP.cpp:33:10: fatal error: WiFiGeneric.h: No such file or directory

*********************************************************************
* Looking for WiFiGeneric.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:WiFiGeneric.h"
* Web  > https://registry.platformio.org/search?q=header:WiFiGeneric.h
*
*********************************************************************

 #include "WiFiGeneric.h"
          ^~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32doit-devkit-v1\lib391\FabGL\network\ICMP.cpp.o] Error 1

YonLiud avatar Aug 17 '24 10:08 YonLiud