Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5096

General • Pico W Wifi Scan Example Build Errors

$
0
0
On Windows 10 using Visual Studio Code. Called from the Pico Developer Command Prompt with >code
I am using C SDK - not mPython

I am trying to build the WiFi Scan example on a PICO W

( The sample as given fails not finding nmake on the CmakeLists.txt project () line - any one know why?)

I copied the example to a new folder. Using my working Blink as a template then Copy and pasted the example contents of CMakeLists.txt and picow_wifi_scan.c. I copied lwipopts_examples_common.h to the project folder.


On Build I get the following errors:

Code:

C:/Program Files/Raspberry Pi/Pico SDK v1.5.1/pico-sdk/lib/cyw43-driver/src/cyw43_lwip.c:220: undefined reference to `dns_setserver'C:/Program Files/Raspberry Pi/Pico SDK v1.5.1/pico-sdk/lib/cyw43-driver/src/cyw43_lwip.c:223: undefined reference to `dhcp_set_structC:/Program Files/Raspberry Pi/Pico SDK v1.5.1/pico-sdk/lib/cyw43-driver/src/cyw43_lwip.c:224: undefined reference to `dhcp_start'C:/Program Files/Raspberry Pi/Pico SDK v1.5.1/pico-sdk/lib/cyw43-driver/src/cyw43_lwip.c:245: undefined reference to `dhcp_stop'[C:/Program Files/Raspberry Pi/Pico SDK v1.5.1/pico-sdk/lib/cyw43-driver/src/cyw43_lwip.c:261: undefined reference to `netif_list'/code]dns_setserver is defined in dns.h ;  dhcp_set_struct etc. are defined in dhcp.hIn dhcp.h there is a guard line #if LWIP_DHCP /* don't build if not configured for use in lwipopts.h */In dns.h there is similarly a line #if LWIP_DNSIn  lwipopts_examples_common.h  there is a line #define LWIP_DHCP                   1and also #define LWIP_DNS                    1Is there another setting I have missed.?It's frustrating that the provided example don't work out of the box. It makes getting started on the PICO W really hard going.Any advice would be welcomed.Ted

Statistics: Posted by tfcroft4 — Thu Feb 01, 2024 6:39 pm



Viewing all articles
Browse latest Browse all 5096

Trending Articles