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. Unable to find MSVS2017 compilers
QtWS25 Last Chance

Unable to find MSVS2017 compilers

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
22 Posts 5 Posters 9.4k 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.
  • M Offline
    M Offline
    M Shajeeh Mustafa
    wrote on last edited by A Former User
    #1

    I have MSVS2017 installed in my windows 10 operating system alongwith QT 5.8.0. I have just started learning qt. However, the very first program that I built gave following error

    'cl' is not recognized as an internal or external command,
    operable program or batch file.
    jom: C:\Users\shajeeh\Documents\QT\GUI Tutorials\build-T_2_basics-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug\Makefile.Debug [debug\mainwindow.obj] Error 1
    jom: C:\Users\shajeeh\Documents\QT\GUI Tutorials\build-T_2_basics-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug\Makefile [debug] Error 2
    11:26:09: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project T_2_basics (kit: Desktop Qt 5.8.0 MSVC2015_64bit)
    The kit Desktop Qt 5.8.0 MSVC2015_64bit has configuration issues which might be the root cause for this problem.
    When executing step "Make"
    

    I checked in tools>options>compilers but all i found was concerning 2015 version. What I think is because this QT version is referring to MSVS2015 while I have 2017 installed. Is there any way I can point my qt to MSVS2017 instead of 2015 and compile my project.

    K 1 Reply Last reply
    0
    • M M Shajeeh Mustafa

      I have MSVS2017 installed in my windows 10 operating system alongwith QT 5.8.0. I have just started learning qt. However, the very first program that I built gave following error

      'cl' is not recognized as an internal or external command,
      operable program or batch file.
      jom: C:\Users\shajeeh\Documents\QT\GUI Tutorials\build-T_2_basics-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug\Makefile.Debug [debug\mainwindow.obj] Error 1
      jom: C:\Users\shajeeh\Documents\QT\GUI Tutorials\build-T_2_basics-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug\Makefile [debug] Error 2
      11:26:09: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
      Error while building/deploying project T_2_basics (kit: Desktop Qt 5.8.0 MSVC2015_64bit)
      The kit Desktop Qt 5.8.0 MSVC2015_64bit has configuration issues which might be the root cause for this problem.
      When executing step "Make"
      

      I checked in tools>options>compilers but all i found was concerning 2015 version. What I think is because this QT version is referring to MSVS2015 while I have 2017 installed. Is there any way I can point my qt to MSVS2017 instead of 2015 and compile my project.

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @M-Shajeeh-Mustafa

      Hi and welcome to devnet forum

      You cannot mix different compiler versions. When you have MSVC 2017 installed you need to have also the pre-compiled version of Qt libs to run with. Respectively when you have Qt libs pre-compiled with MSVC compiler version 2015, you are required to install also this compiler.

      How did you install Qt libs?

      When you have used the online installer, you can start the maintenance tool again and check if tehre is already a pre-compiled version for MSVC 2017 available. I believe taht it might be still a bit early. However, better check.

      When you have a full version of MSVC 2017 bought and you like to use this IDE, you may have the only choice of compiling Qt libs by yourself.

      If you plan to use Qt creator as your IDE, you can download and install the free version of msvc 2015.

      Vote the answer(s) that helped you to solve your issue(s)

      M 1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        @koahnig Just one small correction: MSVC2017 is the first version of Visual Studio that is backward compatible but only with VS2015.

        @M-Shajeeh-Mustafa Might be a silly question but did you install the C++ component of Visual Studio ? With VS2015 for example it's not selected by default.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        K 1 Reply Last reply
        0
        • K koahnig

          @M-Shajeeh-Mustafa

          Hi and welcome to devnet forum

          You cannot mix different compiler versions. When you have MSVC 2017 installed you need to have also the pre-compiled version of Qt libs to run with. Respectively when you have Qt libs pre-compiled with MSVC compiler version 2015, you are required to install also this compiler.

          How did you install Qt libs?

          When you have used the online installer, you can start the maintenance tool again and check if tehre is already a pre-compiled version for MSVC 2017 available. I believe taht it might be still a bit early. However, better check.

          When you have a full version of MSVC 2017 bought and you like to use this IDE, you may have the only choice of compiling Qt libs by yourself.

          If you plan to use Qt creator as your IDE, you can download and install the free version of msvc 2015.

          M Offline
          M Offline
          M Shajeeh Mustafa
          wrote on last edited by M Shajeeh Mustafa
          #4

          @koahnig About Installing the libs, I just downloaded the online version of QT download and checked if there is any option of MSVS2017 but there was none so I chose MSVS2015 instead (thinking it might do...). That is how I installed QT and its libs (all by itself). About compiling the libs in MSVS2017 by myself, can you please guide me how to do this since this is the only valid option left with me. Here is the list of options I found in online installer
          here
          @SGaist About C++ component of visual studio, I program and compile my projects in visual studio with C++. I think it means that I have C++ component installed...! Moreover this is list of compilers I found in QT build and run tab. here

          1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            @koahnig Just one small correction: MSVC2017 is the first version of Visual Studio that is backward compatible but only with VS2015.

            @M-Shajeeh-Mustafa Might be a silly question but did you install the C++ component of Visual Studio ? With VS2015 for example it's not selected by default.

            K Offline
            K Offline
            koahnig
            wrote on last edited by
            #5

            @SGaist said in QT unable to find MSVS2017 compilers:

            Hi,

            @koahnig Just one small correction: MSVC2017 is the first version of Visual Studio that is backward compatible but only with VS2015.

            That is really some news. ;)

            Even though my personal attitude has changed to not trusting such claims of MS as I do not for MinGW either.

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Then are you sure you are not trying to build your project with your VS 2013 Qt rather than the VS 2015 ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • M Offline
                M Offline
                M Shajeeh Mustafa
                wrote on last edited by
                #7

                @SGaist yes because the error QT is giving explicitly mentions that there is some problem with the MSVS 2015 compiler. The error code once again is

                'cl' is not recognized as an internal or external command,
                operable program or batch file.
                jom: C:\Users\shajeeh\Documents\QT\GUI Tutorials\build-T_2_basics-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug\Makefile.Debug [debug\mainwindow.obj] Error 1
                jom: C:\Users\shajeeh\Documents\QT\GUI Tutorials\build-T_2_basics-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug\Makefile [debug] Error 2
                11:26:09: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
                Error while building/deploying project T_2_basics (kit: Desktop Qt 5.8.0 MSVC2015_64bit)
                The kit Desktop Qt 5.8.0 MSVC2015_64bit has configuration issues which might be the root cause for this problem.
                When executing step "Make"
                

                This makes me think that the claim might not be true for this case.
                @koahnig If you please tell me how to compile these libraries in 2017 version. Also if I just leave it all here and start using MinGW compiler. Will it make any difference?

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Did you check what error your kit is showing ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    M Shajeeh Mustafa
                    wrote on last edited by M Shajeeh Mustafa
                    #9

                    As far as I interpret, the kit error is

                    The kit Desktop Qt 5.8.0 MSVC2015_64bit has configuration issues which might be the root cause for this problem.
                    When executing step "Make"
                    

                    And it has configuration issues since this version is not installed in my laptop. Is there any way I can point QT to 2017 version

                    jsulmJ 1 Reply Last reply
                    0
                    • M M Shajeeh Mustafa

                      As far as I interpret, the kit error is

                      The kit Desktop Qt 5.8.0 MSVC2015_64bit has configuration issues which might be the root cause for this problem.
                      When executing step "Make"
                      

                      And it has configuration issues since this version is not installed in my laptop. Is there any way I can point QT to 2017 version

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @M-Shajeeh-Mustafa You should check what exactly the issue is: go to the kit (Tools/Options/Build & Run/Kits) and put mouse cursor over the kit - you should see a pop up containing more information.

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      M 1 Reply Last reply
                      1
                      • jsulmJ jsulm

                        @M-Shajeeh-Mustafa You should check what exactly the issue is: go to the kit (Tools/Options/Build & Run/Kits) and put mouse cursor over the kit - you should see a pop up containing more information.

                        M Offline
                        M Offline
                        M Shajeeh Mustafa
                        wrote on last edited by
                        #11

                        @jsulm In that window everything seems to be perfectly fine except the cMake configuration where it says "unconfigured". Any idea how to configure cMake settings? As here
                        0_1491310426216_upload-819fde81-3009-4519-97af-9aa09a0a5438

                        jsulmJ 1 Reply Last reply
                        0
                        • M M Shajeeh Mustafa

                          @jsulm In that window everything seems to be perfectly fine except the cMake configuration where it says "unconfigured". Any idea how to configure cMake settings? As here
                          0_1491310426216_upload-819fde81-3009-4519-97af-9aa09a0a5438

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          @M-Shajeeh-Mustafa cmake doesn't matter. Can you check the compiler on "Compilers" tab?

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0
                          • OlivierDuguayO Offline
                            OlivierDuguayO Offline
                            OlivierDuguay
                            wrote on last edited by
                            #13

                            Have you downloaded the Microsoft Windows 10 SDK ? I had a similar problem on my machine running on Windows 10 and I correct it by downloading and installing the Microsoft Windows 8.1 SDK !!! (I think there's something missing in the version for the Windows 10)

                            Olivier Duguay

                            M 1 Reply Last reply
                            0
                            • OlivierDuguayO OlivierDuguay

                              Have you downloaded the Microsoft Windows 10 SDK ? I had a similar problem on my machine running on Windows 10 and I correct it by downloading and installing the Microsoft Windows 8.1 SDK !!! (I think there's something missing in the version for the Windows 10)

                              M Offline
                              M Offline
                              M Shajeeh Mustafa
                              wrote on last edited by M Shajeeh Mustafa
                              #14

                              @OlivierDuguay yes i have the windows 10, 8.1 and 7 sdks downloaded and installed in my system. I needed them to access directshow samples and compile them some time ago.
                              Also, the debugger installed in my QT (shown in debugger tab) is also from the windows 10 sdk
                              @jsulm I uploaded the compiler screenshot above and myself checked in the tools>options>build and run.
                              The compilers seem to be installed and working correctly. No issues with that. However if cMake is not a problem do you think the issue is with the compatibility with version 2017 because the compilers listed also correspond to 2015 version (but looks installed and detected automatically)
                              what if I just start using MinGW. Is there any issues (performance wise) with that or should I continue exploring the options for Microsoft compilers? Any suggestions

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #15

                                Can you just re-try with your project in a path without any space ? i.e. change GUI Tutorialsby GUI_Tutotials

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                M 1 Reply Last reply
                                0
                                • SGaistS SGaist

                                  Can you just re-try with your project in a path without any space ? i.e. change GUI Tutorialsby GUI_Tutotials

                                  M Offline
                                  M Offline
                                  M Shajeeh Mustafa
                                  wrote on last edited by
                                  #16

                                  @SGaist same result with GUI_Tutorials
                                  I also created a new project named "Sample" and built. That too resulted in the same error.

                                  The kit Desktop Qt 5.8.0 MSVC2015_64bit has configuration issues which might be the root cause for this problem.
                                  When executing step "Make"
                                  
                                  1 Reply Last reply
                                  0
                                  • SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #17

                                    Don't you have any red or yellow warning sign on the kit page ?

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    M 1 Reply Last reply
                                    0
                                    • SGaistS SGaist

                                      Don't you have any red or yellow warning sign on the kit page ?

                                      M Offline
                                      M Offline
                                      M Shajeeh Mustafa
                                      wrote on last edited by
                                      #18

                                      @SGaist yes actually I have both red as well as yellow
                                      as here
                                      0_1491568949810_upload-393f3d6c-e52c-4d22-a60d-7290ed0d64f5

                                      jsulmJ 1 Reply Last reply
                                      0
                                      • M M Shajeeh Mustafa

                                        @SGaist yes actually I have both red as well as yellow
                                        as here
                                        0_1491568949810_upload-393f3d6c-e52c-4d22-a60d-7290ed0d64f5

                                        jsulmJ Offline
                                        jsulmJ Offline
                                        jsulm
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #19

                                        @M-Shajeeh-Mustafa And what do you see if you position the mouse cursor over that warnings?

                                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        M 1 Reply Last reply
                                        0
                                        • jsulmJ jsulm

                                          @M-Shajeeh-Mustafa And what do you see if you position the mouse cursor over that warnings?

                                          M Offline
                                          M Offline
                                          M Shajeeh Mustafa
                                          wrote on last edited by
                                          #20

                                          @jsulm Actually I knew you would say exactly the same that's why I have already placed my cursor over my default kit (the yellow one with QT 5.8.0 MSVS 2015). The yellow box shown in the picture above is actually the output when I placed my cursor above that kit. And It shows everything perfectly fine except the CMake configuration. Which it says is un-configured.

                                          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