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

ESP32: FS.h: No such file or directory #520

Closed
andig opened this issue May 28, 2019 · 8 comments
Closed

ESP32: FS.h: No such file or directory #520

andig opened this issue May 28, 2019 · 8 comments

Comments

@andig
Copy link
Contributor

andig commented May 28, 2019

I'm unable to compile on Platformio using git version of espressif32 platform:

.piolibdeps/ESP Async WebServer_ID306/src/ESPAsyncWebServer.h:27:16: fatal error: FS.h: No such file or directory

I've already added:

lib_deps=
    ${common.lib_deps}
    https://github.com/me-no-dev/AsyncTCP
    SPIFFS

but it is not sufficient to fix the missing FS.h. Any ideas?

@atanisoft
Copy link
Contributor

You need to add FS as a dependency since PIO doesn't automatically include it as a dependency of SPIFFS.

@andig
Copy link
Contributor Author

andig commented May 28, 2019

Thanks, resolved. Or put lib_ldf_mode=deep.

@andig andig closed this as completed May 28, 2019
@Valentin-Metz
Copy link

Valentin-Metz commented Mar 8, 2021

I got the same error today installing via platformio.
Adding lib_ldf_mode=deep to platformio.ini does resolve it, bud maybe there is a way to resolve this by default?

@ali80
Copy link

ali80 commented Mar 29, 2021

setting lib_ldf_mode=deep may slow things down, though I'm not sure.
cloning ESP Async WebServer repo in lib folder and not using platformio.ini for this dependency fixed it for me

@nicola-lunghi
Copy link

I think this library needs the following libraries to be specified as dependencies
FS
Wifi

@rossog93
Copy link

I also fixed the issue by adding lib_ldf_mode=deep in platformio.ini.

roleroz added a commit to roleroz/platformio_rules that referenced this issue Mar 28, 2023
Sometimes projects don't compile correctly with our default (deep+),
like it can be seen in
me-no-dev/ESPAsyncWebServer#520
@alisherWork
Copy link

Special thanks to the seniors. This problem has been giving me a headache for a week. I solved it with one line using lib_ldf_mode=deep. My name is ali. One day I will help you too.

@0blu
Copy link

0blu commented Mar 12, 2024

Just in case anyone needs a complete platform.ini with lib_ldf_mode=deep

[env:esp32doit-devkit-v1]
platform = espressif32@3.5.0
board = esp32doit-devkit-v1
framework = arduino
monitor_speed = 115200
lib_ldf_mode=deep
lib_deps =
    me-no-dev/AsyncTCP @ 1.1.1
    me-no-dev/ESP Async WebServer @ 1.2.3
    arduino-libraries/Arduino_JSON @ 0.2.0

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

8 participants