I'm trying to get some basic network functionality working, and running into trouble. I've built the wifi modules in pico-examples for pico_w to verify my dev setup, but when pulling over some of that code into Swift, I'm having trouble.
I suspect the issue is with the CMakeLists.txt file, although I'm not sure.
In file included from /Users/willwalker/Developer/pico-swift/pico-sdk/lib/lwip/src/core/mem.c:59:
/Users/willwalker/Developer/pico-swift/pico-sdk/lib/lwip/src/include/lwip/sys.h:95:10: fatal error: arch/sys_arch.h: No such file or directory
95 | #include "arch/sys_arch.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
[84/180] Building C object CMakeFiles/swift-pico.dir/pico-sdk/lib/tinyusb/src/common/tusb_fifo.c.obj
ninja: build stopped: subcommand failed.
I'm trying to get some basic network functionality working, and running into trouble. I've built the
wifi
modules inpico-examples
forpico_w
to verify my dev setup, but when pulling over some of that code into Swift, I'm having trouble.I suspect the issue is with the
CMakeLists.txt
file, although I'm not sure.I've modified the necessary target link library entry to properly set
CYW43_LWIP
, but now I'm getting other errors:Here is my full project: https://github.com/willswire/pico-swift/tree/implement-networking