curl-library
Re: android load libcurl specified version instead of generic version
Date: Thu, 21 Mar 2013 21:27:48 +0100
On Thu, Mar 21, 2013 at 03:12:08PM +0700, abc wrote:
> I've built successfully my android app using libcurl. But I could not
> load my program. The error message that I've received is:
>
> Cannot load library: soinfo_link_image(linker.cpp:1635): could not
> load library "libcurl.so.5" needed by "mylib.so"; caused by
> load_library(linker.cpp:745): library "libcurl.so.5" not found
>
> In my program, I've got only libcurl.so file. I tried to use only
> libcurl.so file (remove libcurl.so.5 file and recompile). But the
> loading error is still existing.
>
> I saw inside the .apk file, there is only libcurl.so file. I think my
> problem is mylib refer to libcurl.so.5 somewhere. But after delete
> libcurl.so.5, recompile, the error is remaining. How to make mylib.so
> depend libcurl.so, not depend libcurl.so.5 file?
That's the problem--it's the libcurl.so.5 file that should be included in the
.apk, not the libcurl.so file. The latter is only used at compile time to link
the right library. The versioned file is the one that's expected to be
available at run time to be available to dynamically link with mylib.so.
>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-03-21