I'm working on an Android project and I am using the NDK to call native methods.
I have two libraries (.so files) and one is located in the libs/armeabi
folder and the other one is located in the libs/armeabi-v7a
lib folder.
If I try to run the application then it won't load the library in the /libs/armeabi
folder. If I move the library file to the libs/armeabi-v7a
folder, then it loads the library but after 5 to 10 minutes it crashes and gives a segmentation fault error.
I was wondering if the location of the library (different folder) might cause this problem.
I'm new to this myself, but going the same path... as far as I know, one may only have a single shared library; to use several libraries, make them static and link them together to a single shared one. Of course, this assumes you're building the libraries yourself ;-)