mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1451] Can't build the library, after migrating to ESP32 #1241
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#1241
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 @ambarusa on GitHub (Jul 11, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1451
Hi, I can't manage to build the library, after I want to switch to ESP32. Everything worked well with ESP8266, therefore I'm not attaching any code of mine.
I'm using the library cloned, and as a submodule, and I'm up-to-date to
masterbranch. I'm developing in PlatformIO.I have a lot of errors, but at first sight all of them can be traced back to the first one, which is:
Relevant code (WiFiManager.h):
Thank you so much for your help.
@XiotSamuel commented on GitHub (Jul 12, 2022):
I have same issue the compiler. When build target is ESP32, the WiFiManager.h is still using ESP8266WiFi.h.
@ambarusa commented on GitHub (Jul 12, 2022):
To solve this, change the header to
WiFi.h.@ambarusa commented on GitHub (Jul 12, 2022):
@tablatronix Unfortunately, I couldn't solve the original issue, changing that header is a previous step before getting my errors.
@tablatronix commented on GitHub (Jul 12, 2022):
are you including wifimanager.h or just using lib_deps?
Someone posted a similar issue before and it was a pio issue..
could be ldf mode or not including proper deps
without any information no idea
@ambarusa commented on GitHub (Jul 12, 2022):
I have the library cloned in my libs folder. With lib_deps, it complained for not finding ESP8266WiFi.h
Will try ldf mode, and get back, thanks!
@tablatronix commented on GitHub (Jul 12, 2022):
I assume you clone git/master?
try ldf chain+ or deep
and add wm include to header not just in platformio.ini deps
@ambarusa commented on GitHub (Jul 14, 2022):
Hi, unfortunately it's not working. Here's the full error message by the way:
@tablatronix commented on GitHub (Jul 15, 2022):
What is your enviroment? Are you using idf? Post your ini
@ambarusa commented on GitHub (Jul 25, 2022):
I'm sorry for my late reply. It's the simplest:
@tablatronix commented on GitHub (Jul 25, 2022):
Try clean and also
platform = https://github.com/platformio/platform-espressif32.git
and see what happens, what does your pio compile log look like
@ambarusa commented on GitHub (Jul 25, 2022):
Interesting. The Output is:
@tablatronix commented on GitHub (Jul 25, 2022):
it really looks like your pio enviroment is all messed up, never seen any issue like this
@ambarusa commented on GitHub (Jul 25, 2022):
I will try a clean install.
@ambarusa commented on GitHub (Jul 25, 2022):
Now your method went through, but it threw the original error. I haven't seen any difference in the downloaded playtform. I checked,
Espressif 32platform is on version5.0.0, andWiFiManageris on the latest commit, [7d498ed] from July the 15th. Can you confirm if this combination works?@tablatronix commented on GitHub (Jul 25, 2022):
I am on pio
PlatformIO Core, version 6.0.2