Questions regarding the NDK are best asked on the [android-ndk] Google Group.

On Wed, May 18, 2011 at 9:25 AM, ViToBrothers <[email protected]> wrote:
> Hello, here is my problem ...
>
> I have shared library (libbase.so) written in C++ and I want to use
> some functions from (libbase.so) in my android application witch I
> write in Eclipse. For that I have created other .cpp file using JNI
> in witch I call function from (libbase.so). Then I compile this new
> shared library (libtest.so) and import it to android Eclipse
> application.
>
>  static {
>        try {
>            // Try to load DsmTestLib library
>                System.loadLibrary("test");
>        }
>        catch( UnsatisfiedLinkError e ) {
>                 System.err.println("Native code library failed to load.\n" +
> e);
>        }
>    }
>
> but here errors occurred:
>
> Cannot load library: link_image[1962]:    33 could not load needed
> library
> 'C:/cygwin/home/android-ndk-r5b/samples/testingDsm/lib/libbase.so' for
> 'test.so'
> (load_library[1104]: Library 'C:/cygwin/home/android-ndk-r5b/samples/
> testingDsm/lib/libbase.so' not found)
>
> but how it can be not founded if it exist ?
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" 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-developers?hl=en
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.6 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to