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

Failed to retrieve MSVC Environment

Scheduled Pinned Locked Moved Solved Installation and Deployment
10 Posts 6 Posters 12.1k 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 13 Sept 2018, 13:34 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 ??

    J A 2 Replies Last reply 13 Sept 2018, 13:51
    1
    • F filipdns
      13 Sept 2018, 13:34

      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 ??

      J Offline
      J Offline
      JonB
      wrote on 13 Sept 2018, 13:51 last edited by
      #2

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

      F 1 Reply Last reply 13 Sept 2018, 14:08
      0
      • F filipdns
        13 Sept 2018, 13:34

        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 ??

        A Offline
        A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 13 Sept 2018, 14:00 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 13 Sept 2018, 14:09
        1
        • J JonB
          13 Sept 2018, 13:51

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

          F Offline
          F Offline
          filipdns
          wrote on 13 Sept 2018, 14:08 last edited by
          #4

          @JonB yes...

          1 Reply Last reply
          0
          • A aha_1980
            13 Sept 2018, 14:00

            Hi @filipdns,

            You might have hit QTCREATORBUG-20829.

            Which version of Creator are you running?

            F Offline
            F Offline
            filipdns
            wrote on 13 Sept 2018, 14:09 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 15 Sept 2018, 06:02
            0
            • F filipdns
              13 Sept 2018, 14:09

              @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 15 Sept 2018, 06:02 last edited by
              #6

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

              F 1 Reply Last reply 19 Sept 2018, 15:29
              1
              • M Mohammad Kanan
                15 Sept 2018, 06:02

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

                F Offline
                F Offline
                filipdns
                wrote on 19 Sept 2018, 15:29 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 28 Sept 2018, 22:40 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!

                  A 1 Reply Last reply 29 Sept 2018, 06:25
                  0
                  • S Starbuck
                    28 Sept 2018, 22:40

                    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!

                    A Offline
                    A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on 29 Sept 2018, 06:25 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 2 Sept 2022, 20:28 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