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

Can't compile any QML application

    XMLWordPrintable

Details

    Description

      I'm trying to compile an empty project using QtCreator 4.10 rc1 and it fails with the following messages:

      :-1: warning: Unknown property: qbs.defaultBuildVariant
      /home/bogdan/work/qt/test/qbs/qbs.qbs:3: warning: Error while handling product 'qbs':
      :-1: warning: Cyclic dependencies detected:
      :-1: warning: qbs
      :-1: warning: qbs
      /home/bogdan/work/qt/test/qbs/qbs.qbs:3: warning: Product 'qbs' had errors and was disabled.
      

      qbs.qbs file content:

      import qbs
      
      Application {
          Depends { name: "Qt.quick" }
      
          // Additional import path used to resolve QML modules in Qt Creator's code model
          property pathList qmlImportPaths: []
      
          cpp.cxxLanguageVersion: "c++14"
      
          cpp.defines: [
              // The following define makes your compiler emit warnings if you use
              // any Qt feature that has been marked deprecated (the exact warnings
              // depend on your compiler). Please consult the documentation of the
              // deprecated API in order to know how to port your code away from it.
              "QT_DEPRECATED_WARNINGS",
      
              // You can also make your code fail to compile if it uses deprecated APIs.
              // In order to do so, uncomment the following line.
              // You can also select to disable deprecated APIs only up to a certain version of Qt.
              //"QT_DISABLE_DEPRECATED_BEFORE=0x060000" // disables all the APIs deprecated before Qt 6.0.0
          ]
      
          files: [
              "main.cpp",
              "main.qml",
              "qml.qrc",
          ]
      
          Group {     // Properties for the produced executable
              fileTagsFilter: "application"
              qbs.install: true
              qbs.installDir: "bin"
          }
      }
      

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            taipan BogDan Vatra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes