• 7443阅读
  • 3回复

请教QT/E2.3.10安装问题 [复制链接]

上一主题 下一主题
离线y11zyg
 

只看楼主 倒序阅读 楼主  发表于: 2006-10-12
请教QT/E2.3.10安装问题
我安装qt-embedded-2.3.10
先装了tmake1.11,并设置了环境变量(凭经验我认为这两步都没问题)
但是configure后make出错了,出错信息如下:

/usr/local/qt-2.3.10/include/qwindowsystem_qws.h:221: 警告:‘class QWSServer::KeyboardFilter’ has virtual functions but non-virtual destructor
/usr/local/qt-2.3.10/include/qwindowsystem_qws.h:230: 错误:‘QWSInputMethod’ 未声明
/usr/local/qt-2.3.10/include/qwindowsystem_qws.h:237: 错误:‘QWSGestureMethod’ 未声明

请教大家这是为什么?
离线octopia
只看该作者 1楼 发表于: 2006-10-16
你把你configure的选项贴出来看看
Sometimes I am even higher than a mountain!
离线dgwayne
只看该作者 2楼 发表于: 2006-10-20
你好,请问关于Qt/Embedded 2.3.7 的安装问题
在Fedora4.0的Linux 系统里
先安装tmake1.11
然后安装安装Qt/Embedded 2.3.7
在Linux 命令模式下运行以下命令:
tar xfz qt-embedded-2.3.7.tar.gz
cd qt-2.3.7
export QTDIR=$PWD
export QTEDIR=$QTDIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/ lib:$LD_LIBRARY_PATH
./configure -qconfig -qvfb -depths 4,8,16,32
make sub-src
cd ..

为什么make配置的时候总不成功,出现错误。
因为这里没有设置好,后面的交叉编译不能做下去.请问如何解决这个问题?

[root@localhost qt-2.3.7]# make sub-src
cd src/moc; make
make[1]: Entering directory `/root/qt-2.3.7/src/moc'
g++ -c -I/root/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o mocgen.o mocgen.cpp
/root/qt-2.3.7/include/qdatetime.h:51: 警告:‘class QDate’ has virtual functions but non-virtual destructor
y.tab.c: In function ‘int yyparse()’:
y.tab.c:3126: 警告:建议在用作真值的赋值语句前后加上括号
y.tab.c:3174: 警告:标号 ‘yyerrlab’ 定义后未使用
y.tab.c:3169: 警告:标号 ‘yynewerror’ 定义后未使用
mocgen.cpp: At global scope:
mocgen.cpp:3: 警告:‘yysccsid’ defined but not used
g++ -c -I/root/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qbuffer.o ../tools/qbuffer.cpp
g++ -c -I/root/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qcollection.o ../tools/qcollection.cpp
g++ -c -I/root/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qcstring.o ../tools/qcstring.cpp
g++ -c -I/root/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qdatastream.o ../tools/qdatastream.cpp
g++ -c -I/root/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qdatetime.o ../tools/qdatetime.cpp
../tools/qdatetime.h:51: 警告:‘class QDate’ has virtual functions but non-virtual destructor
g++ -c -I/root/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qfile.o ../tools/qfile.cpp
g++ -c -I/root/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qgarray.o ../tools/qgarray.cpp
g++ -c -I/root/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qgdict.o ../tools/qgdict.cpp
g++ -c -I/root/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qglist.o ../tools/qglist.cpp
g++ -c -I/root/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qglobal.o ../tools/qglobal.cpp
g++ -c -I/root/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qgvector.o ../tools/qgvector.cpp
g++ -c -I/root/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qiodevice.o ../tools/qiodevice.cpp
g++ -c -I/root/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qregexp.o ../tools/qregexp.cpp
g++ -c -I/root/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qstring.o ../tools/qstring.cpp
g++ -c -I/root/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qtextcodec.o ../tools/qtextcodec.cpp
g++ -c -I/root/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qtextstream.o ../tools/qtextstream.cpp
g++ -c -I/root/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qutfcodec.o ../tools/qutfcodec.cpp
g++ -c -I/root/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o qfile_unix.o ../tools/qfile_unix.cpp
g++   -o ./moc mocgen.o qbuffer.o qcollection.o qcstring.o qdatastream.o qdatetime.o qfile.o qgarray.o qgdict.o qglist.o qglobal.o qgvector.o qiodevice.o qregexp.o qstring.o qtextcodec.o qtextstream.o qutfcodec.o qfile_unix.o   -lm
make[1]: Leaving directory `/root/qt-2.3.7/src/moc'
rm -f bin/moc
cp src/moc/moc bin/moc
make -f src-mt.mk
make[1]: Entering directory `/root/qt-2.3.7'
(not building threaded Qt)
make[1]: Leaving directory `/root/qt-2.3.7'
cd src; make
make[1]: Entering directory `/root/qt-2.3.7/src'
g++ -c -I/root/qt-2.3.7/include -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -fPIC -DQT_NO_IMAGEIO_MNG -DQT_NO_QWS_VOODOO3 -DQT_NO_QWS_MACH64 -DQT_NO_QWS_MATROX -DQT_NO_QWS_VNC -DQT_NO_QWS_VGA_16 -DQT_NO_QWS_DEPTH_24 -DQT_BUILTIN_GIF_READER=0 -DQT_NO_IMAGEIO_JPEG -DQT_NO_IMAGEIO_MNG -DQT_NO_SM_SUPPORT -I/root/qt-2.3.7/src/3rdparty/zlib -I/root/qt-2.3.7/src/3rdparty/libpng -I3rdparty/freetype/src -I3rdparty/freetype/include -I3rdparty/freetype/builds/unix -I3rdparty/kernel -I3rdparty/tools -o allmoc.o allmoc.cpp
/root/qt-2.3.7/include/qdatetime.h:51: 警告:‘class QDate’ has virtual functions but non-virtual destructor
/root/qt-2.3.7/include/qjpunicode.h:91: 警告:‘class QJpUnicodeConv’ has virtual functions but non-virtual destructor
/root/qt-2.3.7/include/qsortedlist.h: In destructor ‘QSortedList<type>::~QSortedList()’:
/root/qt-2.3.7/include/qsortedlist.h:51: 错误:there are no arguments to ‘clear’ that depend on a template parameter, so a declaration of ‘clear’ must be available
/root/qt-2.3.7/include/qsortedlist.h:51: 错误:(如果您使用 ‘-fpermissive’,G++ 会接受您的代码,但是允许使用未定义的名称是过时的风格)
/root/qt-2.3.7/include/qasyncimageio.h: At global scope:
/root/qt-2.3.7/include/qasyncimageio.h:48: 警告:‘class QImageConsumer’ has virtual functions but non-virtual destructor
kernel/qnetworkprotocol.h:60: 警告:‘class QNetworkProtocolFactoryBase’ has virtual functions but non-virtual destructor
/root/qt-2.3.7/include/qpolygonscanner.h:48: 警告:‘class QPolygonScanner’ has virtual functions but non-virtual destructor
/root/qt-2.3.7/include/qrangecontrol.h:52: 警告:‘class QRangeControl’ has virtual functions but non-virtual destructor
/root/qt-2.3.7/include/qtooltip.h:87: 警告:‘class QToolTip’ has virtual functions but non-virtual destructor
/root/qt-2.3.7/include/qfiledialog.h:77: 警告:‘class QFilePreview’ has virtual functions but non-virtual destructor
/root/qt-2.3.7/include/qxml.h:214: 警告:‘class QXmlReader’ has virtual functions but non-virtual destructor
/root/qt-2.3.7/include/qxml.h:402: 警告:‘class QXmlContentHandler’ has virtual functions but non-virtual destructor
/root/qt-2.3.7/include/qxml.h:419: 警告:‘class QXmlErrorHandler’ has virtual functions but non-virtual destructor
/root/qt-2.3.7/include/qxml.h:428: 警告:‘class QXmlDTDHandler’ has virtual functions but non-virtual destructor
/root/qt-2.3.7/include/qxml.h:436: 警告:‘class QXmlEntityResolver’ has virtual functions but non-virtual destructor
/root/qt-2.3.7/include/qxml.h:443: 警告:‘class QXmlLexicalHandler’ has virtual functions but non-virtual destructor
/root/qt-2.3.7/include/qxml.h:456: 警告:‘class QXmlDeclHandler’ has virtual functions but non-virtual destructor
/root/qt-2.3.7/include/qwindowsystem_qws.h:220: 警告:‘class QWSServer::KeyboardFilter’ has virtual functions but non-virtual destructor
make[1]: *** [allmoc.o] 错误 1
make[1]: Leaving directory `/root/qt-2.3.7/src'
make: *** [sub-src] 错误 2
离线shiroki

只看该作者 3楼 发表于: 2006-10-20
你的包是哪里来的。 是标准的官方包吗
我觉得是包本身的问题

2。3。7的那个可能是编译器版本太高了
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
快速回复
限100 字节
 
上一个 下一个