mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 17:15:53 +03:00
[GH-ISSUE #1453] Build error for ESP32 in VSCode/PIO #1245
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1245
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
@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
@veitk commented on GitHub (Jul 21, 2022):
ouch, i'm not alone. is downgrading platformio a solution for this?
@tablatronix commented on GitHub (Jul 21, 2022):
Not sure, will it build for esp8266?
@veitk commented on GitHub (Jul 21, 2022):
sorry in my case it was a different library which caused unexpected trouble.
@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
@stsvilik commented on GitHub (Aug 6, 2022):
Same issue. Looks like including just
WiFiManagerin lib_deps downloads outdated version ofWiFiManager.h. If i specify full git repo pathhttps://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.@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 directoryLib Deps below:
lib_deps =
;WiFiManager
https://github.com/tzapu/WiFiManager.git
VSCode 1.7.0
Platformio 6.1.3
@sauvant commented on GitHub (Aug 22, 2022):
Same here. Any advice?
@sauvant commented on GitHub (Aug 22, 2022):
I adviced myself ;-)
lib_ldf_mode = deep+
in platformio.ini solved the issue for me.
@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
@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
@tablatronix commented on GitHub (Aug 25, 2022):
Hmm maybe pio manager doesn't support dev versions
@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>
@rossog93 commented on GitHub (Dec 29, 2022):
I had in
platformio.inithis:lib_ldf_mode = deepcausing errors. I addedlib_ldf_mode = deep+and worked fine.@rmhomecouk commented on GitHub (Feb 2, 2023):
Thank you for the hint, I reference the github link instead and it worked straight away.
@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
@jfujitani commented on GitHub (Jul 8, 2023):
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.hetc). 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.@fg1998 commented on GitHub (Oct 21, 2023):
Using complete URL instead of 'taps/WiFiManager'in platformio.ini works like a charm.
Thanks
@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.