-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android SDK updated and dropped lots of things #587
Comments
@ericoporto , I was able to start compilation with NDK r16, the one referenced in the Android/README.md. I am not sure your issue (judging from the posted output) is related to freetype at all. It looks more like what happens when the toolchain is not created correctly, or paths are not matching script's expectations. I am currently setting up Android tools from scratch after reinstalling Ubuntu, and I was at least able to begin compiling with "arm" toolchain. The readme misses couple of things, firstly it only links to documentation on creating a toolchain but does not give much detail on what has to be done. Also I found there's a bunch of tools that has to be present on your Linux to build every library. I may be updating our readme afterwards. Of course this does not mean we should not update to further ndk if that's desired and will keep things working, but I know little about these things so will stick to existing instructions for now. |
Another thing that we forgot to add to readme is that if you are going to build Java apps from command line using "ant", then you need to download old SDK tools package because newer Android SDKs don't include ant directory anymore. Dl link: https://dl.google.com/android/repository/tools_r25.2.5-linux.zip EDIT Important note: the "tools/ant" dir is not enough to make script work. It fails saying that "checkenv" is not a registered command. Since I had no time to research this I copied everything from the old tools (without overwriting existing files of course). It worked correctly after that. Another thing missing in readme: this may be obvious to some, but you need to remember to install proper SDK (Android 4.1 / api version 16 in our case) using SDK Manager. |
Just confirming: I was able to build APK in ags3 branch. Following information needs to be added to readme:
That's it, I think. |
Found my error: https://github.com/adventuregamestudio/ags/blob/master/Android/buildlibs/makestandalones.sh#L8 This rewrites my ndk home. So I was using: And my NDK_HOME was being ignored. The idiot who wrote that line is myself! 😬 This issue can be closed now. |
I am trying to build the ndk the binaries, and it's not possible since Android SDK updated minimum plataform API to 16 instead of 14, and dropped mips architecture. The scripts below need to be updated. Another change is the lack of gcc in Android SDK now.
buildall.sh.zip
makestandalones.sh.zip
The
arm-linux-androideabi-gcc
included in the android ndk toolchain is a lie, it's a weird link to clang and it is failing in the config tests for freetype...A different issue of Freetype with NDK is reported here -> android/ndk#614
I can say building GCC with NDK toolchain is a waste of time because the errors a too cryptic. If someone is crazy they can find it here but I totally don't recommend it.
Edit: Noticed Google mantains their Freetype here : https://android.googlesource.com/platform/external/freetype/
Edit2: Some more interesting reading https://mortoray.com/2012/08/21/android-ndk-cross-compile-setup-libpng-and-freetype/
The text was updated successfully, but these errors were encountered: