Hi APT/MMF,

I have a similar need and i could make it work.

abc.so and jni.so in my case.

during the android build of jni.so i gave the abc.so as depended
shared libray in the Android.mk of jni.

And in Java application i loaded the jni.so and it is working.

I wish this would help u too

2009/4/22 MMF <[email protected]>

> Hi All,
>
> I am facing a problem while loading .so libs from my App.
>
> Here is the story:
>
> I have two native libs say *abc.so* and *xyz.so*.
> I have written a JNI component (say *jni.so*) which is calling APIs from
> abc.so and xyz.so.
>
> Now from the application (Java) when I do system.loadlibrary("jni.so") I
> get an error as "cannot find library".
>
> But when I remove the dependencies of abc.so and xyz.so from jni.so (say I
> just have some dummy functions in my jni.so) and try to load jni.so from
> App, it works fine.
>
> Can someone please let me know what could be problem?
>
> Thanks
> APT
>
>
> >
>


-- 
Cheers
(: Naveen Krishna Ch :)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to