Open MohammedNoureldin opened 3 years ago
this is normal and is based on how platform io is working.
you have to ways to get the "Wifi.h" auto detect via:
lib_ldf_mode = chain+
or manual via:
lib_deps =
WiFi
WiFiClientSecure
@Links2004 Hi Markus, thanks for your reply. I am a bit confused. I am already using chain+
, and this is exactly what triggers the problem, please find the minimal project I provided here:
https://github.com/platformio/platformio-core/issues/3876#issuecomment-799509343
ok, I where able to reproduce after some updates.
but I dont understand why this happens
for the ESP8266 lib_ldf_mode = chain+
is working fine,
but with the ESP32 it failes.
@Links2004 , exactly, that was my observation as well. Do you have any idea what to do? I already reported this as a bug in PlatformIO repo in the link shown above.
Hi Markus, do you think it makes sense to build something temporary into the code or library.json
as kind of workaround until PlatformIO guys fix the bug?
Please check their temporary workaround here:
https://github.com/platformio/platformio-core/issues/3876#issuecomment-800163580
the problem is that chain+
is required for ESP8266 and the NO_GLOBAL_INSTANCES
define see https://github.com/Links2004/arduinoWebSockets/issues/624
forcing chain
for the lib is no option since it will brake other code bases.
@Links2004 that is funny that the other issue was opened by meو too. I will think a bit about it then let you know if anything useful comes to my mind. Thank you Markus!
ugh
Thank you links2004..
HI, did you get it fixed?
for me actually completely removing:
lib_ldf_mode = deep+
in the platform.ini file made it compile without any errors. No idea why though...
Any update on this?
I am having the same errors with an ESP32. I need
lib_ldf_mode = deep+
or
lib_ldf_mode = chain+
, otherwise it won't compile because BLEDevice.h is missing etc.
Even adding lib_deps= WiFi and WiFiClientSecure gives me the same errors
I am trying to add WebSocket to my ESP32 project, but unfortunately the compiler fails. Following is the error message I get:
I am using PlatformIO IDE, below is my
platformio.ini
(the important part):Could anyone please help me to get it compiling? I am not sure what is wrong, because my project compiles as long as I do not add WebSocket library to it.
UPDATE:
Well, I have a new finding, changing
lib_ldf_mode
fromchain+
tochain
makes the project compiles. What is going wrong here? I need to usechain+
. I believe this used to work in my ESP8266 projects.