Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
updates the Android port to use ndk-bundle/platforms/android-14 #430
pull request for building AGS Engine for Android
My environment is Ubuntu 16.04 and I used the Android Sdk and ndk installed through Android Studio 3.0.1.
details of my Android Studio :
Commands I used to build:
referenced this pull request
Feb 14, 2018
Yes. The platform-9 supported previously added support from Android-2.3 onwards. Going to platform-14 supports Android-4.0 onwards. (I can't find better references than this doc and this stackoverflow
I don't know much of Android development though.
Ok, you also have following modification:
# android-9 is minimum to support mips and x86 -PLATFORM=android-9 +PLATFORM=android-14
So, this will disable running engine on some older devices?
I'd rather find out if that's possible to build these without changing platform. It would also be the good thing to get someone who actually knows a thing about Android to check this out too.
Alright, I was able to complete nativelibs compilation.
I would like to propose number of changes to this pull request though.
For the makestandalones.sh
For the library building scripts
What I mean, in buildall.sh
$NDK_HOME=< ndk path > $PLATFORM=android-14 export $NDK_STANDALONE=$NDK_HOME/platforms/$PLATFORM
Now in every ndkenv you could use $NDK_STANDALONE, like:
NDK_PLATFORM_ROOT=$NDK_STANDALONE/arm ... mips .. x86 etc
Alternatively, I found it's possible to add this flag into NDK_CFLAGS variable exported in ndkenv scripts. I frankly do not know if that's the best place to add it, but it worked for me (you just need to have it declared in 4 ndkenv scripts, and that will work for both ogg and liblua, and anything else that requires this API flag).
Would you be able to ammend these changes to your commit? If not I could make second patch over/instead yours myself.
I just realized that this pr possibly had a mistake, it changes "Android/library/project.properties", modifying target platform to android-14, but this file and setting has nothing to do with compiling native libraries. It is related to building java app. "Android/library/AndroidManifest.xml" also has targetSDKVersion set to 16.