Digging into the implementation of System.loadlibrary, you'll find
that the native library name format is defined by the macro
'OS_SHARED_LIB_FORMAT_STR'.
It is defined in an arch dependent file AndroidConfig.h
For arm, you can find following line in
system/core/include/arch/linux-arm/AndroidConfig.h
#define OS_SHARED_LIB_FORMAT_STR "lib%s.so"
On Sun, Jul 15, 2012 at 3:59 PM, abhiram chitangal
<
abhiram.c...@gmail.com> wrote:
>
> Hello,
>
> I am trying to use my own build of openssl with my application. Right now I have two shared libraries in my
> PROJECT/libs folder.
> a) libfipswrapper.so
> b) libcrypto.so
>
> I try loading these two through the System.loadlibrary call in my java code and it fails saying that
>
> Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1969]: 130 could not load needed library 'libcrypto.so.1.0.0' for 'libmywrapper.so' (load_library[1111]: Library 'libcrypto.so.1.0.0' not found)
>
> I had to rename the libcrypto.so.1.0.0 that came with my openssl build to libcrypto.so , as it wouldn't take the file names that didn't end with .so.
> Any Ideas ?
> thanks
>
> --
> You received this message because you are subscribed to the Google Groups "android-ndk" group.
> To view this discussion on the web visit
https://groups.google.com/d/msg/android-ndk/-/RbN2ayQCUTMJ.
> To post to this group, send email to
andro...@googlegroups.com.
> To unsubscribe from this group, send email to
android-ndk...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/android-ndk?hl=en.