首页| 论坛| 消息

回复: QT安装后编译任何东西都出错【已解决】
#6 [paranoid 04-28 08:39]
qt2010应该已经是基于mingw4.4了,看你的出错信息mingw还是3.4.5,是不是你原来单独安装过mingw3.4.5?
#7 [yzpdsg 04-28 13:06]
哦,是的!我装codeblocks时安装上的!可是如果卸载了codeblocks就不能用了吧?
#8 [paranoid 04-28 13:20]
你现在有两个mingw版本,一个是你原来装的c:\mingw,一个是qt2010自带的,具体位置记不清了,大概是qt2010\qt\mingw,你自己查看一下。
可以给两个不同的IDE(qtcreator,codeblocks)指定不同的mingw版本,你看一下qtcreator的设置,找到指定mingw目录的地方,修改到正确的目录。
#9 [yzpdsg 04-28 17:39]
我去看了。在tools->options->Qt4->qt versions中关于mingw的设置如下:C:\Qt\2010.02.1\mingw,应该没问题吧。可是编译时还是有错误。可是这回信息有改变:
C:/Users/phoenix/Desktop/test/../../../../Qt/2010.02.1/qt/include/QtCore/../../src/corelib/tools/qmap.h:50: from ..\..\..\..\Qt\2010.02.1\qt\include/QtCore/../../src/corelib/tools/qmap.h:50,
C:/Users/phoenix/Desktop/test/../../../../Qt/2010.02.1/qt/include/QtCore/qmap.h:1: from ..\..\..\..\Qt\2010.02.1\qt\include/QtCore/qmap.h:1,
C:/Users/phoenix/Desktop/test/../../../../Qt/2010.02.1/qt/include/QtCore/../../src/corelib/kernel/qvariant.h:49: from ..\..\..\..\Qt\2010.02.1\qt\include/QtCore/../../src/corelib/kernel/qvariant.h:49,
C:/Users/phoenix/Desktop/test/../../../../Qt/2010.02.1/qt/include/QtCore/qvariant.h:1: from ..\..\..\..\Qt\2010.02.1\qt\include/QtCore/qvariant.h:1,
C:/Users/phoenix/Desktop/test/../../../../Qt/2010.02.1/qt/include/QtCore/QVariant:1: from ..\..\..\..\Qt\2010.02.1\qt\include/QtCore/QVariant:1,
C:/Users/phoenix/Desktop/test/ui_mainwindow.h:13: from ui_mainwindow.h:13,
。。。。。
我的mingw应该设置对了吧(不是3.4.5了),但是为什么还是有40个错误呢?而且错误的内容都相同。。。
#10 [yzpdsg 04-28 22:25]
找到问题的原因了。就是c:\mingw这个编译器搞的鬼。现在将它删除了,总算编译正常了,但是eclipse又不能用了。。。设置了半天还是有问题。那位仁兄能解决这个问题呢?

<< 1 2 3 >> (2/3)

回复 发表
主题 版块