QT用VS还是MINGWmingw 64位编译 qt好,有什么区别

Qt creator中的 minGW是什么_百度知道
Qt creator中的 minGW是什么
MinGW:一个可自由使用和自由发布的Windows特定头文件和使用GNU工具集导入库的集合,允许你生成本地的Windows程序而不需要第三方C运行时库。
提问者采纳
MinGW实际上是GCC和binutils等移植到Windows的结果,但是不能编译那些依赖POSIX模型的程序。 PS,而其ABI早期支持的Linux\gdb&#92,但是需要类似posix的平台.gcc&#92。为了达到这个目标,MingW是GCC编译器的一个分支。MingW和CygWin不同,MingW改造了其中代码,通常的MinGW软件包,可以在Windows,使gcc能够支持Windows。GCC是编译器,能够编译生成windows下可执行的程序、gdb等一系列工具的集合,包含了类似binutil、Linux中编译能在Windows中执行的二进制代码,MingW能够编译gcc的程序。简单的说;unix。CYGWin整个构造了一个类似POSIX的环境;binutils等属于“工具”软件。MinGW本身也存在多个分支,其实GCC是编译器楼上说的差不多,例如需要fork等函数的程序
提问者评价
其他类似问题
为您推荐:
您可能关注的推广
mingw的相关知识
其他1条回答
是编绎器啊,你还特意百度一下说明让我看啊:MinGW 编绎器 虽然集合了GNU工具。晕。你意思是说MinGW不是编绎器。 我了个去,但它还是说得上是编绎器啊??请百度?
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁二次元同好交流新大陆
扫码下载App
汇聚2000万达人的兴趣社区下载即送20张免费照片冲印
扫码下载App
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
笑一笑,人生将会变得更精彩!
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
//////////////////////////////////////////////////////////////////////////////////////环境:windows xp qt creator2.3.1 qt& opensource&4.7.3& (MinGw)
首按照qwt的install说明,编译好QWT,然后会出现个lib文件夹,将QWT下的LIB目录中的
这四个dll文件复制到C:\Qt\2010.05\qt\bin目录中,将*.a文件复制到C:\Qt\2010.05\qt\lib中,
最后将designer目录下的plugins/designer中的所有文件复制到C:\Qt\2010.05\qt\plugins\designer下,在C:\Qt\2010.05\qt\include下新建文件夹QWT,将QWT下的src里的头文件复制至
该文件夹中,做完上面几个步骤,在QTDesigner中可以使用QWT了。
然后要用的时候,把pro文件加入
DEFINES&&& += QT_DLL QWT_DLL
CONFIG(debug,debug|release):LIBS += -L”D:/Qt/4.7.3/lib/” -lqwtd
&&&&&&&&& else:LIBS += -L”D:/Qt/4.7.3/lib/” -lqwt
INCLUDEPATH+= D:/Qt/4.7.3/include/qwt
目录自己改,就可以用了。/////////////////////////////////////////////////////////////////////////////A) 简介
1、QWT是一个基于LGPL版权协议的开源项目,
可生成各种统计图。它为具有技术专业背景的程序提供GUI组件和一组实用类,其目标是以基于2D方式的窗体部件来显示数据, 数据源以数值,数组或一组浮点数等方式提供,
输出方式可以是Curves(曲线),Slider(滚动条),Dials(圆盘),Compasses(仪表盘)等等。该工具库基于Qt开发,所以也继承了Qt的跨平台特性。
2、QWT官方网址:
&&&& QWT6.0.1官方下载地址:
3、安装步骤如下:
注意:安装文件目录不许出现空格。详细请看QWT帮助文档 install
B) Win32/MSVC& VS2008+Qt4.7下的QWT安装方法打开Qt命令窗口Qt4.7.4
command prompt,进入你的解压文件目录:
cd&D:\qt\qwt &&
qmake&qwt.pro &&
--------------------- &&
cd&designer &&
qmake&designer.pro &&
--------------------- &&
cd&examples &&
qmake&examples.pro &&
nmake&&cd D:\qt\qwt
qmake qwt.pro
---------------------
cd designer
qmake designer.pro
---------------------
cd examples
qmake examples.pro
执行完上面的命令后,qwt组件就编译完成了(实际通过VS2008打开如上项目,可以自动编译,省手动敲命令了)。
1、将D:\Qt\Qwt\lib的qwtd.dll
、qwt.dll拷贝到C:\Qt\4.7.4\bin,将qwtd.lib、qwt.lib拷贝C:\Qt\4.7.4\lib(以qt安装在C:\Qt\4.7.4目录下为例)目录下。qwtd.dll是我们在Debug模式需要设置的lib文件
2、再将D:\Qt\Qwt\designer\plugins\designer目录下的qwt_designer_plugin.dll和qwt_designer_plugin.lib拷贝到C:\Qt\4.7.4\plugins\designer目录下。
3、再将D:\Qt\Qwt\include目录下的所有文件拷贝到C:\Qt\4.7.4\include目录下。这样就完成了Qwt的编译和配置工作了。
在Designer中绘制用户界面时,就可以看到界面左侧的ToolBox工具箱中增加了“Qwt”类型的控件。我们在设计用户界面时就可以像使用其它Qt控件一样使用Qwt组件了。程序中要增加库文件qwt.lib,在编译后会自动的把包含的头文件包含到程序中。
为了能顺利编译项目,我们必须在项目中引入头文件和lib文件。
在VS2008下打开项目,需要在项目属性中,加入头文件和lib文件。
& & All Configurations模式下在C/C++ /General/Addtional Include Directories
中加入C:\Qt\4.7.4\include\qwt
& & Debug配置模式下,在Linker/input/Additional Dependencies中加入 qwtd.lib
& & Release模式下:在Linker/input/Additional Dependencies中加入 qwt.lib
这样可以顺利编译,并可以出界面。
在QtCreator下打开工程文件pro需要加
LIBS += -L”C:\Qt\4.7.4\lib” -lqwtd INCLUDEPATH += C:\Qt\4.7.4\include\qwt/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
.先装SVN(因为QWT是用SVN进行版本控制的,只能用SVN下载)
3.打开qtcreator
projects-&找到解压后的qwt-6.0.1中的qwt.pro文件-&open。
5.build-&clean all-&run qmake。clean
all的作用是防止你以前编译失败的文件运行,该步主要生成了makefile文件。
6.rebuild qwt。
1)将源码lib目录下的*.dll【qwt-6.0.1\lib】复制到QT
SDK的bin目录下【2010.05\qt\bin】
2)将源码lib目录下的*.a【qwt-6.0.1\lib】复制到QT
SDK的lib目录下【2010.05\qt\lib】
3)将编译后生成目录里的&libqwt_designer_plugin.a
和&qwt_designer_plugin.dll 【qwt-build-desktop\designer\plugins\designer】复制到QT
SDK的designer目录下【2010.05\qt\plugins\designer】4)在QT
SDK的include目录里面新建个叫QWT的文件夹【2010.05\qt\include\QWT】,将源码src目录下所有文件复制进去这个文件夹
【qwt-6.0.1\src】
8.在qwt的工程文件中加入:
9.重新打开qtcreator
就可以看见qdesigner里面就有了QWT的控件了。
designer 左边 widget box 拖到最后 就有了 qwt 控件了
里运行 效果如下图
ARM-linux里运行效果如下图
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////linux下qwt安装qwt的安装与使用
  安装好qt开发环境后,先去其下载qwt库源代码。
  以我下载的qwt-6.0.1.zip为例,解压得到qwt-6.0.1。
1.安装qwt-6.0.1
  执行下面的命令:1 cd qwt-6.0.1
4 make install
   这样就完成qwt-6.0.1的安装了,安装的路径是/usr/local/qwt-6.0.1。
2.添加qwt库路径到链接器的路径当中
  使用了qwt库的程序会链接到libqwt.so库,而这个库安装路径并不在
系统环境变量内,所以要自己添加其路径。编辑~/.bashrc在最后一行加上:export LD_LIBRARY_PATH=/usr/local/qwt-6.0.1/lib
3.编译示例程序
  由于上面的编译过程没有自动编译示例程序,需要我们手动编译
所有示例程序都放在qwt-6.0.1/examples/目录下,执行下面的命令:1 cd examples
编译后的所有可执行程序就放在qwt/examples/bin/目录下。
4.在自己的程序中使用qwt库
  只需要修改一下.pro文件即可,加上如下两句:INCLUDEPATH += /usr/local/qwt-6.0.1/include
LIBS += -L"/usr/local/qwt-6.0.1/lib/" -lqwt
这样就可以在自己的程序中使用qwt提供的类了。///////////////////////////////////////////////////////////////////////////
求教高手Qwt
交叉编译出错(已解决)我把qwt移植到QT4.5中实现了,但是想移植到QtEmbeded-4.50-arm中,编译出错,我的初衷是想把基于qwt开发的QT界面,在2440开发板上显示,不知道哪位大侠做过,给点指导,这样大家才能更多的进步啊
先谢谢了!!出错信息:make[1]: 正在进入目录 `/opt/qwt-5.2.1/designer'compiling
qwt_designer_plugin.cppqwt_designer_plugin.cpp:17:40: error:
QDesignerFormEditorInterface: 没有该文件或目录qwt_designer_plugin.cpp:18:40: error:
QDesignerFormWindowInterface: 没有该文件或目录qwt_designer_plugin.cpp:19:46: error:
QDesignerFormWindowCursorInterface: 没有该文件或目录qwt_designer_plugin.cpp:20:29:
error: QExtensionManager: 没有该文件或目录In file included from
qwt_designer_plugin.cpp:23:qwt_designer_plugin.h:23:42: error:
QDesignerCustomWidgetInterface: 没有该文件或目录qwt_designer_plugin.h:24:38: error:
QDesignerTaskMenuExtension: 没有该文件或目录qwt_designer_plugin.h:25:29: error:
QExtensionFactory: 没有该文件或目录qwt_designer_plugin.h:32: error: expected
class-name before ‘{’ tokenqwt_designer_plugin.h:49: error:
‘QDesignerFormEditorInterface’ has not been
declaredqwt_designer_plugin.h:66: error: expected class-name before ‘{’
tokenqwt_designer_plugin.h:73: error: ‘QDesignerCustomWidgetInterface’ was
not declared in this scopeqwt_designer_plugin.h:73: error: template argument
1 is invalidqwt_designer_plugin.h:76: error:
‘QDesignerCustomWidgetInterface’ was not declared in this
scopeqwt_designer_plugin.h:76: error: template argument 1 is
invalidqwt_designer_plugin.h:210: error: expected class-name before ‘{’
tokenqwt_designer_plugin.h:214: error: expected `)' before ‘*’
tokenqwt_designer_plugin.h:210: warning: ‘class
QwtDesignerPlugin::TaskMenuFactory’ has virtual functions but non-virtual
destructorqwt_designer_plugin.h:223: error: expected class-name before ‘{’
tokenqwt_designer_plugin.cpp:102: error: variable or field ‘initialize’
declared voidqwt_designer_plugin.cpp:102: error: ‘int
QwtDesignerPlugin::CustomWidgetInterface::initialize’ is not a static member of
‘class QwtDesignerPlugin::CustomWidgetInterface’qwt_designer_plugin.cpp:102:
error: ‘QDesignerFormEditorInterface’ was not declared in this
scopeqwt_designer_plugin.cpp:102: error: ‘formEditor’ was not declared in
this scopeqwt_designer_plugin.cpp:103: error: expected ‘,’ or ‘;’ before ‘{’
tokenqwt_designer_plugin.cpp: In constructor
‘QwtDesignerPlugin::CustomWidgetCollectionInterface::CustomWidgetCollectionInterface(QObject*)’:qwt_designer_plugin.cpp:413:
error: request for member ‘append’ in
‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)-&QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’,
which is of non-class type ‘int’qwt_designer_plugin.cpp:414: error: request
for member ‘append’ in
‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)-&QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’,
which is of non-class type ‘int’qwt_designer_plugin.cpp:418: error: request
for member ‘append’ in
‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)-&QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’,
which is of non-class type ‘int’qwt_designer_plugin.cpp:419: error: request
for member ‘append’ in
‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)-&QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’,
which is of non-class type ‘int’qwt_designer_plugin.cpp:420: error: request
for member ‘append’ in
‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)-&QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’,
which is of non-class type ‘int’qwt_designer_plugin.cpp:421: error: request
for member ‘append’ in
‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)-&QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’,
which is of non-class type ‘int’qwt_designer_plugin.cpp:422: error: request
for member ‘append’ in
‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)-&QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’,
which is of non-class type ‘int’qwt_designer_plugin.cpp:423: error: request
for member ‘append’ in
‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)-&QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’,
which is of non-class type ‘int’qwt_designer_plugin.cpp:424: error: request
for member ‘append’ in
‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)-&QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’,
which is of non-class type ‘int’qwt_designer_plugin.cpp:425: error: request
for member ‘append’ in
‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)-&QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’,
which is of non-class type ‘int’qwt_designer_plugin.cpp:428: error: request
for member ‘append’ in
‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)-&QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’,
which is of non-class type ‘int’qwt_designer_plugin.cpp: At global
scope:qwt_designer_plugin.cpp:431: error: ‘QDesignerCustomWidgetInterface’
was not declared in this scopeqwt_designer_plugin.cpp:431: error: template
argument 1 is invalidqwt_designer_plugin.cpp:437: error: expected `)' before
‘*’ tokenqwt_designer_plugin.cpp: In member function ‘QObject*
QwtDesignerPlugin::TaskMenuFactory::createExtension(QObject*, const
QString&, QObject*) const’:qwt_designer_plugin.cpp:445: error:
‘QDesignerTaskMenuExtension’ was not declared in this
scopeqwt_designer_plugin.cpp:445: error: ‘Q_TYPEID’ was not declared in this
scopeqwt_designer_plugin.cpp:457: error: ‘QExtensionFactory’ has not been
declaredqwt_designer_plugin.cpp: In member function ‘void
QwtDesignerPlugin::TaskMenuExtension::applyProperties(const
QString&)’:qwt_designer_plugin.cpp:509: error:
‘QDesignerFormWindowInterface’ was not declared in this
scopeqwt_designer_plugin.cpp:509: error: ‘formWindow’ was not declared in
this scopeqwt_designer_plugin.cpp:510: error: ‘QDesignerFormWindowInterface’
is not a class or namespacemake[1]: *** [obj/qwt_designer_plugin.o] 错误
1make[1]:正在离开目录 `/opt/qwt-5.2.1/designer'make: ***
[sub-designer-make_default-ordered] 错误
问题已解决,交叉编译的时候在qwt的文件夹下,在qwtconfig.pri文件中注释掉#CONFIG&&&& +=
QwtDesigner即可
阅读(3417)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
loftPermalink:'',
id:'fks_',
blogTitle:'Qwt安装',
blogAbstract:'=======\n'
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}Qt学习一: Qt 在 win7 的安装和环境配置 - 推酷
Qt学习一: Qt 在 win7 的安装和环境配置
Qt 相关安装包下载地址
使用 Qt 用于开发图形用户界面应用程序, 需要下载Qt Open Source,目前的版本是5.3.2。另外还需要配置好 Qt 的编程环境,以及调试所用的调试器。一般有两种方案:
Qt Creator
Microsoft Visual Studio 2010
说明: MinGW 是
Minimalist GNU on Windows
的缩写,同 Cgywin 类似,是在 windows平台上的gnu c/c++编译器。在Qt5之后的版本,下载的OpenSource中已经包含了MinGW,OpengGL,无需另外下载和配置。但为了了解配置过程,以Qt4为例。
方案一:QT4.8.6 for Windows(Qt Creator+MinGW)
1、安装编译环境 Qt Creator 3.2.1 for Windows.exe。使用默认路径C:\Qt\qtcreator-321。
2、解压缩编译器工具MinGW-gcc440_1.zip。将文件夹mingw拷贝到路径C:\Qt\mingw。
3、解压缩调试器工具qtcreator-gdb-7.4-MINGW32_NT-6.1-i686.tar.gz。
解压得到的文件夹拷贝到路径C:\Qt下。
4、安装库文件 qt-win-opensource-4.8.6-mingw.exe。
QT默认的安装路径是C:\Qt\4.8.6,为了和其他版本区分开来,修改为C:\Qt\4.8.6_MinGW,避免把已安装的其他QT版本覆盖并破坏掉。(说明:支持windows环境的QT库有mingw,vs2010,vs2008等版本)
安装过程中会出现Find installed MinGW,此时指向路径C:\Qt\mingw。
5、以上步骤完成后,打开Qt Creator。
(1) 进入软件-&菜单-&工具-&选项-&构建和运行-&Qt版本-&手动设置
添加qmake路径C:\Qt\4.8.6_MinGW\bin\qmake.exe。
(2) 进入软件-&菜单-&工具-&选项-&构建和运行-&构建套件(Kit),把编译器选择为”MinGW”,
调试器选择gdb-7.4-MINGW32_NT-6.1-i686
管理-&编辑-&浏览-&指向调试器路径C:\Qt\gdb-7.4-MINGW32_NT-6.1\gdb-i686-mingw32.exe。
Qt版本选择为”Qt 4.8.6(4.8.6_MinGW)”。
(3) 进入软件-&菜单-&工具-&选项-&构建和运行-&编译器-&手动设置,添加MinGW,并设置相应路径。
编译器路径C:\Qt\mingw\bin\gcc.exe。
6、系统环境配置
C:\Qt\4.8.6\bin,C:\Qt\qtcreator-2.6.0\bin,C:\Qt\MinGW\bin目录添加到系统变量Path。
另外新建用户变量INCLUDE_PATH,值为C:\Qt\4.8.6\include,C:\Qt\MinGW\include。
LIB_PATH,值为C:\Qt\4.8.6\lib,C:\Qt\MinGW\lib。
7、测试安装是否成功 :& 百度搜索 Qt creator,& hello world即可。
说明: Qt5 MinGW可以省去MinGW,gdb的安装配置,省事不少。
方案二:QT4.8.5for Windows(VS2010+VS插件)
1、电脑已安装VS2010。
2、安装Qt for vs2010的库文件,下载运行qt-opensource-windows-x86-vs.6.exe。
QT默认的安装路径是C:\Qt\4.8.6,同理修改为C:\Qt\4.8.6_VS2010
3、安装VS2010的Qt插件,请运行qt-vs-addin-1.1.11-opensource.exe。
插件的安装路径是C:\ProgramFiles\Digia\Qt4VSAddin,按默认安装即可,无需修改。
安装成功后,打开vs,即可看到Qt菜单栏。
4、测试安装是否成功: 百度搜索Qt vs2010 helloworld即可。
相比之下,第二种方法非常简单,但是目前觉得使用Qt Creator开发,有可视化界面,适合入门者。
已发表评论数()
已收藏到推刊!
请填写推刊名
描述不能大于100个字符!
权限设置: 公开
仅自己可见
正文不准确
标题不准确
排版有问题
没有分页内容
图片无法显示
视频无法显示
与原文不一致

我要回帖

更多关于 qt mingw vs 区别 的文章

 

随机推荐