Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1608

CppApplication fails to build Android apk

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Not Evaluated
    • 1.17.1
    • None
    • General
    • None
    • Android
    • cdc3802e6b51f05d2b80237fdade617c90d0cd45 (qbs/qbs/1.17)

    Description

      From Qt 5.14 qbs can generate multi-arch apk containing Qt libraries using multiplexing.

      The QtApplication item is a CppApplication which has a depend on "Qt.core" AND ad "_abi" to the targetName of the product.

      So directly using a CppApplication with a depend on "Qt.core" is not equivalent to using a QtApplication and fails on Android.

       

      Properties {
          condition: isForAndroiFaild && Qt.android_support._multiAbi
          targetName: name + "_" + Android.ndk.abi
      }
      

       

       

      The simplest solution I see is to test if qbs is actually multiplexing in Application.qbs and update the targetName there.

      The only side effect I see is when using qbs without Qt in a multi-arch environment: the generated libraries will have the _abi in their name.

      The code generated by the qtc wizard is also using the CppApplication item and consequently fails on Android.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            r.cotty Raphael Cotty
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes