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

fatal error: WiFi.h: No such file or directory #1268

Closed
peterus opened this issue Dec 30, 2023 · 5 comments
Closed

fatal error: WiFi.h: No such file or directory #1268

peterus opened this issue Dec 30, 2023 · 5 comments

Comments

@peterus
Copy link

peterus commented Dec 30, 2023

In the process of updating the platform from 6.4.0 to 6.5.0 a new compilation issue is popping up:

In file included from ~/.platformio/packages/framework-arduinoespressif32/libraries/Ethernet/src/ETH.cpp:24:
~/.platformio/packages/framework-arduinoespressif32/libraries/Ethernet/src/ETH.h:27:10: fatal error: WiFi.h: No such file or directory

I could trace the issue back to the esp32 arduino core as there where changes in the ETH.cpp file, but they do not look like changes which would introduce such an compilation issue. My code is using the ETH part of the arduino core.
Some suggestions?

my CI pipeline with compilation fail: lora-aprs/LoRa_APRS_iGate#342

@BlueAndi
Copy link

BlueAndi commented Jan 3, 2024

Hi Peter,
can you add WiFi to the lib_deps and try again?

Example:

lib_deps =
    WiFi
    ...

@peterus
Copy link
Author

peterus commented Jan 4, 2024

thanks for looking into it. sadly it shows the same:

https://github.com/lora-aprs/LoRa_APRS_iGate/actions/runs/7404812034/job/20146866405

@BlueAndi
Copy link

BlueAndi commented Jan 4, 2024

I see ... in this case remove WiFi from lib_deps again and change lib_ldf_mode to deep (without +).

Note, you will have to remove Werror to get it compiled at all. Unfortunately there is warning in the framework, which is already fixed in the main stream.

73

@valeros
Copy link
Member

valeros commented Jan 8, 2024

Hi @peterus, thanks for reporting! It seems like a bug in Library Dependency Finder, so I've filed an issue in the PlatformIO Core repository platformio/platformio-core#4818 so it will be tracked there.

As a workaround you can specify build_flags = -DCONFIG_ETH_ENABLED in your platformio.ini to help LDF detect all necessary dependencies correctly.

@valeros valeros closed this as not planned Won't fix, can't repro, duplicate, stale Jan 8, 2024
@peterus
Copy link
Author

peterus commented Jan 8, 2024

@valeros thanks for taking a look into this! Just tried your workaround and it is working now 👍 will monitor the other ticket to see when this issue is resolved.

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

3 participants