raylib-rs icon indicating copy to clipboard operation
raylib-rs copied to clipboard

How to compile to Android

Open bhgsbatista opened this issue 5 years ago • 1 comments

I'm trying to make a game for Android (and eventually iOS as well), but am totally lost as to how to do it. Can you point to some resources how to accomplish this?

bhgsbatista avatar Dec 23 '19 20:12 bhgsbatista

This is pure speculation, but this is what I would try.

Build raylib-rs with the "nobuild" feature but with a linux target. This skips compilation and linking and only builds the crate. From there it's up to you to do linking.

Compile raylib from source for android with these instructions https://github.com/raysan5/raylib/wiki/Working-for-Android

From there link the android sdk and the raylib lib in the crate.

Dacode45 avatar Dec 23 '19 20:12 Dacode45