回复 46# whistler_wmz 的帖子
googlecode 开项目,还不太了解googlecode,这东西主要是发布的还是多人协作开发的?一会了解下。
Qt static版本编译失败了。好像是和我机器上多个VC版本有冲突,我就纳闷Qt和Vc有一毛钱关系。 你不是用vc编译的qt? 恩,我用qtCreator编译的,那样编译器应该是mingw,与我本机的vc没啥关系吧。 我是说,,我安装的是编译好的二进制文件。
没有从源码编译Qt。
做Qt程序的时候用的QtCreator
[ 本帖最后由 zy_sunshine 于 2009-12-28 15:38 编辑 ] C:\Qt\2009.05\qt>mingw32-make sub-src
cd src\tools\bootstrap\ && mingw32-make
mingw32-make: Entering directory `C:/Qt/2009.05/qt/src/tools/bootstrap'
mingw32-make -f Makefile.Release
mingw32-make: Entering directory `C:/Qt/2009.05/qt/src/tools/bootstrap'
g++ -c -O2 -frtti -fno-exceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BO
OTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_
NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO_QOBJEC
T -DQT_NO_STL -DQT_NO_SYSTEMLOCALE -DQT_NO_TEXTSTREAM -DQT_NO_THREAD -DQT_NO_UNI
CODETABLES -DQT_NO_USING_NAMESPACE -DQT_NODLL -I"..\..\..\include" -I"..\..\..\i
nclude\QtCore" -I"..\..\..\include\QtXml" -I"..\..\3rdparty\zlib" -I"d:\Program
Files\Microsoft Visual Studio\VC98\atl\include" -I"d:\Program Files\Microsoft Vi
sual Studio\VC98\mfc\include" -I"d:\Program Files\Microsoft Visual Studio\VC98\i
nclude" -I"..\..\..\mkspecs\win32-g++" -o tmp\obj\release_static\qisciicodec.o .
.\..\corelib\codecs\qisciicodec.cpp
In file included from d:\Program Files\Microsoft Visual Studio\VC98\include/yval
s.h:4,
from d:\Program Files\Microsoft Visual Studio\VC98\include/xstd
def:10,
from d:\Program Files\Microsoft Visual Studio\VC98\include/exce
ption:22,
from d:\Program Files\Microsoft Visual Studio\VC98\include/new:
9,
from ..\..\..\include/QtCore/../../src/corelib/tools/qlist.h:54
,
from ..\..\..\include/QtCore/qlist.h:1,
from ..\..\..\include/QtCore/../../src/corelib/codecs/qtextcode
c.h:46,
from ..\..\..\include/QtCore/qtextcodec.h:1,
from ..\..\corelib\codecs\/qisciicodec_p.h:56,
from ..\..\corelib\codecs\qisciicodec.cpp:41:
d:\Program Files\Microsoft Visual Studio\VC98\include/use_ansi.h:42: warning: ig
noring #pragma comment
In file included from d:\Program Files\Microsoft Visual Studio\VC98\include/xstd
def:10,
from d:\Program Files\Microsoft Visual Studio\VC98\include/exce
ption:22,
from d:\Program Files\Microsoft Visual Studio\VC98\include/new:
9,
from ..\..\..\include/QtCore/../../src/corelib/tools/qlist.h:54
,
from ..\..\..\include/QtCore/qlist.h:1,
from ..\..\..\include/QtCore/../../src/corelib/codecs/qtextcode
c.h:46,
from ..\..\..\include/QtCore/qtextcodec.h:1,
from ..\..\corelib\codecs\/qisciicodec_p.h:56,
from ..\..\corelib\codecs\qisciicodec.cpp:41:
d:\Program Files\Microsoft Visual Studio\VC98\include/yvals.h:19: warning: ignor
ing #pragma warning
d:\Program Files\Microsoft Visual Studio\VC98\include/yvals.h:20: warning: ignor
ing #pragma warning
d:\Program Files\Microsoft Visual Studio\VC98\include/yvals.h:21: warning: ignor
ing #pragma warning
In file included from ..\..\..\include/QtCore/../../src/corelib/global/qglobal.h
:45,
from ..\..\..\include/QtCore/qglobal.h:1,
from ..\..\..\include/QtCore/../../src/corelib/tools/qchar.h:45
,
from ..\..\..\include/QtCore/qchar.h:1,
from ..\..\..\include/QtCore/../../src/corelib/tools/qstring.h:
45,
from ..\..\..\include/QtCore/qstring.h:1,
from ..\..\..\include/QtCore/../../src/corelib/codecs/qtextcode
c.h:45,
from ..\..\..\include/QtCore/qtextcodec.h:1,
from ..\..\corelib\codecs\/qisciicodec_p.h:56,
from ..\..\corelib\codecs\qisciicodec.cpp:41:
d:\Program Files\Microsoft Visual Studio\VC98\include/stddef.h:99: error: redecl
aration of C++ built-in type 'wchar_t'
In file included from d:\Program Files\Microsoft Visual Studio\VC98\include/new:
9,
from ..\..\..\include/QtCore/../../src/corelib/tools/qlist.h:54
,
from ..\..\..\include/QtCore/qlist.h:1,
from ..\..\..\include/QtCore/../../src/corelib/codecs/qtextcode
c.h:46,
from ..\..\..\include/QtCore/qtextcodec.h:1,
from ..\..\corelib\codecs\/qisciicodec_p.h:56,
from ..\..\corelib\codecs\qisciicodec.cpp:41:
d:\Program Files\Microsoft Visual Studio\VC98\include/exception: In member funct
ion 'virtual void std::bad_exception::_Doraise() const':
d:\Program Files\Microsoft Visual Studio\VC98\include/exception:74: error: excep
tion handling disabled, use -fexceptions to enable
mingw32-make: *** Error 1
mingw32-make: Leaving directory `C:/Qt/2009.05/qt/src/tools/bootstrap'
mingw32-make: *** Error 2
mingw32-make: Leaving directory `C:/Qt/2009.05/qt/src/tools/bootstrap'
mingw32-make: *** Error 2
:shock: :shock: :shock:
这个东西直接用win32 的 dialog做一个吧。。
Qt4 实在太大了.... 第二遍,还是这样,无奈了。到底是什么原理,不是用的mingw编译的嘛,为啥扯上了VC?
回复 54# nihui 的帖子
唉,这不是想着学习一下Qt跨平台吗。况且,,你说win32 的 dialog 是什么?用MFC做个? 用win32做dialog还行,
要是做treeview就完了,那还不得麻烦死 建议用 VB 做。超级简单的……