Qt常见警告问题:请更新您的工具包(Desktop Qt 5.14.1MSVC2017 64位)或为qmake选择更符合您的目标环境的mkspec

2021-03-28T17:32:05 Clang Code Model: Error: The clangbackend executable "D:\Qt\Qt5.12.9\Tools\QtCreator\bin\clangbackend.exe" could not be started (timeout after 10000ms).
C and C++ compiler paths differ. C compiler may not work.
C and C++ compiler paths differ. C compiler may not work.

 

:-1: warning: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x86\cl.exe" is used by qmake, but "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe" is configured in the kit.
Please update your kit (Desktop Qt 5.12.9 MSVC2017 32bit) or choose a mkspec for qmake that matches your target environment better.

 

知识点:

  • 32/64 位系统编译在32位系统上运行 => x86
  • 32 系统上编译64位系统上运行 => x86_amd64
  • 64 系统上编译在64位系统上运行 => amd64

来自https://blog.csdn.net/whatnamecaniuse/article/details/80717821

 

解决方案:把msvc2017 32bit编译器中的编译器都设置为x86

 

解决方案:把msvc2017 64bit编译器中的编译器都设置为amd64

 

 

 

  • 17
    点赞
  • 31
    收藏
    觉得还不错? 一键收藏
  • 7
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值