Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt Cmake configuration has no path to a C++ compiler set

Tags:

c++

cmake

qt

The warning I get is: "Qt Cmake configuration has no path to a C++ compiler set, even though the toolkit has a valid tool chain."

I am not sure how to change the CMake configuration so that it has a path to the compiler. I do have a C++ compiler installed as it works with VS but Qt seems to run into some problem.

This is a screen shot of what appears as the warning: https://i.stack.imgur.com/ETET6.jpg

This is the error I get trying to run anything:

jom: C:\Users\User\Desktop\inv\build-Invaders-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug\Makefile.Debug [debug\game.obj] Error 1
'cl' is not recognized as an internal or external command,
operable program or batch file.
jom: C:\Users\User\Desktop\inv\build-Invaders-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug\Makefile.Debug [debug\spaceship.obj] Error 1
'cl' is not recognized as an internal or external command,
operable program or batch file.
jom: C:\Users\User\Desktop\inv\build-Invaders-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug\Makefile.Debug [debug\laserbeam.obj] Error 1
'cl' is not recognized as an internal or external command,
operable program or batch file.
'cl' is not recognized as an internal or external command,
operable program or batch file.
jom: C:\Users\User\Desktop\inv\build-Invaders-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug\Makefile.Debug [debug\config.obj] Error 1
jom: C:\Users\User\Desktop\inv\build-Invaders-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug\Makefile.Debug [debug\iofile.obj] Error 1
jom: C:\Users\User\Desktop\inv\build-Invaders-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug\Makefile [debug] Error 2
17:06:30: The process "D:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project Invaders (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"
like image 530
Shubby Avatar asked May 11 '17 07:05

Shubby


1 Answers

After running following file & restart qt creator warning and error get resolved. Please run vsvars32.bat file in tools of Visual studio 14.0

Directory Path : C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools Mostly this issue come after update of visual studio tools.

like image 62
Deepak Patel Avatar answered Oct 12 '22 01:10

Deepak Patel