Kconfig.projbuild: "ARDUINO_SELECTIVE_Networking" not compatible with CMakeLists.txt #9556
Closed
1 task done
Labels
Milestone
Board
ESP32-S3-WROOM-1-N16R8
Device Description
Own hardware-design.
Hardware Configuration
n.a.
Version
latest development Release Candidate (RC-X)
IDE Name
Visual Studio Code with ESP-IDF
Operating System
Windows 10
Flash frequency
40MHz
PSRAM enabled
no
Upload speed
921600
Description
Problem
When selecting "Include only specific Arduino libraries" in "SDK Configuration editor" the libraries "Network" and "NetworkClientSecure" are not detected/included correctly by CMakeLists.txt because the corresponding menu options in Kconfig.projbuild are called "ARDUINO_SELECTIVE_Networking" and "ARDUINO_SELECTIVE_WiFiClientSecure" which should be "ARDUINO_SELECTIVE_Network" (without "ing") and "ARDUINO_SELECTIVE_NetworkClientSecure".
That is because CMakeLists.txt concats "ARDUINO_SELECTIVE_" with the library-name to check if the Arduino-library is selected in Kconfig.projbuild, in this two cases the library names are "Network" (and not "Networking") and "NetworkClientSecure" (and not "WiFiClientSecure").
Solution
Replace in Kconfig.projbuild
"ARDUINO_SELECTIVE_Networking" by "ARDUINO_SELECTIVE_Network" and
"ARDUINO_SELECTIVE_WiFiClientSecure" by "ARDUINO_SELECTIVE_NetworkClientSecure"
fixes the problem.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: