我得到的警告是:" 即使工具包具有有效的工具链,Qt Cmake配置也没有到C++编译器集的路径. "
我不知道如何更改CMake配置,以便它有一个编译器的路径.我安装了一个C++编译器,因为它适用于VS但Qt似乎遇到了一些问题.
这是警告显示的屏幕截图:https://i.stack.imgur.com/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"
Run Code Online (Sandbox Code Playgroud)
运行以下文件并重新启动 qt 创建者后,警告和错误得到解决。 请在Visual studio 14.0的工具中运行vsvars32.bat文件
目录路径:C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools 大多数情况下,此问题是在更新 Visual Studio 工具后出现的。
| 归档时间: |
|
| 查看次数: |
3064 次 |
| 最近记录: |