Reputation: 768
I currently use dlopen native function to open a native lib (so file).
handle = dlopen(libPath, RTLD_LAZY);
I use a full path to the library. unfortunately with the new app bundle installation (abb file) there is no way to get the path to the lib. Did someone found a workaround for this?
Thanks, Eli
Upvotes: 0
Views: 1143
Reputation: 10499
dlopen
using the SONAME
of the library. dlopen("libmylib.so", ...)
does not require an absolute path. If that doesn't work then your library is built incorrectly and should follow https://stackoverflow.com/a/48291044/632035 to fix it.
Upvotes: 1