Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
1.7.0
-
None
-
* QtCreator v 4.2.1 (with default Qbs)
* VS 2015
Description
I use the '--settings-dir' variable to generate the MSVC project file:
c:\Users\denis\Documents\untitled-gen>qbs generate -g visualstudio2015 -f ..\untitled\hello.qbs --settings-dir C:\Users\denis\AppData\Roaming\QtProject\qtcreator profile:qtc_Desktop__a1af886e debug
No build graph exists yet for this configuration.
Resolving project for configuration debug
Setting up build graph for configuration debug
Building for configuration debug
Build done for configuration debug.
Generated hello.sln
but, this variable does not exists in generated *.vcxproj files.., I see only this variables:
<QbsExecutableDir>c:\Qt-meta\Tools\QtCreator\bin\</QbsExecutableDir>
<QbsProjectDir>C:\Users\denis\Documents\untitled\</QbsProjectDir>
that leads to fails at trying to build tis project from the VisualStudio!
Seems, we need to add additional variable, like:
<QbsSettingsDir>C:\Users\denis\AppData\Roaming\QtProject\qtcreator\</QbsSettingsDir>
PS: Besides, seems, that QBS's generator generates wrong command lines for (Build, Rebuld, Clean and Generate targets). I mean, that this lines contains quotes, which leads to fails too... So, seems this feature QBS-31 does not work at all (at least for MSVC2015).
PS: In addition (after modification of generated msvc project files by hand), and after building and running of the project, the MSVC does not pick up the Qt's runtime libraries! The MSVC project files contains only a paths to the Qt headers!