[GH-ISSUE #1453] Build error for ESP32 in VSCode/PIO #1245

Closed
opened 2026-02-28 01:29:12 +03:00 by kerem · 19 comments
Owner

Originally created by @adbrimhall on GitHub (Jul 15, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1453

I get the following build error in VSCode using PlatformIO.

In file included from .pio/libdeps/esp32dev/WiFiManager/WiFiManager.cpp:13:
.pio/libdeps/esp32dev/WiFiManager/WiFiManager.h:99:14: fatal error: Update.h: No such file or directory

my platformio.ini is using the git library:
lib_deps =
https://github.com/tzapu/WiFiManager.git

If I change my platformio.ini to this instead:
lib_deps =
WiFiManager

I get a different build error:

In file included from .pio/libdeps/esp32dev/WiFiManager/WiFiManager.cpp:13:
.pio/libdeps/esp32dev/WiFiManager/WiFiManager.h:16:10: fatal error: ESP8266WiFi.h: No such file or directory

I am new to VSCode and PlatformIO. Not sure how to proceed. Any ideas?

Originally created by @adbrimhall on GitHub (Jul 15, 2022). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1453 I get the following build error in VSCode using PlatformIO. **_In file included from .pio/libdeps/esp32dev/WiFiManager/WiFiManager.cpp:13: .pio/libdeps/esp32dev/WiFiManager/WiFiManager.h:99:14: fatal error: Update.h: No such file or directory_** my platformio.ini is using the git library: lib_deps = https://github.com/tzapu/WiFiManager.git If I change my platformio.ini to this instead: lib_deps = WiFiManager I get a different build error: _**In file included from .pio/libdeps/esp32dev/WiFiManager/WiFiManager.cpp:13: .pio/libdeps/esp32dev/WiFiManager/WiFiManager.h:16:10: fatal error: ESP8266WiFi.h: No such file or directory**_ I am new to VSCode and PlatformIO. Not sure how to proceed. Any ideas?
kerem 2026-02-28 01:29:12 +03:00
Author
Owner

@ahmedtariqh commented on GitHub (Jul 16, 2022):

i had the same issue , tried with arduino ide and got it built!
i think it might be a platformio issue
looking forward to get it solved

<!-- gh-comment-id:1186294749 --> @ahmedtariqh commented on GitHub (Jul 16, 2022): i had the same issue , tried with arduino ide and got it built! i think it might be a platformio issue looking forward to get it solved
Author
Owner

@veitk commented on GitHub (Jul 21, 2022):

ouch, i'm not alone. is downgrading platformio a solution for this?

<!-- gh-comment-id:1191503622 --> @veitk commented on GitHub (Jul 21, 2022): ouch, i'm not alone. is downgrading platformio a solution for this?
Author
Owner

@tablatronix commented on GitHub (Jul 21, 2022):

Not sure, will it build for esp8266?

<!-- gh-comment-id:1191572374 --> @tablatronix commented on GitHub (Jul 21, 2022): Not sure, will it build for esp8266?
Author
Owner

@veitk commented on GitHub (Jul 21, 2022):

sorry in my case it was a different library which caused unexpected trouble.

<!-- gh-comment-id:1191659485 --> @veitk commented on GitHub (Jul 21, 2022): sorry in my case it was a different library which caused unexpected trouble.
Author
Owner

@Kuuchuu commented on GitHub (Jul 31, 2022):

I'm also having this issue, I haven't been able to work out any solutions yet. I'm unable to use the arduino ide for this project

<!-- gh-comment-id:1200464500 --> @Kuuchuu commented on GitHub (Jul 31, 2022): I'm also having this issue, I haven't been able to work out any solutions yet. I'm unable to use the arduino ide for this project
Author
Owner

@stsvilik commented on GitHub (Aug 6, 2022):

Same issue. Looks like including just WiFiManager in lib_deps downloads outdated version of WiFiManager.h. If i specify full git repo path https://github.com/tzapu/WiFiManager.git, it loads the lib fine without editor error, but fails horribly during the build with bunch of errors in PIO toolchain shared files.

<!-- gh-comment-id:1207288060 --> @stsvilik commented on GitHub (Aug 6, 2022): Same issue. Looks like including just `WiFiManager` in lib_deps downloads outdated version of `WiFiManager.h`. If i specify full git repo path `https://github.com/tzapu/WiFiManager.git`, it loads the lib fine without editor error, but fails horribly during the build with bunch of errors in PIO toolchain shared files.
Author
Owner

@CharlesPavlov commented on GitHub (Aug 8, 2022):

It would seem I'm having the same issue:

In file included from .pio/libdeps/esp32doit-devkit-v1/WiFiManager/WiFiManager.cpp:13: .pio/libdeps/esp32doit-devkit-v1/WiFiManager/WiFiManager.h:99:14: fatal error: Update.h: No such file or directory

Lib Deps below:
lib_deps =
;WiFiManager
https://github.com/tzapu/WiFiManager.git

VSCode 1.7.0
Platformio 6.1.3

<!-- gh-comment-id:1208528708 --> @CharlesPavlov commented on GitHub (Aug 8, 2022): It would seem I'm having the same issue: `In file included from .pio/libdeps/esp32doit-devkit-v1/WiFiManager/WiFiManager.cpp:13: .pio/libdeps/esp32doit-devkit-v1/WiFiManager/WiFiManager.h:99:14: fatal error: Update.h: No such file or directory` Lib Deps below: _lib_deps = ;WiFiManager https://github.com/tzapu/WiFiManager.git_ VSCode 1.7.0 Platformio 6.1.3
Author
Owner

@sauvant commented on GitHub (Aug 22, 2022):

Same here. Any advice?

<!-- gh-comment-id:1221978072 --> @sauvant commented on GitHub (Aug 22, 2022): Same here. Any advice?
Author
Owner

@sauvant commented on GitHub (Aug 22, 2022):

I adviced myself ;-)

lib_ldf_mode = deep+

in platformio.ini solved the issue for me.

<!-- gh-comment-id:1221982727 --> @sauvant commented on GitHub (Aug 22, 2022): I adviced myself ;-) lib_ldf_mode = deep+ in platformio.ini solved the issue for me.
Author
Owner

@tablatronix commented on GitHub (Aug 22, 2022):

Yeah i have no idea why it does that, it seems like a bug in pio or with certain branches

<!-- gh-comment-id:1222766426 --> @tablatronix commented on GitHub (Aug 22, 2022): Yeah i have no idea why it does that, it seems like a bug in pio or with certain branches
Author
Owner

@kinsi55 commented on GitHub (Aug 25, 2022):

I guess people (Like me) install it from the PlatformIo UI, and that would explain why its not working

grafik

<!-- gh-comment-id:1226662606 --> @kinsi55 commented on GitHub (Aug 25, 2022): I guess people (Like me) install it from the PlatformIo UI, and that would explain why its not working ![grafik](https://user-images.githubusercontent.com/8348306/186552460-faecc959-d8f2-41a7-8842-ef5cd754fdf0.png)
Author
Owner

@tablatronix commented on GitHub (Aug 25, 2022):

Hmm maybe pio manager doesn't support dev versions

<!-- gh-comment-id:1226715493 --> @tablatronix commented on GitHub (Aug 25, 2022): Hmm maybe pio manager doesn't support dev versions
Author
Owner

@ahmedreghini commented on GitHub (Nov 17, 2022):

I solve it by adding this in the main.cpp :
#include <Update.h>
#include <WebServer.h>
#include <DNSServer.h>

<!-- gh-comment-id:1318692741 --> @ahmedreghini commented on GitHub (Nov 17, 2022): I solve it by adding this in the main.cpp : #include <Update.h> #include <WebServer.h> #include <DNSServer.h>
Author
Owner

@rossog93 commented on GitHub (Dec 29, 2022):

I had in platformio.ini this: lib_ldf_mode = deep causing errors. I added lib_ldf_mode = deep+ and worked fine.

<!-- gh-comment-id:1367039628 --> @rossog93 commented on GitHub (Dec 29, 2022): I had in `platformio.ini ` this: `lib_ldf_mode = deep` causing errors. I added `lib_ldf_mode = deep+` and worked fine.
Author
Owner

@rmhomecouk commented on GitHub (Feb 2, 2023):

I guess people (Like me) install it from the PlatformIo UI, and that would explain why its not working

grafik

Thank you for the hint, I reference the github link instead and it worked straight away.

<!-- gh-comment-id:1414271144 --> @rmhomecouk commented on GitHub (Feb 2, 2023): > I guess people (Like me) install it from the PlatformIo UI, and that would explain why its not working > > ![grafik](https://user-images.githubusercontent.com/8348306/186552460-faecc959-d8f2-41a7-8842-ef5cd754fdf0.png) Thank you for the hint, I reference the github link instead and it worked straight away.
Author
Owner

@tablatronix commented on GitHub (Feb 3, 2023):

Yeah you have to specify in ini file, platformio lib does not support non release versions or at least I never figured out how to do it. I am going to make this release soon and stop using prereleases

<!-- gh-comment-id:1414673219 --> @tablatronix commented on GitHub (Feb 3, 2023): Yeah you have to specify in ini file, platformio lib does not support non release versions or at least I never figured out how to do it. I am going to make this release soon and stop using prereleases
Author
Owner

@jfujitani commented on GitHub (Jul 8, 2023):

I solve it by adding this in the main.cpp : #include <Update.h> #include <WebServer.h> #include <DNSServer.h>

I know this is an old comment on a closed issue but, I found that I also got those kinds of errors ( related to update.h etc). The errors went away, without having to directly include the headers mentioned in the error message, when I added #include <WiFiManager.h> to any of my source files. Not sure if this is a common platforio issue or specific to this library.

<!-- gh-comment-id:1627345324 --> @jfujitani commented on GitHub (Jul 8, 2023): > I solve it by adding this in the main.cpp : #include <Update.h> #include <WebServer.h> #include <DNSServer.h> I know this is an old comment on a closed issue but, I found that I also got those kinds of errors ( related to `update.h` etc). The errors went away, without having to directly include the headers mentioned in the error message, when I added `#include <WiFiManager.h>` to any of my source files. Not sure if this is a common platforio issue or specific to this library.
Author
Owner

@fg1998 commented on GitHub (Oct 21, 2023):

https://github.com/tzapu/WiFiManager.git

Using complete URL instead of 'taps/WiFiManager'in platformio.ini works like a charm.
Thanks

<!-- gh-comment-id:1773832090 --> @fg1998 commented on GitHub (Oct 21, 2023): > `https://github.com/tzapu/WiFiManager.git` Using complete URL instead of 'taps/WiFiManager'in platformio.ini works like a charm. Thanks
Author
Owner

@PhilippeLRQ commented on GitHub (Nov 8, 2023):

It is the same issue here.
It seems that VS code is looking to esp8266wifi.h ????

In file included from src\main.cpp:2:0:
.pio\libdeps\esp32dev\WiFiManager/WiFimanager.h:16:25: fatal error: ESP8266WiFi.h: No such file or directory

Help needed please.

<!-- gh-comment-id:1802710022 --> @PhilippeLRQ commented on GitHub (Nov 8, 2023): It is the same issue here. It seems that VS code is looking to esp8266wifi.h ???? In file included from src\main.cpp:2:0: .pio\libdeps\esp32dev\WiFiManager/WiFimanager.h:16:25: fatal error: ESP8266WiFi.h: No such file or directory Help needed please.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1245
No description provided.