Error compiling arduino-wifiscan example with lib_ldf_mode = deep+
Closed this issue · 1 comments
dialmak commented
Hi,
Faced a problem on my code when using #include “WiFi.h” with lib_ldf_mode = deep+ .
The problem is also present in the standard example arduino-wifiscan.
arduino-wifiscan example with platformio.ini
[env:esp32-s3-devkitm-1]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.05/platform-espressif32.zip
board = esp32-s3-devkitm-1
framework = arduino
monitor_speed = 115200
upload_speed = 921600
monitor_filters =
direct
; Debug
build_flags =
-DCORE_DEBUG_LEVEL=4
lib_ldf_mode = deep+
Result
...
Creating esp32s3 image...
Merged 1 ELF section
Successfully created esp32s3 image.
Compiling .pio\build\esp32-s3-devkitm-1\lib60a\WiFi\AP.cpp.o
Compiling .pio\build\esp32-s3-devkitm-1\lib60a\WiFi\STA.cpp.o
Compiling .pio\build\esp32-s3-devkitm-1\lib60a\WiFi\WiFi.cpp.o
In file included from C:/Users/ostap/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiSTA.h:29,
from C:/Users/ostap/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFi.h:33,
from C:/Users/ostap/Documents/PlatformIO/Projects/241012-224623-arduino-wifiscan/src/WiFiScan.ino:6:
C:/Users/ostap/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:39:10: fatal error: Network.h: No such file or directory
...
Tried changing the board to a different one. Same thing.
I found a solution. Although it is not obvious and strange. You need to add to the platformio.ini file
build_flags =
-DSOC_WIFI_SUPPORTED=1
This behavior is incomprehensible to me...
Jason2866 commented
LDF has many bugs. Especially deep+
Don't use. If you need this option, your setup should be reworked. https://community.platformio.org/t/fs-h-no-such-file-or-directory-with-ldf-mode-deep/29586/2
The example arduino-wifiscan
does work with a valid setup.