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

QT_ANDROID_EXTRA_LIBS ignored for secondary ABIs

XMLWordPrintable

    • Android
    • f639c04f8 (dev), a1e143faa (6.6), def3b6d0b (tqtc/lts-6.5)

      When building an Android project using CMake for multiple ABIs, the QT_ANDROID_EXTRA_LIBS target property is only taken from the main ABI being build, but values set in secondary ABI builds are ignored.

      As a workaround it is possible to specify extra libraries for all ABIs, and Qt is smart enough to only take the libraries for the ABIs that are being build. If this is expected behavior it should at least be documented, but I think the correct behavior would be for the value to be taken from all ABI builds.

      Attached is a sample project reproducing the issue. To reproduce:

      1. Build the project for Android with QT_ANDROID_BUILD_ALL_ABIS=ON.
      2. Check the "bundled_libs" array in android-build/res/values/libs.xml in the build folder.

      Expected: should contain iconv for all 4 ABIs.

      Actual: contains libiconv only for the main ABI (e.g. "arm64-v8a;iconv")

        For Gerrit Dashboard: QTBUG-117206
        # Subject Branch Project Status CR V

            alexandru.croitor Alexandru Croitor
            fseiffert Frederik Seiffert
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes