Android .so file name mangled.

  • Qt 5.8 on Android

    I'm specifying third-party .so files using ANDROID_EXTRA_LIBS as below

            $$LIB_DIR/ \
            $$LIB_DIR/ \
            $$LIB_DIR/ \
            $$LIB_DIR/ \

    Upon running the application, I got "fatal error, cannot continue" message, LogCat says

    W System.err: Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: library "" not found
    W System.err: 	at java.lang.Runtime.load(
    W System.err: 	at java.lang.System.load(
    W System.err: 	at
    W System.err: 	at
    W System.err: 	... 18 more

    Why is the file name changed from ".so" to ".so.1"? I tried using the prefix ".so.1" in ANDROID_EXTRA_LIBS but it won't build (saying library file must begin with "lib" and end with "so").

    How do I get it working?

  • Okay, my bad

    Although the file is named "", the SONAME defined in it is "".

    I modified the SONAME using the command rpl and now it can link correctly.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.