Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-20863

Cannot build MSVC2013 projects with fresh install of Qt Creator 4.7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.7.0
    • None
    • Visual Studio 2013, WIndows 7 x64.
    • Windows

    Description

      I had a working 4.6.2 Qt Creator, but I've been troubleshooting installing Qt Creator 4.7.

      Steps:

      1. Run Qt Maintainance Tool and Remove All.
      2. Use Qt Maintainance Tool to install Qt 5.9.6 for MSVC 2013 64-bit compiler and Qt Creator 4.7 with CDB support.
      3. Create a new Qt Quick Application - Empty
      4. Try to compile: fails with message:
        Cannot run compiler 'cl'. Output:

      Failed to retrieve MSVC Environment from "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat x86_amd64"
      The command "C:\Windows\system32\cmd.exe" could not be started.

      Full compile output:

       

      20:15:52: Running steps for project DelMe-TestingQC47...
      20:15:52: Starting: "C:\Qt\5.9.6\msvc2013_64\bin\qmake.exe" C:\Dev\Practice\DelMe-TestingQC47\DelMe-TestingQC47.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
      Project ERROR: Cannot run compiler 'cl'. Output:
      ===================
      ===================
      Maybe you forgot to setup the environment?
      20:15:52: The process "C:\Qt\5.9.6\msvc2013_64\bin\qmake.exe" exited with code 3.
      Error while building/deploying project DelMe-TestingQC47 (kit: Desktop Qt 5.9.6 MSVC2013 64bit2)
      The kit Desktop Qt 5.9.6 MSVC2013 64bit2 has configuration issues which might be the root cause for this problem.
      When executing step "qmake"
      20:15:52: Elapsed time: 00:00.
      

       

       

      --------

      Next steps:

      1. Download Qt Creator 4.6.2 and install
      2. Launch Qt Creator 4.6.2
      3. Set up Kit for Qt 5.9.6 (not detected automatically)
      4. Compile and execute same project created above without issues.

      The chances that I've missed something in this bug report are high – I've been troubleshooting this for hours. The event that killed my development configuration was installing Qt Creator 4.7. The above steps are consistent with my recollection of what I saw when I first installed Qt Creator 4.7. 

      After re-installing with Qt Creator 4.7, I see a Qt 5.9.6.X 64bit2 choice, which is odd since I did a complete uninstall and do not expect to see the "2" at the end of "64bit2".

       

      Attachments

        Issue Links

          Activity

            People

              davschul David Schulz
              stan.m Stanley Morris
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: