Issues using QtCreator 3.3.0 + QBS (Qt Build System)
-
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.0CppApplication {
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