Open YonLiud opened 3 months ago
I found a temporary solution to the issue. By modifying the include directive in ICMP.cpp directly:
#include "ICMP.h"
#include "Arduino.h"
- #include "WiFiGeneric.h"
+ #include "C:/Users/<user>/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h"
namespace fabgl {
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.
Hello,
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:
By making these adjustments, the error related to WiFiGeneric.h was resolved, allowing the project to compile successfully.
Thank you for your attention to this issue!
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: