0

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

Eli
  • 707
  • 8
  • 16

1 Answers1

1

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.

Dan Albert
  • 10,079
  • 2
  • 36
  • 79