I am trying to setup build of my project with QBS for VS2017 with QT 5.9.
I am issuing following commands:
1) qbs-setup-toolchains.exe --detect
which properly detect all visual studio compilers on my machine:
Setting up profile 'MSVC2017-x64_arm'.
Setting up profile 'MSVC2017-x64'.
Setting up profile 'MSVC2017-x64_x86'.
Setting up profile 'MSVC2017-x86_arm'.
Setting up profile 'MSVC2017-x86_x64'.
Setting up profile 'MSVC2017-x86'.
Setting up profile 'MSVC2015-x86'.
Setting up profile 'MSVC2015-amd64_x86'.
Setting up profile 'MSVC2015-amd64'.
Setting up profile 'MSVC2015-x86_amd64'.
Setting up profile 'MSVC2015-x86_arm'.
Setting up profile 'MSVC2015-amd64_arm'.
2) qbs-setup-qt.exe \SDK\Qt\5.9\msvc2017_64\bin\qmake.exe qt59-vs2017-x64
This command however fails setting up the compiler for my Qt SDK and outputs following error/warning:
WARNING: You need to set up toolchain information before you can use this Qt version for building. Consider setting one of these profiles as this profile's base profile: MSVC2015-amd64, MSVC2015-x86_amd64, MSVC2017-x64, MSVC2017-x86_x64.
While this is easy to fix for standalone QBS setup but just setting up the base profile, in Qt Creator it becomes more problematic as the settings are driven by the IDE and gets lost.
The issue is most likely due to changes to Visual Studio 2017 tools location, see this MSDN blog post for details: https://blogs.msdn.microsoft.com/vcblog/2016/10/07/compiler-tools-layout-in-visual-studio-15/ It is a problem either in Qbs or Qt Creator.