• 7584阅读
  • 0回复

安装qt4.1.0出错,帮忙看看 [复制链接]

上一主题 下一主题
离线sopq
 

只看楼主 正序阅读 楼主  发表于: 2006-03-22
在坛子里下载了,qt-x11-opensource-src-4.1.0.tar.gz
./configure时,出现下列错误,请问是什么原因
g++ -c -o qmetatype.o -pipe -DQMAKE_OPENSOURCE_EDITION -g -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/home/qt-4.1.0/src/corelib/arch/generic -I/home/qt-4.1.0/include -I/home/qt-4.1.0/include/QtCore -I/home/qt-4.1.0/include -I/home/qt-4.1.0/include/QtCore -I/home/qt-4.1.0/src/corelib/global -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS -I/home/qt-4.1.0/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT /home/qt-4.1.0/src/corelib/kernel/qmetatype.cpp
g++ -c -o qsettings.o -pipe -DQMAKE_OPENSOURCE_EDITION -g -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/home/qt-4.1.0/src/corelib/arch/generic -I/home/qt-4.1.0/include -I/home/qt-4.1.0/include/QtCore -I/home/qt-4.1.0/include -I/home/qt-4.1.0/include/QtCore -I/home/qt-4.1.0/src/corelib/global -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS -I/home/qt-4.1.0/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT /home/qt-4.1.0/src/corelib/io/qsettings.cpp
g++ -c -o qvariant.o -pipe -DQMAKE_OPENSOURCE_EDITION -g -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/home/qt-4.1.0/src/corelib/arch/generic -I/home/qt-4.1.0/include -I/home/qt-4.1.0/include/QtCore -I/home/qt-4.1.0/include -I/home/qt-4.1.0/include/QtCore -I/home/qt-4.1.0/src/corelib/global -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS -I/home/qt-4.1.0/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT /home/qt-4.1.0/src/corelib/kernel/qvariant.cpp
/home/qt-4.1.0/src/corelib/kernel/qvariant.cpp: In method `const void *QVariant::constData () const':
/home/qt-4.1.0/src/corelib/kernel/qvariant.cpp:2523: could not convert `this' to `void *'
gmake: *** [qvariant.o] Error 1

我将qvariant.cpp文件打开,隐去了2523行的代码(我知道不应该这么做,恐怕会给以后编程带来问题),./configure命令算是完成了,然后我运行gmake,之后又出现错误
NO_LIBRARY -DQT_NO_STL -DQT_NO_COMPRESS -DQT_NO_DATASTREAM -DQT_NO_TEXTSTREAM -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_THREAD -DQT_NO_REGEXP -DQT_NO_QOBJECT -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../mkspecs/linux-g++ -I. -I../../corelib/arch/generic -I../../../include -I. -I../../../include/QtCore -I. -o release-shared/moc.o moc.cpp
g++ -c -pipe -O2 -Wall -W -DQT_EDITION=QT_EDITION_DESKTOP -DQT_BOOTSTRAPPED -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_LIBRARY -DQT_NO_STL -DQT_NO_COMPRESS -DQT_NO_DATASTREAM -DQT_NO_TEXTSTREAM -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_THREAD -DQT_NO_REGEXP -DQT_NO_QOBJECT -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../mkspecs/linux-g++ -I. -I../../corelib/arch/generic -I../../../include -I. -I../../../include/QtCore -I. -o release-shared/preprocessor.o preprocessor.cpp
preprocessor.cpp: In method `Symbol &Symbol::operator= (const Symbol
&)':
symbols.h:39: `Symbol::{anonymous union} &Symbol::{anonymous
union}::operator= (const Symbol::{anonymous union} &)' is inaccessible
preprocessor.cpp:710: within this context
gmake[2]: *** [release-shared/preprocessor.o] Error 1
gmake[2]: Leaving directory `/home/qt-4.1.0/src/tools/moc'
gmake[1]: *** [sub-tools-moc-make_default-ordered] Error 2
gmake[1]: Leaving directory `/home/qt-4.1.0/src'
gmake: *** [sub-src-make_default-ordered] Error 2
请问这是什么原因哪
[ 此贴被XChinux在2006-03-22 16:27重新编辑 ]
快速回复
限100 字节
 
上一个 下一个