You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
the code compiles successfully. However, this is not an ideal solution as it involves hardcoding the full path to the file. A more permanent fix would be preferable.
I faced an issue while working on the FabGL project where the error message fatal error: WiFiGeneric.h: No such file or directory appeared. To resolve this issue, I found that it was necessary to explicitly include the WiFi library in the project dependencies.
Here’s how I fixed it:
In the platformio.ini file, I added WiFi to the lib_deps section to ensure that the WiFi library is included:
lib_deps =
fdivitto/FabGL@^1.0.9
WiFi
Additionally, make sure to include the WiFi header in your main source file:
#include <WiFi.h>
By making these adjustments, the error related to WiFiGeneric.h was resolved, allowing the project to compile successfully.
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.
The logs returned:
The text was updated successfully, but these errors were encountered: