Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-123286

'load_local_libs' and 'bunlded_libs' libraries in libs.xml are always prefixed with "lib"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.7.0, 6.8.0 FF
    • 6.7.0
    • QPA: Android
    • None
    • Android
    • 4bb4d015f (dev), 2ba01c7ac (6.7), 9057431ef (6.7.0)
    • 2024wk10FOQtforAndroid

    Description

      https://code.qt.io/cgit/qt/qtbase.git/tree/src/android/jar/src/org/qtproject/qt/android/QtLoader.java#n498 adds the "lib" prefix to all libraries mentioned in libs.xml in the gradle project. This also includes the libraries included via "bundled_libs" and "load_local_libs" keys which can be user supplied through androiddeployqt and they don't have to be necessarily prefixed with "lib".

      This kind of breaks the Qt for Python Android deploymnet where I load the Python counterparts of the Qt libs at runtime using "load_local_libs" (PFA libs.xml for a small Qfp Android example). In line 20, for QtCore.abi3.so the QPA add the prefix "lib" and tries to load "libQtCore.abi3.so" which does not exist.

      A suggestion would be to move the "lib" prefix adding code into androiddeployqt for "load_local_libs" and leave "bundled_libs" as it is.

      This only breaks in 6.7.0 and works fine 6.6.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtandroidteam Qt Android Team
            shpremna Shyamnath Premnadh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes