Qt Cmake配置没有指向C++;编译集 我得到的警告是:“QTcFig配置没有一个C++编译器集的路径,即使工具箱有一个有效的工具链。”

Qt Cmake配置没有指向C++;编译集 我得到的警告是:“QTcFig配置没有一个C++编译器集的路径,即使工具箱有一个有效的工具链。”,c++,qt,cmake,C++,Qt,Cmake,我不知道如何更改CMake配置,使其具有指向编译器的路径。我有一个C++编译器安装,因为它与VS工作,但QT似乎遇到了一些问题。 这是显示为警告的屏幕截图: 这是我在尝试运行任何操作时遇到的错误: 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 a

我不知道如何更改CMake配置,使其具有指向编译器的路径。我有一个C++编译器安装,因为它与VS工作,但QT似乎遇到了一些问题。 这是显示为警告的屏幕截图:

这是我在尝试运行任何操作时遇到的错误:

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"

运行以下文件后&重新启动qt creator警告和错误得到解决。 请在Visual studio 14.0的工具中运行vsvars32.bat文件

目录路径:C:\Program Files(x86)\Microsoft Visual Studio 14.0\Common7\Tools
此问题主要发生在visual studio工具更新之后。

是否安装了visual studio 14 2015?它不能找到<代码> Cl<代码>,这意味着它没有正确的编译器路径。@ RWOLS是的,我安装了VS2015,我在VS2015上运行了一个“Hello World”程序作为C++控制台应用程序,它运行正常。(或者在已经设置的情况下添加了qt目录)@CantleepNow我不确定它是如何工作的,但这是在该字段中写的:
CMAKE\u PREFIX\u PATH:STRING=%{qt:qt\u INSTALL\u PREFIX}
你解决过这个问题吗?遇到同样的问题。