Unable to find MSVS2017 compilers
-
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.
-
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.
-
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.
-
@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
@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. -
@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.
-
Then are you sure you are not trying to build your project with your VS 2013 Qt rather than the VS 2015 ?
-
@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? -
Did you check what error your kit is showing ?
-
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
-
@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-Shajeeh-Mustafa cmake doesn't matter. Can you check the compiler on "Compilers" tab?
-
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)
-
@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 -
Can you just re-try with your project in a path without any space ? i.e. change
GUI Tutorials
byGUI_Tutotials
-
@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"
-
Don't you have any red or yellow warning sign on the kit page ?
-
@M-Shajeeh-Mustafa And what do you see if you position the mouse cursor over that warnings?
-
@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.