Followed instructions, but cannot build

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
User avatar
RWLTOK
Posts: 53
Joined: Thu Dec 14, 2017 7:24 pm

Followed instructions, but cannot build

Post by RWLTOK » Sun Aug 29, 2021 7:40 pm

I have tried build micropython latest in git as well as the 1.16 tag. Just the other day, I built 1.16 for a pyboardv11.

When it comes to the step to make, the following happens.

Code: Select all

~/micropython/ports/rp2$ make
[ -d build-PICO ] || cmake -S . -B build-PICO -DPICO_BUILD_DOCS=0 -DMICROPY_BOARD=PICO
make -s -C build-PICO
make[1]: *** No targets specified and no makefile found.  Stop.
Makefile:18: recipe for target 'all' failed
make: *** [all] Error 2
Thanks

PS: These are the instructions: https://datasheets.raspberrypi.org/pico ... on-sdk.pdf

OMT... I am running Ubuntu 18.04

After noodling around I realized it needs a minimum version of cmake 3.12. I went to https://apt.kitware.com/ to install it.

hippy
Posts: 130
Joined: Sat Feb 20, 2021 2:46 pm
Location: UK

Re: Followed instructions, but cannot build

Post by hippy » Mon Aug 30, 2021 11:52 am

Code: Select all

make [ -d build-PICO ] || cmake -S . -B build-PICO -DPICO_BUILD_DOCS=0 -DMICROPY_BOARD=PICO
Isn't that running 'make' before 'cmake' ?

Try this before trying anything more complicated -

Code: Select all

cd ~/micropython/ports/rp2
mkdir build
cd build
cmake ..
make 
That's what I am using on my Pi using Raspberry Pi OS, and pretty much the same under Windows.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Followed instructions, but cannot build

Post by pythoncoder » Mon Aug 30, 2021 5:50 pm

The README.md in the ports/rp2 directory has instructions. Running them from that directory works fine here under Ubuntu 20.04. I suggest trying that approach. If it doesn't work there may be something wrong with the build environment.
Peter Hinch
Index to my micropython libraries.

Post Reply