« Home | 1st working model (OLPC) » | 如何用RPM檔編譯Fedora core 5的kernel » | X Window出現could not open default font 'fixed' » | Nokia 770使用經驗及中文問題 » | 國內各種Linux套件(含Kernel)下載的好地方 » | Meld: Linux上圖形化的diff/Merge工具 » | 另一個新站Linux/Cross-Reference Linux » | Zone Bit Recording » | Negroponte says Linux too 'Fat' » | GSTREAMER : Linux版的 DirectShow » 

2006/05/24 

QT embedded的Compiler Time錯誤

QT embedded的Compiler Time錯誤
QT Embedded版本:qt-embedded-free-3.0.2.tar.gz
同事用2.x版也得到同樣的錯誤
環境:Fedora Core 5 (FC4亦同)
make[1]: Entering directory `/work/qt/qt-embedded-free-3.0.2'
cd qmake && make
make[2]: Entering directory `/work/qt/qt-embedded-free-3.0.2/qmake'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/work/qt/qt-embedded-free-3.0.2/qmake'
cd src/moc && make
make[2]: Entering directory `/work/qt/qt-embedded-free-3.0.2/src/moc'
make[2]: Nothing to be done for `first'.
make[2]: Leaving directory `/work/qt/qt-embedded-free-3.0.2/src/moc'
cd src && make
make[2]: Entering directory `/work/qt/qt-embedded-free-3.0.2/src'
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -fPIC -DQT_NO_DEBUG -DQT_NO_CHECK -DQT_NO_QWS_DEPTH_8GRAYSCALE -DQT_NO_QWS_VGA_16 -DQT_NO_QWS_DEPTH_4 -DQT_NO_QWS_DEPTH_24 -DQT_NO_QWS_DEPTH_32 -DQT_NO_QWS_VOODOO3 -DQT_NO_QWS_MACH64 -DQT_NO_QWS_REPEATER -DQT_NO_QWS_MATROX -DQT_NO_QWS_VNC -DQT_NO_NIS -DQT_NO_REMOTE -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_MAC -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_COMPACT -I3rdparty/freetype/src -I3rdparty/freetype/include -I3rdparty/freetype/builds/unix -I3rdparty/freetype2/include -I3rdparty/libpng -I3rdparty/zlib -I3rdparty/libpng -I3rdparty/zlib -I/work/qt/qt-embedded-free-3.0.2/include -I.moc/release-emb-x86/ -I/work/qt/qt-embedded-free-3.0.2/mkspecs/qws/linux-x86-g++ -o .obj/release-emb-x86/allmoc.o .moc/release-emb-x86/allmoc.cpp
/work/qt/qt-embedded-free-3.0.2/include/qjpunicode.h:82: warning: ‘class QJpUnicodeConv’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/qnetworkprotocol.h:58: warning: ‘class QNetworkProtocolFactoryBase’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/qpolygonscanner.h:48: warning: ‘class QPolygonScanner’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/qlistbox.h:191: warning: unused parameter ‘i’
/work/qt/qt-embedded-free-3.0.2/include/qsortedlist.h: In destructor ‘QSortedList::~QSortedList()’:
/work/qt/qt-embedded-free-3.0.2/include/qsortedlist.h:51: error: there are no arguments to ‘clear’ that depend on a template parameter, so a declaration of ‘clear’ must be available
/work/qt/qt-embedded-free-3.0.2/include/qsortedlist.h:51: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/work/qt/qt-embedded-free-3.0.2/include/qsqldatabase.h: At global scope:
/work/qt/qt-embedded-free-3.0.2/include/qsqldatabase.h:63: warning: ‘class QSqlDriverCreatorBase’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/qasyncimageio.h:48: warning: ‘class QImageConsumer’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/qtooltip.h:86: warning: ‘class QToolTip’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/qfiledialog.h:78: warning: ‘class QFilePreview’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/qxml.h:221: warning: ‘class QXmlReader’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/qxml.h:406: warning: ‘class QXmlContentHandler’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/qxml.h:423: warning: ‘class QXmlErrorHandler’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/qxml.h:432: warning: ‘class QXmlDTDHandler’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/qxml.h:440: warning: ‘class QXmlEntityResolver’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/qxml.h:447: warning: ‘class QXmlLexicalHandler’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/qxml.h:460: warning: ‘class QXmlDeclHandler’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qcom_p.h:44: warning: ‘struct QUnknownInterface’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qcom_p.h:58: warning: ‘struct QDispatchInterface’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qcom_p.h:150: warning: ‘struct QObjectInterface’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qcom_p.h:160: warning: ‘struct QComponentInformationInterface’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qcom_p.h:173: warning: ‘struct QComponentFactoryInterface’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qcom_p.h:183: warning: ‘struct QLibraryInterface’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qcom_p.h:195: warning: ‘struct QFeatureListInterface’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qcom_p.h:205: warning: ‘struct QComponentRegistrationInterface’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qucom_p.h:69: warning: ‘struct QUBuffer’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qucom_p.h:77: warning: ‘struct QUType’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qucom_p.h:104: warning: ‘struct QUType_Null’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qucom_p.h:287: warning: ‘struct QUType_enum’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qucom_p.h:307: warning: ‘struct QUType_ptr’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qucom_p.h:326: warning: ‘struct QUType_iface’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qucom_p.h:345: warning: ‘struct QUType_idisp’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qucom_p.h:364: warning: ‘struct QUType_bool’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qucom_p.h:384: warning: ‘struct QUType_int’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qucom_p.h:404: warning: ‘struct QUType_double’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qucom_p.h:424: warning: ‘struct QUType_charstar’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qucom_p.h:446: warning: ‘struct QUType_QString’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qimageformatinterface_p.h:18: warning: ‘struct QImageFormatInterface’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qsqldriverinterface_p.h:62: warning: ‘struct QSqlDriverFactoryInterface’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qstyleinterface_p.h:19: warning: ‘struct QStyleFactoryInterface’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qtextcodecinterface_p.h:21: warning: ‘struct QTextCodecFactoryInterface’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qucomextra_p.h:53: warning: ‘struct QUType_QVariant’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/private/qwidgetinterface_p.h:60: warning: ‘struct QWidgetFactoryInterface’ has virtual functions but non-virtual destructor
/work/qt/qt-embedded-free-3.0.2/include/qgfxraster_qws.h:107: warning: unused parameter ‘t’
/work/qt/qt-embedded-free-3.0.2/include/qgfxraster_qws.h:107: warning: unused parameter ‘c’
/work/qt/qt-embedded-free-3.0.2/include/qgfxraster_qws.h:107: warning: unused parameter ‘swc’
/work/qt/qt-embedded-free-3.0.2/include/qgfxraster_qws.h:107: warning: unused parameter ‘ot’
/work/qt/qt-embedded-free-3.0.2/include/qgfxraster_qws.h:107: warning: unused parameter ‘lo’
/work/qt/qt-embedded-free-3.0.2/include/qwindowsystem_qws.h:201: warning: ‘class QWSServer::KeyboardFilter’ has virtual functions but non-virtual destructor
make[2]: *** [.obj/release-emb-x86/allmoc.o] Error 1
make[2]: Leaving directory `/work/qt/qt-embedded-free-3.0.2/src'
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory `/work/qt/qt-embedded-free-3.0.2'
make: *** [init] Error 2

這個問題在於Fedora Core 5使用了
#g++ -v
gcc version 4.1.0
只要換成
#g++32 -v
gcc version 3.2.3就可以啦

g++32包含在 compat-gcc-32-c++-3.2.3-55.fc5.rpm中

About me

  • I'm Martin's blog 馬汀的部落格
  • From 中壢市, 桃園縣, Taiwan
  • -----BEGIN GEEK CODE BLOCK----- Version: 3.1 Comment: For info see http://www.geekcode.com GC/CS/CC/E/IT/TW d- s a C++++ L++++ P+ L++++ E--- W+++ N++ o+ K- w+++ O- M- V- PS+ PE++ Y+ PGP+ t 5- X++ R- tv- b+++ DI+ D-- G e+++ h+ r+ y+ z? ------END GEEK CODE BLOCK------ /**************************** 旅行是我生命的動力 它的樂趣從計劃旅行開始 我樂於分享旅行及Linux Kernel上的每一件事. ****************************/
My profile