Qt 环境配置提示警告Qt Cmake configuration has no path to a C++ compiler set, even though the toolkit has a v

Qt->tools->Kits里面的配置报警告:

Qt Cmake configuration has no path to a C++ compiler set, even though the toolkit has a valid tool chain

解决方案:运行下面目录下的vsvars32.bat脚本或者VsDevCmd.bat

C:\Program Files (x86)\Microsoft Visual Studio V.w\Common7\Tools

关于这个脚本的介绍:

VsDevCmd.bat sets the Visual Studio related environment variables that are necessary for compiling, linking and building applications on the command line.
VsDevCmd.bat is new with Visual Studio 2017 and replaces vsvars32.bat that came with Visual Sutido 2015 and earlier version.
vsvars32.bat was (by default) located under C:\Program Files (x86)\Microsoft Visual Studio V.w\Common7\Tools.
When invoked with no parameters, the script sets the environment and the host and target build architecture to use the 32-bit x86-native tols to build 321-bit x86 code.

翻译过来就是:

VsDevCmd.bat设置Visual Studio 相关的环境变量,这些变量是编译、链接和构建命令行上的应用程序所必需的。
vs2017之后使用的都是VsDevCmd.bat
vs2015及以前使用的是vsvars32.bat

参考链接:
1.Qt Cmake configuration has no path to a C++ compiler set
2.VsDevcmd.bat

  • 3
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 14
    评论
评论 14
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值