How to set up arduino-pico in strictly cmake-based project? #1462
Replies: 3 comments
-
And here is the error: And here is the error output from my build, in all it's gory details:
|
Beta Was this translation helpful? Give feedback.
-
I took some inspiration from this FYI https://github.com/pschatzmann/pico-arduino/blob/main/ArduinoSketch.cmake |
Beta Was this translation helpful? Give feedback.
-
Moved to a discussion because this isn't really a core issue. It's not officially supported, but I guess there's no reason you couldn't use cmake with some effort like you're trying. But first of all, for sanity, do things build and run properly under the IDE/Platform.io? If not, fix that first, of course. Off the top of my head, your link libraries are wrong. If you don't want to use the precompiled Also, |
Beta Was this translation helpful? Give feedback.
-
Hi!
Thanks so much for all this awesome work you have done. I am trying to set up a strictly CMake-based project to include this library (the goal is to add it to my midi controller template (https://github.com/madskjeldgaard/SimplePicoMidiController)) and I am having some issues. I feel like I am pretty close. Most of the errors I get seem to be because
<cstring>
hasn't been included somehow.Here is my CMake setup (
arduino-pico
is ininclude/arduino-pico
of my project):Beta Was this translation helpful? Give feedback.
All reactions