gen2brain / raylib-go

Go bindings for raylib, a simple and easy-to-use library to enjoy videogames programming.
zlib License
1.65k stars 166 forks source link

Compile For Android ( lates ndk version doesn't support androdeabi-gcc ) #117

Closed raifpy closed 3 years ago

raifpy commented 4 years ago

https://github.com/android/ndk/issues/1375

So, how can we compile raylib-go for Android? I can install ndk17..

gen2brain commented 4 years ago

https://github.com/gen2brain/raylib-go/tree/master/examples/others/android/example

raifpy commented 4 years ago

export PATH=${ANDROID_NDK_HOME}/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin:${PATH}

in NDK r21d's bin there is no "arm-linux-androideabi-gcc" so when i try build (like example) exec: command not found: arm-linux-androideabi-gcc*

raifpy commented 4 years ago

pwd /home/raif/Android/android-ndk-r21d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin

ls arm-linux-androideabi-addr2line arm-linux-androideabi-dwp arm-linux-androideabi-ld.bfd arm-linux-androideabi-objdump arm-linux-androideabi-strings arm-linux-androideabi-ar arm-linux-androideabi-elfedit arm-linux-androideabi-ld.gold arm-linux-androideabi-ranlib arm-linux-androideabi-strip arm-linux-androideabi-as arm-linux-androideabi-gprof arm-linux-androideabi-nm arm-linux-androideabi-readelf arm-linux-androideabi-c++filt arm-linux-androideabi-ld arm-linux-androideabi-objcopy arm-linux-androideabi-size

There is no gcc here..

gen2brain commented 4 years ago

But you have clang? From some version they removed gcc.

gen2brain commented 3 years ago

Android README is updated, I will try later with the latest NDK and update accordingly.