Raspberry PI support #4701
-
Hey there, trying to get this going on RPI. First, arm binaries are not present in the releases. The Raspberry PI page here was difficult to follow. The code seems to be set up to build with cmake not make as this page instructs. Neither do the targets PLATFORM_RPI, PLATFORM_DESKTOP or PLATFORM_DRM exist in cmake config. Since none of the docs provide instructions, I spent a good while trying to work out how to build. If it helps anybody here is what I got to (not claiming it's correct!):
For those wanting to run X So yes, docs are decidedly unhelpful. Then there is this page with a gem like "raylib is self-contained, it has no external dependencies to build it.". Of course to build on rpi there are stacks of dependencies - and cmake (the way it's configured) will only let you know of missing deps one at a time. So you need to run cmake to get the next missing dependency. Then install it. Then run cmake again. Then install. And again. And again... After I finally got it to build, all examples fail to run with messages like:
As an aside, java wrappers don't bundle arm libs either. So is RPI supported or not? If yes, where can I find binaries or instructions on how to build? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hurray! The problem was in /boot/config.txt. I had Many thanks |
Beta Was this translation helpful? Give feedback.
-
@almostobvious As comented, the Wiki is not always up to date and I didn't reviewed the Raspberry Pi page in some time. But definitely raylib works on Rapsberry Pi, on EDIT: Thank you very much for reviewing the Wiki and adding that line. |
Beta Was this translation helpful? Give feedback.
EDIT: I was wrong. Setting dtoverlay=vc4-(f)kms-v3d has no bearing.
In my case, I have just one very small screen (480x320) and it seems examples expect window size that is larger my screen size which causes the executable to bail with messages as in my previous post.
Proposed fix : make a check for this and before exiting the program, issue a message that it's exiting because it the screen is smaller than requested window size.