[android-developers] Re: how to let my shared library, libhello.so, work

2009-03-19 Thread Iliyan Malchev
The shared library can be in the current directory of the code that's dlopen()ing it, and native code may refer to the library by an absolute pathname, but otherwise it would have to be in the approved places, yes. You can look at open_library() in bionic/linker/linker.c Thanks Iliyan On Tue,

[android-developers] Re: how to let my shared library, libhello.so, work

2009-03-17 Thread Iliyan Malchev
The dynamic linker does not honor the LD_LIBRARY_PATH, and looks for libraries in /system/lib and /lib only, in that order. On Tue, Mar 17, 2009 at 9:36 PM, sunwrt wrt.su...@gmail.com wrote: Hi, guys, I built a shared library libhello.so, which only contained a function print_hello(char*),