如何在Qt中设置编译器?

编程入门 行业动态 更新时间:2024-10-27 07:28:58
本文介绍了如何在Qt中设置编译器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我是Qt的全新,我下载的离线版本Qt 5.3.2 for Windows 64位(VS 2013,OpenGL,573 MB)

我无法编译我的项目。

我有:

Qt Creator 3.2.1 )基于Qt 5.3.2(MSVC 2010,32位)

在我的构建&运行,我有,对于套件:桌面Qt 5.3 MSVC2013 OpenGL 64位对于Qt版本:Qt 5.3 MSVC2013 OpenGL 64位

没有为编译器选项卡。我不知道我应该放在那一节。

我在尝试编译我的项目时收到以下错误讯息:

14:44:12:配置错误。

在建立/部署项目时发生错误TextFinder(kit:Desktop Qt 5.3)

Qt creator需要一个编译器来建立。在套件选项中配置编译器。

解决方案

转到工具 - >选项 - >构建&运行并在编译器选项卡上单击添加以添加新编译器。您还可以在套件选项卡上管理套件。不要忘记在 Qt版本选项卡上设置 qmake 。

此外,如果您想要 MSVC 版本 Qt ,您需要安装 Microsoft根据您使用的 Qt 的版本,Visual Studio 2010 或 2013 >

如果您是初学者,我建议您从 MinGW -project/official_releases/qt/5.3/5.3.2/qt-opensource-windows-x86-mingw482_opengl-5.3.2.exe\">qt-project ,一切都应该很好。

MinGW 版本使用Windows版本 GCC c $ c> VS 使用Microsoft的编译器。

I'm totally new with Qt and I downloaded the offline version " Qt 5.3.2 for Windows 64-bit (VS 2013, OpenGL, 573 MB)"

I'm unable to compile my project.

I have:

Qt Creator 3.2.1 (opensource) Based on Qt 5.3.2 (MSVC 2010, 32 bit)

In my Build & Run, I have, For the kit: Desktop Qt 5.3 MSVC2013 OpenGL 64bit For Qt version: Qt 5.3 MSVC2013 OpenGL 64bit

and there is nothing for the compilers tab. I don't know what I should put in that section. What did I miss?

I got the following error message while trying to compile my project:

14:44:12: Configuration is faulty. Check the Issues view for details.

Error while building/deploying project TextFinder (kit: Desktop Qt 5.3

MSVC2013 OpenGL 64bit) When executing step "Make"

and

Qt creator needs a compiler set up to build. Configure a compiler in the kit options.

解决方案

Go to Tools->Options->Build & Run and on the Compilers tab click Add to add a new compiler. You can also manage kits on the Kits tab. Don't forget to setup qmake on the Qt Versions tab.

Also if you want the MSVC version of Qt you need to install Microsoft Visual Studio 2010 or 2013 depending on the version of Qt you use.

If you are a beginner I recommend you download the MinGW version from qt-project and everything should work just fine.

MinGW versions use the windows versions of GCC while VS uses Microsoft's compiler.

更多推荐

如何在Qt中设置编译器?

本文发布于:2023-11-14 19:00:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1588273.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:编译器   如何在   Qt

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!