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

QBS Generator: visualstudio2017 project doesn't build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 1.11.0
    • 1.11.0
    • None
    • Windows10, QtCreator 4.6 beta, Qt 5.10.1, Visual Studio 2017
    • caa7d868fca080029dd77b44fafc830acf17a158

    Description

      I used the QBS generator to create a vs2017 project:

      qbs.exe generate -f path\to\Project.qbs -g visualstudio2017 profile:qt-5-10-1

      Which apparently works fine, i.e. I can open the project in VS and see the whole project structure and files. However, building a project does not work and yields:

      2>EXEC : error : Unexpected command line parameter 'default'.
      2>Expected an assignment of the form <property>:<value>, profile:<profile-name> or config:<configuration-name>.
      2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command ""C:\Qt\Tools\Preview\Qt Creator 4.6.0-beta1\bin\qbs.exe" build -f "C:\ARGOS\Software\argoscontrol2-redesign\ARGOSControl.qbs" -d "C:\Path\To\VS-Project\." -p "projectname" --wait-lock "default" qbs.profile:qt-5-10-1" exited with code 1.
      2>Done building project "projectname.vcxproj" -- FAILED.

      According to the documentation the token "default" (after options, before parameter:value pairs) is the configuration name and should be expected by QBS.

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            pwuertz Peter Würtz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes