我想在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
(秩名) |