Loading Fmod Purely From Native Code
Solution 1:
I don't know why you want to get rid of these few lines of Java. To the best of my knowledge, this has no effect on the rest of your application.
The reason you need Java is that Android system loader cannot find libfmodex.so
which is essential to resolve the references in your libghost.so
. Therefore, load of libghost.so
fails. Java lets you preload the dependency before your library is loaded.
Unfortunately, NativeActivity itself can only load one library. A request has been posted in April 2012 to improve the situation some time in the future.
Currently, you can switch all your code that works with fmod to dynamic linking, or build a third shared library which will load fmod and then load the ghost library. In this situation, the loader will be able to resolve the references in ghost because fmod will already be loaded.
Post a Comment for "Loading Fmod Purely From Native Code"