recursive link error on Android 5.1.1

66 views
Skip to first unread message

Nistelberger Kurt

unread,
Jun 25, 2020, 11:43:21 AM6/25/20
to android-ndk
Anybody has a solution for this:

E/art     ( 4135): dlopen("/data/app/com.example.samplegame-1/lib/arm/libil2cpp.so", RTLD_LAZY) failed: dlopen failed: recursive link to "libil2cpp.so"

my application works fine on all Android versions higher than 5.1.1 but on 5.1.1 and below I get the above error and it crashes during startup...
I dont see a solution to fix this, the problem is that I have a circular dependency between two libraries which need each other,
is there a fix to this?

thanks, kurt

Dan Albert

unread,
Jun 25, 2020, 2:25:47 PM6/25/20
to android-ndk
Can you make the recursive subset of your libraries static and link them all together into one SO? That's probably your only option if old OS versions reject it.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/e9e1aece-5643-4522-9f1e-42b94340c838o%40googlegroups.com.

Alex Cohn

unread,
Jun 25, 2020, 2:32:48 PM6/25/20
to android-ndk

Well, you can break the circular dependency by using dlsym(), but this isn't a painless solution, alas.

BR,
Alex

Nistelberger Kurt

unread,
Jun 29, 2020, 12:27:00 PM6/29/20
to android-ndk
hmmm, thats a very nice idea, I gonna try this, thanks a lot


Am Donnerstag, 25. Juni 2020 20:25:47 UTC+2 schrieb Dan Albert:
Can you make the recursive subset of your libraries static and link them all together into one SO? That's probably your only option if old OS versions reject it.

On Thu, Jun 25, 2020, 08:43 Nistelberger Kurt <kurt.nis...@gmail.com> wrote:
Anybody has a solution for this:

E/art     ( 4135): dlopen("/data/app/com.example.samplegame-1/lib/arm/libil2cpp.so", RTLD_LAZY) failed: dlopen failed: recursive link to "libil2cpp.so"

my application works fine on all Android versions higher than 5.1.1 but on 5.1.1 and below I get the above error and it crashes during startup...
I dont see a solution to fix this, the problem is that I have a circular dependency between two libraries which need each other,
is there a fix to this?

thanks, kurt

--
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 andro...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages