简体   繁体   English

Qt Creator 4.3.1 未检测到 MSVC 2015 编译器

[英]Qt Creator 4.3.1 not detecting MSVC 2015 compiler

Compilers in Qt Creator are not detected (I would like to use MSVC 2015 since that's what this version of Qt Creator was built on).未检测到 Qt Creator 中的编译器(我想使用 MSVC 2015,因为这是构建此版本 Qt Creator 的基础)。

I've had Visual Studio Professional 2015 with Update 3 installed for quite some time on a Window 7 box.我在 Window 7 机器上安装了更新 3 的 Visual Studio Professional 2015 已经有一段时间了。

I installed Qt Creator from the downloads-open-source path...in the help menu it says "Based on Qt 5.9.1 (MSVC 2015, 32 bit)".我从下载开源路径安装了 Qt Creator...在帮助菜单中,它说“基于 Qt 5.9.1(MSVC 2015,32 位)”。

I have "Microsoft Visual C++ 2015 Redistributable (x86) - 14.0.24215" installed along with several others.我安装了“Microsoft Visual C++ 2015 Redistributable (x86) - 14.0.24215”以及其他几个。

What am I missing?我错过了什么?

I think I found out the solution...我想我找到了解决方案......

In Visual Studio...New Project...Visual C++...Install C++...在 Visual Studio...新建项目...Visual C++...安装 C++...

Which will install the compilers.这将安装编译器。

This worked!这有效!

You can't manually add MSVC to Qt Creator.您不能手动将 MSVC 添加到 Qt Creator。 If you want to use it make sure to have the correct Visual Studio version installed.如果要使用它,请确保安装了正确的 Visual Studio 版本。

I should reinstall Visual Studio if the MSVC compiler don't appear in the Compilers tab.如果 MSVC 编译器没有出现在“编译器”选项卡中,我应该重新安装 Visual Studio。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM