deltaphc / raylib-rs

Rust bindings for raylib
Other
741 stars 133 forks source link

Missing Raspberry Pi native mode build #52

Open cledouarec opened 4 years ago

cledouarec commented 4 years ago

Hello, I have looked the build.rs and I don't found the native mode presented in the official documentation : https://github.com/raysan5/raylib/wiki/Working-on-Raspberry-Pi

I have seen that in the Dacode45 fork there is an extended version of the build.rs. Is it planned to backport it ?

I am not really familiar with Rust (I have a strong knowledge of C anc C++) but I have finally found a project to do in order to learn it. And it will use the raspberry pi and raylib. I could try to do the backport but I'm not sure it will be really clean.

Dacode45 commented 4 years ago

Sorry for taking so long to get to this. I've been doing volunteer work and this project has gone to the wayside this month. The code in my fork theoretically builds with a raspberry-pi, but I haven't tested it at all with the device. I don't have one.

If you can successfully modify build.rs to work with pi's, I'll merge your PR. If you need more real-time responses, I'm fairly active on discord.

cledouarec commented 4 years ago

Thank you for your quick answer. I will try your build.rs on my device Rpi 2B. I think I have some others models at work so I will try on them.

It will be a great introduction to me to Rust build system.

zertyz commented 4 years ago

I've made some progress on this subject but I think it is not ready for a PR yet because I had to change some integer types on the code -- maybe there is a solution to avoid that need? I'm new to rust...

Anyway, I could successfully compile & run the code on a Raspberry Pi 1, running Archlinux, by making the changes exposed on the attached git diff file.

raylib-rs-on-raspberry-pi-native-mode.diff.txt