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

qbs-setup-qt fails to assign base profile to QT 5.9 vs2017 version

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.8.1
    • 1.8.0
    • General
    • None
    • -Windows 7 and Windows 10
      -QtCreator 4.3.0
      -Visual Studio 2017

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              boleslaw Tadeusz Marianski
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes