Modern compiler toolchains infuriate me with their inane complexity!
I've tried about 3 different ways to be able to install the Raspberry PI Pico toolchain. Stupid <expletive> cmake!!! Why not just ordinary makefiles??!?!!?!?!?!?! Anyway, I tried installing the tools manually to begin with. Then I tried vscodium (you might ask why I don't just install vscode, but I hate Microsoft so much I'd do anything else than support their empire), but I never figured out how to get vscodium to pick up the right paths for arm-none-eabi-gcc; the pico sdk and pico examples. And this stuff should be easy!
Finally, I've been trying to use eclipse. Actually I've been fairly comfortable with eclipse, but again, it's a <expletive> cmake conflict. The Raspberry PI PICO getting started manual tells you how:
- At the same level as the pico-examples folder, create a new folder, for example pico-examples-eclipse
- Change directory to that folder
- Set the path to the PICO_SDK_PATH
$ export PICO_SDK_PATH=<wherever>
(that's a bad instruction, because it absolutely matters what that path is, the implication is that it should be the path to the pico-examples-eclipse folder your've just created).
$ cmake -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ../pico-examples
And it's this line that fails. I really don't understand that freakin' cmake CLI gibberish, life's too short to build your life around the arcane command line options of every tool, so I'm just treating that guff like magic. Unfortunately, regardless of whether I have PICO_SDK_PATH=~/Development/pico/pico-examples-eclipse or PICO_SDK_PATH=~/Development/pico/pico-examples it complains that:
CMake Error at pico_sdk_import.cmake:68 (message):
Directory '/Users/julianskidmore/Development/pico/pico-examples-eclipse'
does not appear to contain the Raspberry Pi Pico SDK
Call Stack (most recent call first):
CMakeLists.txt:4 (include)
Well, of course it bloomin' doesn't, because that's where the conversions are supposed to be stored!
Any Ideas? (please don't just tell me to install vscode).
Oh my goodness, even if I cd to the pico-examples AND set the PICO_SDK_PATH to pico-examples, I still get the same error message!!!?!? How can it possibly know what the target directory is if nothing specifies it?!?!?!!!
Modern development tools: a swamp within an ocean of sewage.