← index #7012Issue #10648
Off-topic · high · value 1.790
QUERY · ISSUE

Micropython rp2 fails to build on windows systems.

openby WestfWopened 2021-03-11updated 2021-09-17
port-rp2

When attempting to build micropython for rp2040 in a windows environment, the make/cmake environment generates a command line that exceeds the windows10/cmd.exe line length limit of 8191 characters.
This is because the RP2 SDK requires about 3k worth of C include paths, and the list of files compiled that is generated on a single command line is about 6k (depending on exact path names.)

Extensive discussion and whining here: https://www.raspberrypi.org/forums/viewtopic.php?f=144&t=306333

I'll add that compiling all the C files for micropython with a single command line seems ... dangerously likely not to scale well on other build platforms as well.

CANDIDATE · ISSUE

Extending MicroPython in C

closedby hdpklmopened 2023-02-02updated 2023-02-06
bug

Hello

I try to build the native example from this link: https://docs.micropython.org/en/latest/develop/natmod.html#minimal-example
but I get this error

$ make ARCH=xtensa
process_begin: CreateProcess(NULL, /bin/mkdir -p build, ...) failed.
make (e=2): El sistema no puede encontrar el archivo especificado.  
make: *** [build] Error 2

I change MPY_DIR to the direction of micropython folder.

os: windows 10
python: 3.11.1
GNU Make 3.81

I think the path /bin/mkdir is for linux not for windows.

any help please

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied