免费预览已结束,剩余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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年中国中煤能源集团有限公司人员招聘考试备考试题及答案详解
- 2026年昆明泛亚联合产权交易所有限公司人员招聘参考题库及答案详解
- 2026年新疆风电工程设计咨询有限责任公司人员招聘考试题库及答案详解
- 2026年中国烟草总公司河南省公司人员招聘考试参考试题及答案详解
- 2026年上海实业集团有限公司人员招聘考试题库及答案详解
- 2026年双江拉祜族佤族布朗族傣族自治县教师招聘笔试备考题库及答案解析
- 2026年中国农业发展集团有限公司人员招聘参考题库及答案详解
- 2026年湖北中烟工业有限责任公司人员招聘笔试参考题库及答案详解
- 2026-2027学年广东省梅州市中考押题数学预测卷(含答案解析)
- 2026年上海联通人员招聘考试题库及答案详解
- 第一月考过关测试卷(试卷)2026-2027学年五年级语文上册统编版(含答案)
- 现代农业与生态农业
- 2026年特种设备安全管理人员A证考试题库(含答案)
- 3.1《买文具》课件 -2026-2027学年五年级上册数学北师大版
- 2026年湖南工业职业技术学院高职单招笔试职业技能测验试题库含答案解析3套试卷
- 电子档案和档案数字化副本移交接收规范
- 围手术期高血糖患者营养支持治疗管理专家共识(2025版)
- 医院职工绩效考核制度(2026版)
- 临床科学防治颈椎病守护颈部健康关键策略
- 信托业务监管分类说明(试行)
- 油田分层注水技术
评论
0/150
提交评论