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

x86_64 build needs to add more to PATH

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 0.1
    • Fix Version/s: 0.2
    • Component/s: Toolchains: Visual C++
    • Labels:
      None

      Description

      There's a disconnect between the PATH locations set up by qbs and the ones created by "vcvarsall.bat amd64" (which is what I call before using qmake). This becomes apparent when trying to call the 'rc' tool (needed for 64-bit handling of .rc files in QBS-52) which is found (on my machine) in C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64, which is not in the path reported by "qbs shell".

      qbs shell architecture:x86_64 adds the following to path:

      C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools
      C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64
      C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
      D:/workitems/qbs/bin
      

      Whereas vcvarsall.bat amd64 adds:

      C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64
      C:\Windows\Microsoft.NET\Framework64\v4.0.30319
      C:\Windows\Microsoft.NET\Framework64\v3.5
      C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\VCPackages
      C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
      C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools
      C:\Program Files (x86)\HTML Help Workshop
      C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\x64
      C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin
      C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64
      

      I imagine the .NET and html paths could be skipped, but the final one is needed for rc. Alternatively, a different way of referring to rc will be needed in QBS-52, rather than just relying on it being in the search path.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              jbornema Joerg Bornemann
              Reporter:
              tomsci Tom Sutcliffe
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes