Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Issues using QtCreator 3.3.0 + QBS (Qt Build System)

Issues using QtCreator 3.3.0 + QBS (Qt Build System)

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Algirdasss
    wrote on last edited by
    #1

    I was trying out QBS support in QtCreator 3.3 (Windows 8.1) and ran into some issues. Has anybody succeeded in using QBS with QtCreator?
    QBS project file is as simple as:

    @
    import qbs 1.0

    CppApplication {
    Depends { name: "Qt"; submodules: ["core"] }

    type: "application" // To suppress bundle generation on Mac
    consoleApplication: true
    
    Group {
        name: "MyFiles"
        files: [
            "main.cpp",
        ]
    }
    

    }
    @

    My issue is that I get an error message when I try to switch to DEBUG build mode. Error occurs when parsing QBS files. Text is the following:

    @
    C:\Users\Algirdas\AppData\Roaming\QtProject\qtcreator\qbs\profiles\qtc_Desktop_Qt_5_4_0_MSVC2013_64bit\modules\Qt\core\core.qbs:275: error: The following properties have invalid values: Qt.core.qtBuildVariant: is 'release', but qbs.buildVariant is 'debug', which is not allowed when using MSVC
    @

    So the message tries to tell me that I can't build in debug. I tried to build project in release mode and it actually builds and runs, so issue is connected to debug mode. I was digging a bit deeper and came to qbs configuration files that QtCreator makes when configuring KITS. File is "C:\Users%USERNAME%\AppData\Roaming\QtProject\qtcreator\qbs.conf". I looked into it and it seems that my both kits (Qt 5.3 and Qt 5.4) are configured only for release build mode.

    @
    ...
    qt-project\qbs\profiles\qtc_Desktop_Qt_5_3_MSVC2013_64bit\Qt\core\buildVariant=release
    qt-project\qbs\profiles\qtc_Desktop_Qt_5_3_MSVC2013_64bit\Qt\core\availableBuildVariants=release
    ...
    qt-project\qbs\profiles\qtc_Desktop_Qt_5_4_0_MSVC2013_64bit\Qt\core\buildVariant=release
    qt-project\qbs\profiles\qtc_Desktop_Qt_5_4_0_MSVC2013_64bit\Qt\core\availableBuildVariants=release
    ...
    @

    Does anybody know why it is like this. For me it seems like a bug, but maybe I am wrong. I tried to add debug mode to the parameter "availableBuildVariants" manually, but then project fails to compile with other weird errors.

    Algirdas

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bdemirkir
      wrote on last edited by
      #2

      Looks like it's fixed on Qt Creator 3.4.0 RC (Bug: QBS-757, Fix: Fix detection of debug/release Qt)

      It's a shame that QBS projects still doesn't treated as a first class citizen...

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved