Sdl2 Sample Build Error With Android Ndk R14
I have tested to build the sample in SDL2 source (2.0.5) on my ubuntu 16.04 machine. According to https://wiki.libsdl.org/Android, I installed android sdk and ndk r14 and setup my
Solution 1:
I just have the same problem and I solve it, it feels so good!
I guess it was caused by compiler clang.exe.
All you have to do is edit your application.mk(If you are using NDK_BUILD)
add one line "NDK_TOOLCHAIN_VERSION=4.9(depends on you GCC version)"
Solution 2:
To add a bit to L.wc's answer try this:
NDK_TOOLCHAIN_VERSION=4.9 ./androidbuild.sh org.libsdl.testgles ../test/testgles.c
4.9 would be version of toolchain in your NDK installation.
Post a Comment for "Sdl2 Sample Build Error With Android Ndk R14"