Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. java.lang.UnsatisfiedLinkError: dlopen failed: could not load library "libQt5Qml.so"
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Solved Mobile and Embedded
qtnetworkandroidndkqtqml
2 Posts 1 Posters 4.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SandersS Offline
    SandersS Offline
    Sanders
    wrote on last edited by
    #1

    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

    SandersS 1 Reply Last reply
    0
    • SandersS Sanders

      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

      SandersS Offline
      SandersS Offline
      Sanders
      wrote on last edited by Sanders
      #2

      @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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved