mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1229] WiFiManager.h: No such file or directory / Platform.io #1049
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#1049
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 @entrusc on GitHub (Mar 19, 2021).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1229
Basic Infos
Hardware
WiFimanager Branch/Release: 0.16.0
Esp8266/Esp32:
Hardware: ESP32
Core Version: 2.4.0, staging
Description
I don't know if I'm doing something wrong, but I am unable to use the WifiManager with esp32dev board using Platformio. I am using the following platformio.ini
and I get the following error message:
I don't know if this is really a bug with this library, but I'm unable to find a solution for that. Any help would be appreciated. Thanks!
@EgHubs commented on GitHub (Apr 1, 2021):
I never used it but maybe this will help.
@tablatronix commented on GitHub (Apr 1, 2021):
I updated that page, thanks, master is now development
This should works, maybe a problem with pio lib manager, or pio env, it should auto install deps
@shellster commented on GitHub (Jun 2, 2021):
I am also experiencing this issue. I had to manually download and include
WiFiManager.handstrings_en.hfrom master in my project before I could get it to compile.@tablatronix commented on GitHub (Jun 2, 2021):
Even if you include wifimanager.h alone? Hmm
@shellster commented on GitHub (Jun 3, 2021):
Yeah. I started with just:
#include <WifiManager.h>(besides Arduino.h) and adding this line in my platformio.ini:lib_deps = tzapu/WiFiManager@^0.16.0. When that didn't work, I went and tried to manually install the library in platformio. It still didn't work. I don't think it is too relevant, but I'm using an old NodeMCU with an ESP8266MOD chip. It seems to work just fine when I included local file copies.@noweare1 commented on GitHub (Jun 9, 2021):
I am getting the error on PIO .pio/libdeps/esp32dev/WiFiManager/WiFiManager.h:16:25: fatal error: ESP8266WiFi.h: No such file or directory.
After installing the library using platformio I compare the github wifimanager.h file with the wifmanager.h file downloaded into my project by platformio and they are different. Have not tried just a manual install. The github wifimanager.h is the one that is correct don't know how pio is grabbing a different file. The fun never ends.
@tablatronix commented on GitHub (Jun 9, 2021):
Sounds like it doesn't know its esp32, Sounds like a platform issue
@noweare1 commented on GitHub (Jun 9, 2021):
It is a platform issue. I cloned the repo to my project added #include in main and it all worked.
@shellster commented on GitHub (Jun 16, 2021):
My problem turned out to be a typo:
#include <WifiManager.h> #Should be: <WiFiManager.h>Not sure where the typo came from, if I just fat fingered it or if it was incorrectly mentioned in some documentation somewhere. Also uncertain why it worked when I cloned from the repo directly. So to be explicit:
And in my code:
#include <WiFiManager.h>@abodydz commented on GitHub (Jul 7, 2022):
Same issue but nothing works ):
@jenschr commented on GitHub (Nov 30, 2022):
@tablatronix I can confirm this still happens. I'm using PlatformIO Core 6.1.5m Home 3.4.3 with an "adafruit_feather_esp32s3_nopsram" device (https://www.adafruit.com/product/5323). Trying to run the Basic.ino example. The full error messages are below, but briefly said - the IDE is unable to find the files ESP8266WiFi.h, ESP8266WebServer.h and user_interface.h. Is this ineed an unresolved dependency to this repo? https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266WebServer
[{
"resource": "/Users/jensa/Documents/PlatformIO/Projects/RGBWifiMan/.pio/libdeps/adafruit_feather_esp32s3_nopsram/WiFiManager/WiFiManager.h",
"owner": "C/C++",
"code": "1696",
"severity": 8,
"message": "cannot open source file "ESP8266WiFi.h"",
"source": "C/C++",
"startLineNumber": 16,
"startColumn": 1,
"endLineNumber": 16,
"endColumn": 25
}]
[{
"resource": "/Users/jensa/Documents/PlatformIO/Projects/RGBWifiMan/.pio/libdeps/adafruit_feather_esp32s3_nopsram/WiFiManager/WiFiManager.h",
"owner": "C/C++",
"code": "1696",
"severity": 8,
"message": "cannot open source file "ESP8266WebServer.h"",
"source": "C/C++",
"startLineNumber": 17,
"startColumn": 1,
"endLineNumber": 17,
"endColumn": 30
}]
[{
"resource": "/Users/jensa/Documents/PlatformIO/Projects/RGBWifiMan/.pio/libdeps/adafruit_feather_esp32s3_nopsram/WiFiManager/WiFiManager.h",
"owner": "C/C++",
"code": "1696",
"severity": 8,
"message": "cannot open source file "user_interface.h"",
"source": "C/C++",
"startLineNumber": 22,
"startColumn": 3,
"endLineNumber": 22,
"endColumn": 30
}]
@jenschr commented on GitHub (Nov 30, 2022):
@tablatronix if you can point me where to look (as in where the library containing ESP8266WiFi.h is from) I'll dig into this and produce a PR.
@tablatronix commented on GitHub (Nov 30, 2022):
I use 6.1.5, your enviroment or platform has an issue I would assume. You are using esp32 not esp8266, what in your platformio.ini ?
@jenschr commented on GitHub (Nov 30, 2022):
This is in my ini and here you can see the problem:
[env:adafruit_feather_esp32s3_nopsram]
platform = espressif32
board = adafruit_feather_esp32s3_nopsram
framework = arduino
lib_deps = tzapu/WiFiManager@^0.16.0
For some reason, I have a two year old version as the only option to install. If I look at WiFiManager in the PIO Library browser, the 0.16.0 version is the most recent I can install. I can see from the changelog that this obviously is a very old version, but the version dropdown in the PlatformIO Libraries listing only allows me to select versions 0.15.0 and 0.16.0. That's the issue.
My PlatformIO is fully updated and so are all dependencies that I know of. What can cause this?
@tablatronix commented on GitHub (Nov 30, 2022):
WiFiManager@^0.16.0 does not support esp32, you need to use git master or one of the beta releases
@tablatronix commented on GitHub (Nov 30, 2022):
lib_deps =
https://github.com/tzapu/WiFiManager.git
@jenschr commented on GitHub (Dec 1, 2022):
That's great since it resolves my immediate issue, but it won't help anyone using the standard Library handling in PlatfromIO and it'll generate lots of unneeded issues here on Github. What would be required to make this work with the PlatformIO library manager? Is there aything I can help to make that "just work"?
@jenschr commented on GitHub (Dec 1, 2022):
According to the documentation (https://docs.platformio.org/en/latest/librarymanager/creating.html#publishing), one needs to use the "pio pkg publish" command in PlatformIO for every release to publish. According to https://registry.platformio.org/libraries/tzapu/WiFiManager this was last done two years ago. I think that's the root issue here.
@tablatronix commented on GitHub (Dec 1, 2022):
platformio library manager does not support beta releases