I have a working shared library object for my app (libApp.so) and it works just fine.
I need to interface with Java and have created a separate shared library (libTalkToJava.so) which gets loaded in java code as
Now, when I launch the app, TalkToJava gets loaded and JNI_ONLoad is callled and I also able to call my c++ functions from Java.
However I need to call functions in libApp.so from libTalkToJava. I therefore link this in TalkToJava's android.mk as
LOCAL_SHARED_LIBRARIES := App
If I now compile (compiles fine with calling functions in libApp.so) and launch, I am getting unsatisfiedlinkerror when the TalkToJava is getting loaded.
java.lang.UnsatisfiedLinkError: Cannot load library: link_image: 82 could not load needed library 'libApp.so' for 'libTalkToJava.so' (load_library: Library 'libApp.so' not found)
How can libApp.so be not found ??
Can you please tell me what the problem is and how I can lload a library that is linked in the manner as described above??