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

qbs.targetOS is undefined when using Qt for Android (multi ABI)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 1.17.1
    • 1.16.0
    • Toolchains: Clang/LLVM
    • None
    • QtCreator 4.12.4, Qt 5.14.0, 5.15.0, NDK 21.1.6352462, JDK 1.8.0.251, Windows 10 Prof.
    • Windows
    • 36b345c8cdd6a3c471a871ef184936b56674e696 (qbs/qbs/master) eb7adb8d9787dddef89e46f7bf6e594d0b5faf4b (qbs/qbs/1.17) 276ddf9f87ee513440bbb72473b48b69eb0319a5 (qbs/qbs/master)

    Description

      When loading a complex QBS project with a sub project (Project containg Library as product) for Qt 5.14.0 (or 5.15.0) for Android then the error messages appears:
      "Tools\QtCreator\share\qtcreator\qbs\share\qbs\imports\qbs\base\NativeBinary.qbs:32: warning: Result of expression 'qbs.targetOS' [undefined] is not an object."

      Clicking on this error it leads to definition of properties NativeBinary.isForDarwin respectively isForAndroid that is its dependency of qbs.targetOS.

      When manipulating NativeBinaryq.qbs displaying all the qbs.XXX properties with console.log() in a loop then it's striking that some properties are not set, especially "targetOS", "architectures" is undefined, version etc. But "architecture" (singular!) is set.

      Otherwise testing an simple example (provided with Qt) works for Android.

      Especially the export of "Qt.quick" causes the problem.

       

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            codezeug codezeug
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes