My idiots guide for building for a Pico no longer works. #13019
-
I had an idiots guide for building mp for a rpi pico that used to work. By now it works no longer. First up after cloning the mp from github in a target directory my first task was to make -C mpy-cross before changing from the target directory. This did not work but changing into the micropython/mpy-cross first and executing a 'make' seemed to work. Im setting all this up on my new rpi5 that now runs debian bookworm (could this be why the build fails I wonder). Anyhow this is my latest idiots guide (me being the idiot :) ) and below my guide I show the ultimate failure message. Seems to be something to do with cmake (I told it to make not cmake??) Idiots guide:
But the final step 7 fails and I give the output: pi@P5-dorky:~/pico/micropython/ports/rp2 $ make BOARD=RPI_PICO clean pi@P5-dorky:~/pico/micropython/ports/rp2 $ make BOARD=RPI_PICO As you can see some sort of error occurred with the make BOARD= RPI_PICO (I fell at the last blooming hurdle) that is probably understandable for those that are used to compiling stuff with make etc. I hope someone can give a tip of what may be going wrong or perhaps point to some other instructions of getting a build going on Debian bookworm for a rpi pico. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
You should install |
Beta Was this translation helpful? Give feedback.
-
Hi @ricksorensen, thanks for the reply. I installed cmake (sudo apt install cmake) which installed ok. But when I now run - make BOARD=RPI_PICO I get the follow errors pi@P5-dorky:~/pico/micropython/ports/rp2 $ make BOARD=RPI_PICO CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. Do you, or anyone, have any thoughts on steps to take next. I don't remember having to do anything extra on my rpi4 and Debian bullseye, but memory may be failing me. However it seems you must be correct in that the requirements for RP2040 builds are lacking somewhere. Its a rabbit hole to be sure. |
Beta Was this translation helpful? Give feedback.
-
@sosi-deadeye, thanks for that link I had missed that and now its working perfectly. |
Beta Was this translation helpful? Give feedback.
The installation is missing the toolchain to compile code for arm.
Have you read this: https://github.com/micropython/micropython/wiki/Getting-Started#debian-ubuntu-mint-and-variants