织梦CMS - 轻松建站从此开始!

罗索

在x86上编译Qtopia-core-4.2.2出现的错误

jackyhwei 发布于 2010-04-06 12:29 点击:次 
我想在x86上建立Qtopia的虚拟平台,系统是redhat9.0。在解压Qtopia-core-4.2.2后,我的选配置命令参数如下:./configure -embedded x86 -qvfb 运行过程中他提示说找不到glib-2.0库。配置完后,运行make命令,输出错误
TAG:

我想在x86上建立Qtopia的虚拟平台,系统是redhat9.0。

在解压Qtopia-core-4.2.2后,我的选配置命令参数如下:

./configure  -embedded x86 -qvfb

运行过程中他提示说找不到glib-2.0库。配置完后,运行make命令,输出如下错误:

text/qtextcursor.cpp:1180: warning: unused variable `const QTextBlock block'
text/qsyntaxhighlighter.cpp: In member function `void
  QSyntaxHighlighterPrivate::reformatBlock(QTextBlock)':
text/qsyntaxhighlighter.cpp:169: warning: unused variable `QTextBlock previous'
text/qfontengine_qws.cpp: In member function `virtual void
  QFontEngineFT::draw(QPaintEngine*, double, double, const QTextItemInt&)':
text/qfontengine_qws.cpp:236: warning: unused variable `QFixed x'
text/qfontengine_qws.cpp:237: warning: unused variable `QFixed y'
text/qfontengine_qws.cpp: In member function `virtual QByteArray
  QFontEngineFT::getSfntTable(unsigned int) const':
text/qfontengine_qws.cpp:603: `FT_Load_Sfnt_Table' undeclared (first use this
  function)
text/qfontengine_qws.cpp:603: (Each undeclared identifier is reported only once
  for each function it appears in.)
text/qfontengine_qws.cpp: In member function `virtual void
  QFontEngineQPF::draw(QPaintEngine*, double, double, const QTextItemInt&)':
text/qfontengine_qws.cpp:998: warning: unused variable `QFixed x'
text/qfontengine_qws.cpp:999: warning: unused variable `QFixed y'
make[2]: *** [.obj/release-shared-emb-x86/qfontengine_qws.o] Error 1
make[1]: *** [sub-gui-make_default] Error 2
make: *** [sub-src-make_default-ordered] Error 2

 

在Google上Google了好久,发现没什么解决方法,后来在一个bbs上发现了一篇,现在总结一下

 

方法一:

至于出现的编译错误,主要是由于‘FT_Load_Sfnt_Table' 没有定义的问题,我按照网上的解决方法,找到使用FT_Load_Sfnt_Table( ......)这个函数的qtopiacore/qt/src/gui/text/qfontengine_qws.cpp源文件,在getSfntTable()函数里,注释掉含有调用FT_Load_Sfnt_Table()函数的两行代码。重新配置编译安装,通过了,只是不知道这种修改,以后运行稳不稳定

方法二:

qtopiacore/qt/src/gui/text/text.pri增加
QT_CONFIG+=freetype
编译时候用QT包自带的3rdpart freetype

 

引致:http://www.qtcn.org/bbs/read.php?tid=7707&page=e&#a

(秩名)
本站文章除注明转载外,均为本站原创或编译欢迎任何形式的转载,但请务必注明出处,尊重他人劳动,同学习共成长。转载请注明:文章转载自:罗索实验室 [http://www.rosoo.net/a/201004/8999.html]
本文出处:qtcn.org 作者:秩名
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:点击我更换图片
栏目列表
将本文分享到微信
织梦二维码生成器
推荐内容