Qt╱QTE 编译安装问题与解决方法.doc_第1页
Qt╱QTE 编译安装问题与解决方法.doc_第2页
Qt╱QTE 编译安装问题与解决方法.doc_第3页
Qt╱QTE 编译安装问题与解决方法.doc_第4页
Qt╱QTE 编译安装问题与解决方法.doc_第5页
免费预览已结束,剩余2页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Qt/QTE 编译安装问题与解决方法收藏 编译Qt/Embedded 编译过程出现错误:error0bash : tmake command not found tmake 命令路径没有添加到环境变量中修改: export PATH=$TMAKEDIR/bin:$PATHerror 1/root/2410clQt/qt-2.3.2/include/qvaluestack.h:57: 错误:不能将int remove(const char*)的实参1从QValueListIteratorQMap 转换到const char*/root/2410clQt/qt-2.3.2/include/qvaluestack.h: In member function T QValueStack:pop() with T = QString:xml/qxml.cpp:2502: instantiated from here/root/2410clQt/qt-2.3.2/include/qvaluestack.h:57: 错误:不能将int remove(const char*)的实参1从QValueListIterator转换到const char*make2: * xml/qxml.o 错误 1make2: Leaving directory /root/2410clQt/qt-2.3.2/srcmake1: * sub-src 错误 2make1: Leaving directory /root/2410clQt/qt-2.3.2make: * init 错误 2solving :gedit $QTDIR/include/qvaluestack.h &将remove( this-fromLast() );改为this-remove( this-fromLast() ); error2: QWSInputMethod has not been declared修正方法:cd $QTDIR/src/kernel /$DTDIR=/home/opiehome/qt-2.3.10gedit qwindowsystem_qws.h在前面增加以下两行class QWSInputMethod;class QWSGestureMethod;error:kernel/qpixmapcache.cpp:125:57: 错误:asm/page.h:没有那个文件或目录In file included from kernel/qgfx_qws.h:39, from kernel/qpixmapcache.cpp:112:kernel/qimage.h: In member function int QImageTextKeyLang:operator(const QImageTextKeyLang&) const:kernel/qimage.h:58: 警告:建议在 | 的操作数中出现的 & 前后加上括号kernel/qpixmapcache.cpp: In constructor QSharedMemoryManager:QSharedMemoryManager():kernel/qpixmapcache.cpp:539: 错误:PAGE_SIZE在此作用域中尚未声明kernel/qpixmapcache.cpp:539: 错误:PAGE_MASK在此作用域中尚未声明kernel/qpixmapcache.cpp: In member function void QSharedMemoryManager:internal_free(QSMemPtr):kernel/qpixmapcache.cpp:773: 错误:PAGE_SIZE在此作用域中尚未声明kernel/qpixmapcache.cpp:773: 错误:PAGE_MASK在此作用域中尚未声明make2: * kernel/qpixmapcache.o 错误 1make2: Leaving directory /root/2410clQt/qt-2.3.10/srcmake1: * sub-src 错误 2make1: Leaving directory /root/2410clQt/qt-2.3.10make: * init 错误 2solving :rootlocalhost kernel# cp /home/wang/linux/include/asm/page.h /usr/include/asm/将宿主机内核源码中page.h文件拷贝到 /usr/include/asm/中error3 P143while trying the forth step:export QTDIR=$QTEDIRexport PATH=$QTEDIR/bin:$PATHexport LD_LIBRARY_PATH=$QTEDIR/lib:$QT2DIR/lib:$LD_LIBRARY_PATHrootlocalhost launcher# $QTEDIR/bin/qvfb -width 640 -height 480/root/2410clQt/qt-2.3.10/bin/qvfb: error while loading shared libraries: libstdc+.so.5: cannot open shared object file: No such file or directory then:I try:rootlocalhost lib# pwd/usr/lib rootlocalhost lib# ls libstdc+.so* libstdc+.so.6 libstdc+.so.6.0.10there is no libstdc+.so.5: so i try to create a link rootlocalhost lib# ln -s libstdc+.so.6 libstdc+.so.5 but new problem exist;rootlocalhost launcher# $QTEDIR/bin/qvfb -width 640 -height 480/root/2410clQt/qt-2.3.10/bin/qvfb: /usr/lib/libstdc+.so.5: version GLIBCPP_3.2 not found (required by /root/2410clQt/qt-2.3.10/bin/qvfb)/root/2410clQt/qt-2.3.10/bin/qvfb: /usr/lib/libstdc+.so.5: version CXXABI_1.2 not found (required by /root/2410clQt/qt-2.3.10/bin/qvfb) so i download this low version:rm /usr/lib/libstdc+.so.5 然后下载:/centos/4/os/i386/CentOS/RPMS/compat-libstdc+-33-3.2.3-47.3.i386.rpm 再安装 rpm -ivh compat-libstdc+-33-3.2.3-47.3.i386.rpm result:rootlocalhost lib# ls libstdc+.so*libstdc+.so.5.0.7 libstdc+.so.6 libstdc+.so.6.0.10rootlocalhost lib# ln -s libstdc+.so.5.0.7 libstdc+.so.5rootlocalhost lib# nowrootlocalhost launcher# $QTEDIR/bin/qvfb -width 640 -height 480 OK, virtual frambuffer start successfullythen , i open a new shell window.and try to start a example programrootlocalhost john# cd /2410clQtrootlocalhost 2410clQt# export QTEDIR=$PWD/qt-2.3.10rootlocalhost 2410clQt# cd $QTEDIR/examples/launcherrootlocalhost launcher# ./launcher -qwsCannot find font definition file /lib/fonts/fontdir - is $QTDIR set correctly?rootlocalhost launcher# now try to solving this new problem byrootlocalhost launcher# export QTDIR=$QTEDIRrootlocalhost launcher# export PATH=$QTEDIR/bin:$PATHrootlocalhost launcher# export LD_LIBRARY_PATH=$QTEDIR/lib:$QT2DIR/lib:$LD_LIBRARY_PATHrootlocalhost launcher# ./launcher -qwslibpng error: Valid palette required for paletted imagesrootlocalhost launcher# it works correctly ,but still have an error.maybe, following link is associated with this problem , but now ,i am too tired to continue my work today. /qt4-preview-feedback/2005-01/thread00058-0.html错误二:qvaluestack.h:57: 错误:不能从 QValueListIterator 转换到 const char*,为实参 1(属于 int remove(const char*)修正方法:gedit $QTDIR/include/qvaluestack.h &将remove( this-fromLast() );改为this-remove( this-fromLast() );在Build Qt2.3.2时make出现如下问题: xml/qxml.h:214: 警告:class QXmlReader 有虚函数却没有虚析构函数xml/qxml.h:402: 警告:class QXmlContentHandler 有虚函数却没有虚析构函数xml/qxml.h:419: 警告:class QXmlErrorHandler 有虚函数却没有虚析构函数xml/qxml.h:428: 警告:class QXmlDTDHandler 有虚函数却没有虚析构函数xml/qxml.h:436: 警告:class QXmlEntityResolver 有虚函数却没有虚析构函数xml/qxml.h:443: 警告:class QXmlLexicalHandler 有虚函数却没有虚析构函数xml/qxml.h:456: 警告:class QXmlDeclHandler 有虚函数却没有虚析构函数xml/qxml.cpp:1518: 警告:未使用的参数 ret/qt/qtx11/include/qvaluestack.h: In member function T QValueStack:pop() with T = QMap:xml/qxml.cpp:513: instantiated from here/qt/qtx11/include/qvaluestack.h:57: 错误:不能从 QValueListIteratorQMap 转换到 const char*,为实参 1(属于 int remove(const char*) /qt/qtx11/include/qvaluestack.h: In member function T QValueStack:pop() with T = QString: xml/qxml.cpp:2502: instantiated from here /qt/qtx11/include/qvaluestack.h:57: 错误:不能从 QValueListIterator 转换到 const char*,为实参 1(属于 int remove(const char*) make2: * xml/qxml.o 错误 1make2: Leaving directory /qt/qtx11/srcmake1: * sub-src 错误 2make1: Leaving directory /qt/qtx11make: * init 错误 2成功编译的方法: 更改qt-2.3.2

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论