QtCreator qmake 无法运行编译器'cl'
问题描述
刚刚使用 MSVS 2017 和 Qt5.9.1 配置了新的 windows 环境.
在构建示例项目时 bars
遇到错误
Just configured new windows environment with MSVS 2017 and Qt5.9.1.
While building example project bars
met an error
使用 mingw 构建并运行良好.
With mingw build and run fine.
我尝试在 qmake
但得到了相同的结果.在 cmd
中,此命令可以正常工作.之后 cl.exe
就可以访问了.
But got the same results. In cmd
this command works fine. After it cl.exe
is reachable.
所有工具集都是由 Qt 自动找到的,并且似乎是正确的
All toolsets was found automatically by Qt and seems to be right
这里是截图
联动错误.但是找到了cl.exe
.
Linkage errors. But cl.exe
found.
推荐答案
接下来的步骤一切正常.
After next steps all runs fine.
- 为 QtCreator 设置 Dracula 样式:)
- 修改 MSVS 安装,添加 VC++ 2015.3 v140 桌面工具集(x86、x64).
很奇怪.这就是我不喜欢窗户的原因.它过着自己的生活!
Very strange. And that is why I don't like windows. It lives its own live!
所以答案是尝试重新安装/修改组件,包括 QtCreator 本身.
So the answer is TRY TO REINSTALL/modify components, including QtCreator itself.
这篇关于QtCreator qmake 无法运行编译器'cl'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!