[英]What should I change in Qt creator to compile using MinGW rather than microsoft compiler
Currently my qmake command in QtCreator looks like this: 目前我在QtCreator中的qmake命令如下所示:
qmake.exe D:\programing\myproject\myproject.pro -r -spec win32-msvc2010 "CONFIG+=debug"
Now I do not like the win32-msvc2010
because Microsoft compiler 现在我不喜欢
win32-msvc2010
因为Microsoft编译器 sucks horribly doesn't support C++0x. 糟透了
不支持C ++ 0x。
So what configuration do I change to use MinGW instead of Microsoft compiler when compiling desktop Windows application ? 那么, 在编译桌面Windows应用程序时,我将更改为使用MinGW而不使用Microsoft编译器的什么配置?
I walked through the settings and googled but no hints... 我走过设置并用谷歌搜索但没有提示......
Easiest thing to do would be to go here: 最简单的事情就是去这里:
Link to Qt downloads page 链接到Qt下载页面
Scroll down and select Qt 5.6.0 for Windows 32-bit (MinGW 4.9.2, 1.0 GB)
this will download the installer (its about 1 GB). 向下滚动并选择
Qt 5.6.0 for Windows 32-bit (MinGW 4.9.2, 1.0 GB)
这将下载安装程序(大约1 GB)。 Run it and choose all the default options. 运行它,然后选择所有默认选项。 Then you will have Qt 5.6 with mingw and Qt Creator all setup ready to go.
然后你将有Qt 5.6与mingw和Qt Creator所有设置准备就绪。 Note: Before you start that its probably best to delete your current version - if you are not attached to it in any way :)
注意:开始之前,最好删除当前版本-如果未以任何方式附加到当前版本:)
If you want to change your current setup, then it might be longer-winded to find out what you are missing for mingw. 如果要更改当前设置,则可能需要花费很多时间才能找出mingw缺少的内容。 For example you need the mingw qmake (and all the other stuff under the mingw_32 folder) file that would be located here (using default install options):
例如,您需要位于此处的mingw qmake(以及mingw_32文件夹下的所有其他内容)文件(使用默认安装选项):
C:\\Qt\\Qt5.5.1\\5.5\\mingw492_32\\bin\\qmake.exe
to create your "Qt Version" part of the kit. 创建套件的“Qt版本”部分。 And the actual mingw compiler, which is located here (using default install options):
以及实际的mingw编译器,位于此处(使用默认安装选项):
C:\\Qt\\Qt5.5.1\\Tools\\mingw492_32\\bin\\g++.exe
to create your compiler. 创建你的编译器。 Once you have both of these then you can put them together to create your new kit.
一旦拥有了这两个组件,就可以将它们放在一起以创建新套件。
But to just add a compiler all you need to do is: 但是要添加编译器,您只需要:
note my paths are for qt 5.5.1 (obviously) so slightly different to 5.6 :) 注意我的路径适用于qt 5.5.1(很明显)与5.6略有不同:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.