On Dec 28 2008, 6:55 pm, waterblood <[email protected]> wrote:
> I have set the LOCAL_PRELINK_MODULE := false and include $
> (BUILD_SHARED_LIBRARY) in my android.mk to build my.so
> But when I use a dlopen() in a test c app to open that my.so. Got a
> fail message "cannot find the library". I have checked the my.so have
> been put into /system/lib. Do you have any idea about this?

FWIW, nearly all dlopen() failures are reported as "cannot find the
library".  The only way to get more detail is to turn up the logging
in the dynamic linker (bionic/linker/linker_debug.h), rebuild it, and
install it.  The diagnostics go to stdout/stderr, so the easiest way
to see them is to write a one-line program that calls dlopen().  You
may also have some luck with "setprop log.redirect-stdio true"; make
sure you use setvbuf() to turn off buffering.

--~--~---------~--~----~------------~-------~--~----~
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