Hello. First time trying out a Pimoroni display. The LCD GFX, with a PicoW. I got the example code and compiled it. The C demo runs just fine. Now I’d like to start developing in my own Development folder, out of the pimoroni-pico code tree. What is the easiest way you would suggest for the development code to find all that’s needed from Pimoroni so that apps can be built elsewhere ?
For instance, if I copy the sources for gfx_pack somewhere else in the storage space, the cmake part of it will fail with :
CMake Error at CMakeLists.txt:12 (pico_add_extra_outputs):
Unknown CMake command "pico_add_extra_outputs".
As if it can’t find anymore the Pico SDK sources. Even though the env. variables were properly set by the pico_setup.sh script, and all related sources built fine :
As far as I can see the Pimoroni sources are building fine from within the pimoroni-pico directory tree, but not when a Pimoroni source is copied elsewhere.
What would be proper setup in order to develop projects outside of the pimoroni-pico directory tree ?
Have you asked this question on GitHub?
Phil Howard @gadgetoid is Pimoronis main software guy.
Post your query where he can see it and he can likely help you out.
[ahnlak] : “There’s always the boilerplate project”
As I mentioned the pimoroni sources are compiling (and running on a Pico) just fine. That is not the problem. The problem is to work on personal projects OUT OF the pimoroni-pico directory structure.
[alphanumeric] : Thanks. I’ll see, as I’m doing more tests now.
That boilerplate is specifically designed as a template for a standalone project outside of pimoroni-pico. It’s not just a random bit of the pimoroni-pico repo I pointed you at :-)