Re: Android Studio: Package Native Libraries into APK
Posted by bmcclint on Jul 04, 2020; 4:15pm
URL: https://forum.jogamp.org/Android-Studio-Package-Native-Libraries-into-APK-tp4040727p4040729.html
Maybe it makes more sense to attempt to frame the problem a little more and a little more back history.
In the past, and currently, I am able to make JOAL do 'something' by installing the prepackaged APKs below. All APKs are Version 2.4.0-rc-20200306 and it takes all four for the JOAL test to function.
jogamp-android-launcher.apk
joal-test-android.apk
joal-android-aarch64.apk
gluegen-rt-android-aarch64.apk
These APKs allow the JOAL test application to function and a sound is played. It appears the 'JogAmp's Android Activity Launcher' 'Features daisy chained APK incl. native libraries, reassembling the Java CLASSLOADER and library path experience'. Reading this two parts stick out. 'native libraries' and 'reassembling the Java CLASSLOADER and library path'. I suspect this is the magic to get this to work but I am unclear how.
The error coming from Android Studio 'dlopen failed: library "//natives/android-aarch64//libgluegen-rt.so" not found.' indicates to me that the application is NOT attempting to load 'global' resources, those 'other' libraries on the device, but rather its telling me its looking (or wants to) in the APK itself.
So maybe the first question to answer is...
What does the community think the error message is saying?
Additionally...does anyone know if the sources for the APKs listed above exists? Maybe there is information there to be revealed. If I can generate those APKs on my development system and get them to execute I'll have a 'working template'.