gpt4 book ai didi

c++ - Qt Cmake 配置没有 C++ 编译器集的路径

转载 作者:可可西里 更新时间:2023-11-01 17:59:11 28 4
gpt4 key购买 nike

我收到的警告是:“Qt Cmake 配置没有指向 C++ 编译器集的路径,即使该工具包具有有效的工具链也是如此。

我不确定如何更改 CMake 配置以使其具有编译器路径。我确实安装了一个 C++ 编译器,因为它可以与 VS 一起使用,但 Qt 似乎遇到了一些问题。

这是显示为警告的屏幕截图:/image/ETET6.jpg

这是我尝试运行任何东西时遇到的错误:

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 工具之后。

关于c++ - Qt Cmake 配置没有 C++ 编译器集的路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43908915/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com