首页| 论坛| 消息

标题:请教,在x86上编译Qtopia-core-4.2.2出现的错误
作者:xiongcb
日期:2007-03-17 15:33
内容:

我想在x86上建立Qtopia的虚拟平台,系统是redhat9.0。
在解压Qtopia-core-4.2.2后,我的选配置命令参数如下:
./configure -silent -depths 4,8,16,24,32 -embedded x86
运行过程中他提示说找不到glib-2.0库。配置完后,运行gmake命令,输出如下错误:
../../corelib/codecs/qtextcodec.cpp: In function `static QTextCodec*
QTextCodec::codecForMib(int)':
../../corelib/codecs/qtextcodec.cpp:795: warning: unused variable `
QList::const_iterator i'
../../corelib/codecs/qtextcodec.cpp: In function `static QTextCodec*
QTextCodec::codecForMib(int)':
../../corelib/codecs/qtextcodec.cpp:795: warning: unused variable `
QList::const_iterator i'
codecs/qtextcodec.cpp: In function `static QTextCodec*
QTextCodec::codecForMib(int)':
codecs/qtextcodec.cpp:795: warning: unused variable `
QList::const_iterator i'
embedded/qscreen_qws.cpp: In member function `virtual void
QScreen::exposeRegion(QRegion, int)':
embedded/qscreen_qws.cpp:1141: warning: unused variable `const QRect bounds'
embedded/qtransportauth_qws_p.h:0: Warning: No relevant classes found. No output generated.
kernel/qapplication_qws.cpp: In member function `bool
QETWidget::translateMouseEvent(const QWSMouseEvent*, int)':
kernel/qapplication_qws.cpp:3192: warning: unused variable `QSize s'
kernel/qwidget_qws.cpp: In member function `void
QWidgetPrivate::updateFrameStrut()':
kernel/qwidget_qws.cpp:1035: warning: unused variable `const QRect
oldFrameStrut'
painting/qpainterpath.cpp: In member function `void QPainterPath::addText(const
QPointF&, const QFont&, const QString&)':
painting/qpainterpath.cpp:1123: warning: unused variable `QTextLine line'
painting/qstroker.cpp: In member function `void QStroker::joinPoints(double,
double, const QLineF&, QStroker::LineJoinMode)':
painting/qstroker.cpp:497: war ..


#1 [xiongcb 03-22 12:44]
前几天终于把这个问题解决了,glib-2.0库从网上下了一个,装上了。
至于出现的编译错误,主要是由于‘FT_Load_Sfnt_Table' 没有定义的问题,我按照网上的解决方法,找到使用FT_Load_Sfnt_Table( ......)这个函数的qtopiacore/qt/src/gui/text/qfontengine_qws.cpp源文件,在getSfntTable()函数里,注释掉含有调用FT_Load_Sfnt_Table()函数的两行代码。重新配置编译安装,通过了,只是不知道这种修改,以后运行稳不稳定。
#2 [shiroki 05-21 11:46]
ft打头的函数是freetype字体用的...如果你不用ttf字体是没有影响的
#3 [xiongcb 05-24 19:18]
多谢总版主的回复,长知识了,呵呵
#4 [cadice 10-16 13:42]
好用 ,编译通过,嘻嘻.
#5 [cadice 10-16 13:44]
谢谢前辈喽(刚刚忘记感激了,补一个).

<< 1 2 >> (1/2)

回复 发表
主题 版块