Rust-SDL2 / rust-sdl2

SDL2 bindings for Rust
MIT License
2.73k stars 468 forks source link

Building for Android #648

Open torkleyy opened 7 years ago

torkleyy commented 7 years ago

I've already compiled SDL2 for Android using

/opt/android-ndk-linux/ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk APP_PLATFORM=android-18

How can I link to the native library when using cargo-apk?

Cobrand commented 7 years ago

I have absolutely 0 experience building on Android, sorry. I think you'd be better on asking directly in the issues of cargo-apk, chances are linking a lib with cargo-apk is generic and there is nothing specific to sdl2, so asking for help over there would probably result in higher chances of someone knowing what to do there.

On Apr 25, 2017, 23:50, at 23:50, Thomas Schaller notifications@github.com wrote:

I've already compiled SDL2 for Android using

/opt/android-ndk-linux/ndk-build NDK_PROJECT_PATH=.
APP_BUILD_SCRIPT=./Android.mk APP_PLATFORM=android-18

How can I link to the native library when using cargo-apk?

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/AngryLawyer/rust-sdl2/issues/648

ip commented 7 years ago

@torkleyy Did you managed to build?

torkleyy commented 7 years ago

@ip Unfortunately not, I came up with another solution for my particular problem.

TatriX commented 6 years ago

@torkleyy could you please share your solution?

torkleyy commented 6 years ago

I used glutin for my game. I'm not sure if that's an option for you.

TatriX commented 6 years ago

Oh, I see. Currently ggez depends on sdl, so it's not an option.