RP2040: Windows build (was QEMU emulator) #570
Replies: 7 comments 21 replies
-
That's a really long wait.
Good question. I haven't seen anything about that. If I recall well, you usually work on Windows. There's no Windows build in the Moddable SDK for Pico at the moment. That could certainly be done without the hardware. Someone else could help test the output. |
Beta Was this translation helpful? Give feedback.
-
This is where I'm at: update moddablegit fetch rebuild...cd %MODDABLE%\build\makefiles\win download Pico framework installer:https://github.com/ndabas/pico-setup-windows This will download all the tools locally and build the examples. Attempt to build moddable helloworld: cd %USERPROFILE%\Pico cd %USERPROFILE%\Projects\moddable\examples\helloworld
Not sure what the cause of this is at this stage.
So the pico is in the devices folder! |
Beta Was this translation helpful? Give feedback.
-
more progress.... one step forward, two steps back.... Currently the output is:
line 637 - I can't seem to include all of those files as the line gets too long to execute. |
Beta Was this translation helpful? Give feedback.
-
I have got further and the compile is starting. Yay! There is an issue - I think there might be a file missing: C:\Users\rhys\Projects\moddable\build\tmp\pico\debug\helloworld\debugger.c:26:10: fatal error: tusb.h: No such file or directory Thanks! edit looks like it's part of tinyusb.... I'll need to include... |
Beta Was this translation helpful? Give feedback.
-
Ok... building further now. It's failing trying to build the pico sdk files...
I have copied the files to the tmp folder with:
The zip contains the nmake file and the output. I have managed to the first in the sdk with an implicit rule:
This rule should match - but doesn't
I had to change the .c.o to .o as the rule would not allow .c.o - the esp32 nmake seems to follow this pattern too.. |
Beta Was this translation helpful? Give feedback.
-
more progress - 57.o files are building now... current failure point:
I have ended up hardcoding each SDK source .c as there are in different folders and could not the the { } substitute to work. |
Beta Was this translation helpful? Give feedback.
-
Talking a bit of a fresh look at this - since nmake is a a bit of a maze - is there any reason why we can't using gmake and the normal make files to build a project like this? |
Beta Was this translation helpful? Give feedback.
-
I looked at ordering... here in NZ it looks like I won't be able to get until end of March/April.
Can it be run in QEMU or an emulator?
I guess the next steps for the port will be IO type things - so real hardware would be needed.
Beta Was this translation helpful? Give feedback.
All reactions