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

Qt dependencies from extraLibs are not included in APK

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.11.2, 5.12.0
    • Build tools: Other
    • None
    • Ubuntu 18.10, NDK 18b, android-clang mkspec
    • Android

    Description

      While creating an Android app containing activity and service in separate libs the Qt dependencies of the library that contains service implementation are not scanned by androiddeployqt and thus - not included in APK.
      Just use example from KDAB page: https://www.kdab.com/qt-android-create-android-service-using-qt/
      Section: "Separate .so files for app & service(s)"
      After adding:

      QT += sql
      

      to service pro file libQt5Sql.so won't get into APK.
      Same thing when we just add our own library to extraLibs - it is built with the same Qt but its dependencies won't be scanned and thus won't get into APK.

      Attachments

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

        Activity

          People

            taipan BogDan Vatra
            faldżip Filip Piechocki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes