java.lang.UnsatisfiedLinkError: dlopen failed: could not load library "libQt5Qml.so"



  • Hi developers, I get the following error when trying to load shared library in Android

    java.lang.UnsatisfiedLinkError: dlopen failed: could not load library "libQt5Qml.so" needed by "libMyLibrary.so"; caused by could not load library "libQt5Network.so" needed by "libQt5Qml.so"; caused by cannot locate symbol "_ZN7QStringaSE13QLatin1String" referenced by "libQt5Network.so"...

    Notice : I compile a qt project using Android Studio and the ndk kit.

    The compilation works but got this error when calling :
    System.loadLibrary("Qt5Core");
    System.loadLibrary("Qt5Network");
    System.loadLibrary("Qt5Qml");
    System.loadLibrary("MyLibrary");
    System.loadLibrary("gnustl_shared");

    Cheers



  • @Sanders I finally resolved my issue. The problem was due to the Qt libraries. Indeed I was using the 5.6 version and to fix it I downgraded to the 5.5 version


Log in to reply
 

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