All,
I have searched for this and cannot find an answer so apologies if this is in the archives and my google fu is not good enough to find it.
I have 2 shared libraries that I want to decide at runtime which one to use, they both implement the same interface so I thought it would be fairly simple to do by just doing the System.loadLibrary() call for the correct one before I do the loadLibrary for the main library that we use, but that is not working. It looks like it is not just the same LOCAL_MODULE name that is required but it has to be the same Filename as well or I get an UnsatisfiedLinkError.
That is the outline now for more specifics, the library is an OpenAL implementation and I have one version for (pre OpenSL that uses AudioTrack and one for OpenSL), yes we still want to keep Android 2.1 and 2.2 compatibility for reasons best left just now...
so I build each library and they have both LOCAL_MODULE set to openal and LOCAL_MODULE_FILENAME set to libopenal and one set to libopenal-at (they are built in separate invocations of ndk-build) but it appears at runtime that the full filename for the .so is baked in so I cannot just load libopenal-at at runtime or I get the error.
Can anyone help with any suggestions???
Russell
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to
[hidden email].
To unsubscribe from this group, send email to
[hidden email].
For more options, visit this group at
http://groups.google.com/group/android-ndk?hl=en.