-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pico-w-blink-sdk | cmake --build build | fail #62
Comments
Hi! This is actually described in #59. It's a pretty long thread but it has a (temporary) solution I found. I'll make sure to create a PR in the near future (edit: PR is #63). Long story short, why this happens: the Pico SDK compiler definitions are not passed to |
@iCMDdev , I'm just getting started with embedded Swift and thanks to your info here was able to get the blinky example working on the pico-w. However, even after applying your changes I was still getting errors regarding missing cyw header files. As a bit of a hack, I got it working by adding these libraries,
I can't give much of an explanation yet, but I wondered if you encountered anything like this if you were building for the pico-w? |
@rdlaner Pretty fun coincidence that I checked my email right when you replied 😆
Right, yes, you need to include those libraries as well for the Pico W. I wouldn't say this is a hacky way to do it, I think it's normal / expected. My
Yeah, I also had to include those libraries when I tested on the Pico W, and I'd say this is normal / expected. Check out the Pico W example in the PR I recently made (and maybe watch for future updates, I'll try to make this more cmake-friendly if possible. If you have any ideas / suggestions for that, they're very welcome!). One thing I haven't tested yet is if the |
Hey @LunaTMT, is it working for you now? The PR I mentioned was merged. I think this can be closed. |
$ cd pico-w-blink-sdk
First build with Ninja works fine:
Running cmake build:
On checking the existence of "accessctrl.h" it cannot be found
But the pico-sdk is already up to date on master branch
$ cd ~/pico-sdk
git pull
Already up to date.
~/pico-sdk$ git branch
The text was updated successfully, but these errors were encountered: