-
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 vs third-party libraries #109
Comments
Right, the include provided versions are only meant to ease windows compilation. They are also used on consoles, but in that case we disable some of them, for instance by using native hardware supported ZLib/JPG decoding. @rtissera could you comment on the workflow for Android/Windows, or did you only compile from OSX? |
Relinking https://github.com/HaxeFoundation/hashlink/wiki/Android for discussion |
@ncannasse @nadako Our current build process is still rough for third-party libraries integration and can be vastly improved, but here's a detailed breakdown of what we do so far : We have a master CMakeLists.txt (template file attached) including source code of the following repositories into our Android project native code : We use prebuilt libraries for SDL2 (just use official distro to build them), libpng and libjpeg-turbo by using the following repositories : Contrary to libpng and libjpeg-turbo, SDL2 is built as a dynamic library so make sure to explicitly load it on the java side (using System.loadLibrary) before anything else. We have not integrated mbedtls, libuv, OpenSSL, SQLite, neither FFMPEG since we don't use them in our current project but managed to build them on Android from these repositories : https://github.com/ARMmbed/mbedtls.git And finally libuv can be built from official repo (there's an android-configure script), but the script might need to be patched for newer NDK versions. |
Oh my, that sounds very annoying, anyway thank you! |
@nadako - Hi, is your comment above still actual now? |
https://github.com/rainyt/zyheaps here is a library for android/ios easy compilation. |
I had to make some changes to turbojpeg/vorbis/libpng to make fmt compile, because the sources included in the repo are stripped and doesn't include support for ARM architectures and specific optimizations (e.g. NEON), which raises a question:
What's the reccomended way to work with these libs? Judging from CMakeFiles, the included third-party libraries are only used on windows, so I guess on android/ios one must use official distros?
The text was updated successfully, but these errors were encountered: