Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build #14

Open
SheetLightning opened this issue Mar 8, 2024 · 2 comments
Open

Unable to build #14

SheetLightning opened this issue Mar 8, 2024 · 2 comments

Comments

@SheetLightning
Copy link

This is what I get when I try to compile on a Pi 400 running a 32-bit version of PiOS:
Curiously, the Pi version compiled OK.

/home/johnc/src/pico-sdk-1.4.0/src/rp2040/hardware_structs/include/hardware/structs/bus_ctrl.h:55:5: error: unknown type name 'io_rw_32'
io_rw_32 sel;
^~~~~~~~
/home/johnc/src/pico-sdk-1.4.0/src/rp2040/hardware_structs/include/hardware/structs/bus_ctrl.h:65:5: error: unknown type name 'io_rw_32'
io_rw_32 priority;
^~~~~~~~
make[2]: *** [src/pico/CMakeFiles/master_360.dir/build.make:752: src/pico/CMakeFiles/master_360.dir/home/johnc/src/pico-extras/src/rp2_common/pico_scanvideo_dpi/scanvideo.c.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/johnc/src/pico-extras/src/rp2_common/pico_scanvideo_dpi/scanvideo.c:1867:12: error: expected declaration specifiers or '...' before string constant
GCC_Pragma("GCC pop_options")
^~~~~~~~~~~~~~~~~
[ 40%] Building C object src/pico/CMakeFiles/master_1080p.dir/home/johnc/src/pico-sdk-1.4.0/src/rp2_common/hardware_dma/dma.c.obj
make[2]: *** [src/pico/CMakeFiles/master_1080p.dir/build.make:752: src/pico/CMakeFiles/master_1080p.dir/home/johnc/src/pico-extras/src/rp2_common/pico_scanvideo_dpi/scanvideo.c.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:2254: src/pico/CMakeFiles/master_1080p.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:2164: src/pico/CMakeFiles/master_360.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

@SheetLightning
Copy link
Author

SheetLightning commented Mar 9, 2024

Just wanted to add that I also tried compiling this on a Linux machine (Debian Bullseye) and got exactly the same error output.

@SheetLightning
Copy link
Author

SheetLightning commented Mar 9, 2024

Ok I think I have solved this. The solution was to use the latest version of the Pico SDK (1.5.1 at the time of writing) as linked from this Github repository and not the older 1.4.0 version as suggested in the tutorial on the RasperryPi forum that I chanced upon first, simply because I was wanting to build b-em on RetroPie. I subsequently discovered it was possible to build on the Pico which became a secondary project. DO NOT use the SDK indicated here:

https://www.raspberrypi.com/news/emulate-a-bbc-micro-on-raspberry-pi-400/

Download the one from here:

https://github.com/raspberrypi/pico-sdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant