NB: I know that it is easier from the Java side using System.loadLibrary() but I
don't want to use that either because it doesn't allow me to unload libraries.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/6110171509.20180427150518%40falkenhahn.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/6110171509.20180427150518%40falkenhahn.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/CAFVaGhvMD3M%3Dw2BKORqVx%2Bkhs0%2BfWFVTAaij-6qmBAYy9gk4EQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/6110171509.20180427150518%40falkenhahn.com.
For more options, visit https://groups.google.com/d/optout.
Kenneth Geisshirt, M.Sc., Ph.D.
Majbøl Allé 18, DK-2770 Kastrup, +45 60 62 71 82
As I recall, there are some changes in what you can do with dlopen:
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/6110171509.20180427150518%40falkenhahn.com.
For more options, visit https://groups.google.com/d/optout.
--Kenneth Geisshirt, M.Sc., Ph.D.
Majbøl Allé 18, DK-2770 Kastrup, +45 60 62 71 82
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/CAFLzvupxrR2p9V%3DiLqK3zqGzFNq6bPaGp--R1%3DBdAsb2AZq38w%40mail.gmail.com.
Yes. I'm still completely puzzled by the fact that it is apparently so very difficult to dlopen() a shared object stored inside the APK. This is such a basic functionality and am I really expected to scan /proc/self/maps and then apply lots of kludges just to be able to dlopen() a shared object stored inside my APK? Seriously Google?
On 27.04.2018 at 22:03 J Decker wrote:
> the parts of that - you can't load the system versions; only the
> local version; but the OP seems to want to load their own version; so none of that really matters.
--
Best regards,
Andreas Falkenhahn mailto:and...@falkenhahn.com
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/1310529704.20180427233858%40falkenhahn.com.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/675660551.20180428122739%40falkenhahn.com.
But maybe the issue has been resolved already because, as I said, starting with Android 7 it is possible to just pass the name of the shared object and it will work, i.e.
lib = dlopen("libfoo.so", RTLD_LAZY);
So maybe the kludge is only needed for older Android versions. Unfortunately, I have no Android 5 and Android 6 test devices here so I don't know about Android 5 and 6. All I can say is that on Android 4 just passing "libfoo.so" definitely doesn't work. It needs a full path on Android 4.
It would really be nice if there was an official word on this. As I said, it looks like it has been resolved already because on Android 7 and up just passing "libfoo.so" works fine.
Maybe I should file a ticket so that this is forwarded to the people who know more about it?
On 28.04.2018 at 04:30 J Decker wrote:
> I entirely concur; The LD_LIBRARY_PATH is read at program startup
> so if you modify that, it doesn't apply. If you do a dlopen() and
> there's a dependancy missing, you can't then parse the error and
> load the missing dependancy and then re-call dlopen() on the first
> one, because the library caches that it was an error and returns
> with the same error, even though the symbol/library can now be resolved.