| Issue 216: | Android shared object searched in false locations by hxLoadLibrary | |
| 1 person starred this issue and may be notified of changes. | Back to list |
The tried locations on Android are: ./libxyz.so libxyz.so ./libxyz.ndll libxyz.ndll These are incorrect because dlopen on Android is not equivalent to the LibC version and works reliably _only_ with _absolute_ paths. Android also doesn't use a LD_LIBRARY_PATH. An elegant solution is to use Dl_Info from the dladdr function to get the path to the shared libraries. This function would allow to extract the valid location for dlopen.
Dec 12, 2012
(No comment was entered for this change.)
Status:
Invalid
|
It could be ignored though, if the libraries are preloaded with dlopen or LoadLibrary previously, then dlopen("lib.so") finds them immediately. I guess this issue is solved.