Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Failed to retrieve MSVC Environment
Forum Updated to NodeBB v4.3 + New Features

Failed to retrieve MSVC Environment

Scheduled Pinned Locked Moved Solved Installation and Deployment
10 Posts 6 Posters 12.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    filipdns
    wrote on last edited by filipdns
    #1

    Hello,

    With no reason, I receive this error when I open QT creator but yesterday it was working fine and I didn't change any thing on my PC...

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

    Could you help me please ??

    JonBJ aha_1980A 2 Replies Last reply
    1
    • F filipdns

      Hello,

      With no reason, I receive this error when I open QT creator but yesterday it was working fine and I didn't change any thing on my PC...

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

      Could you help me please ??

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @filipdns
      Does C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat exist?

      F 1 Reply Last reply
      0
      • F filipdns

        Hello,

        With no reason, I receive this error when I open QT creator but yesterday it was working fine and I didn't change any thing on my PC...

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

        Could you help me please ??

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi @filipdns,

        You might have hit QTCREATORBUG-20829.

        Which version of Creator are you running?

        Qt has to stay free or it will die.

        F 1 Reply Last reply
        1
        • JonBJ JonB

          @filipdns
          Does C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat exist?

          F Offline
          F Offline
          filipdns
          wrote on last edited by
          #4

          @JonB yes...

          1 Reply Last reply
          0
          • aha_1980A aha_1980

            Hi @filipdns,

            You might have hit QTCREATORBUG-20829.

            Which version of Creator are you running?

            F Offline
            F Offline
            filipdns
            wrote on last edited by filipdns
            #5

            @aha_1980 I'm running creator 4.7.0 based on QT 5.11.1 MSVC2015 with kit 5.10.0 MSVC2015

            M 1 Reply Last reply
            0
            • F filipdns

              @aha_1980 I'm running creator 4.7.0 based on QT 5.11.1 MSVC2015 with kit 5.10.0 MSVC2015

              M Offline
              M Offline
              Mohammad Kanan
              wrote on last edited by
              #6

              @filipdns check QTBUG above, install batch fix (Qt Creator 4.7.1)

              F 1 Reply Last reply
              1
              • M Mohammad Kanan

                @filipdns check QTBUG above, install batch fix (Qt Creator 4.7.1)

                F Offline
                F Offline
                filipdns
                wrote on last edited by
                #7

                @Mohammad-Kanan I'm using the 4.7.1 for the moment, only problem is have to manually add the Qt version and manage manually the kit but it's working.

                I mark this topic as solved but it's not really the case because maintenance tools is not usable any not in this configuration.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  Starbuck
                  wrote on last edited by
                  #8

                  I have the same exact issue with Qt Creator 4.7.1 installed [based on Qt 5.11.2 (MSVC 2015, 32 bit)], build on Sep 18 2018. OS is 64-bit Windows 10, version 1803 (OS build 17134.286). Whenever I try to build ANY Qt project regardless of how simple it is, I see the error. It looks like it can't start the cmd processor. How can I get this working?

                  Thanks!

                  aha_1980A 1 Reply Last reply
                  0
                  • S Starbuck

                    I have the same exact issue with Qt Creator 4.7.1 installed [based on Qt 5.11.2 (MSVC 2015, 32 bit)], build on Sep 18 2018. OS is 64-bit Windows 10, version 1803 (OS build 17134.286). Whenever I try to build ANY Qt project regardless of how simple it is, I see the error. It looks like it can't start the cmd processor. How can I get this working?

                    Thanks!

                    aha_1980A Offline
                    aha_1980A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Hi @Starbuck,

                    which MSVC compiler do you have installed? Is it visible in Tools > Options > Kits > Compilers?

                    Regards

                    Qt has to stay free or it will die.

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      alexp95
                      wrote on last edited by
                      #10

                      Hi,

                      For me, executing C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build>vcvars32.bat x86 from cmd was giving the below output:

                      The system cannot find the path specified.


                      ** Visual Studio 2019 Developer Command Prompt v16.4.5
                      ** Copyright (c) 2019 Microsoft Corporation


                      The system cannot find the path specified.
                      The system cannot find the path specified.
                      [vcvarsall.bat] Environment initialized for: 'x64'

                      This solved it: https://stackoverflow.com/questions/64248886/visual-studio-c-build-tools-vsdevcmd-bat-vcvarsall-bat-fails-to-find-some

                      Best,
                      Alex

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved