• 12461阅读
  • 9回复

请教,在x86上编译Qtopia-core-4.2.2出现的错误 [复制链接]

上一主题 下一主题
离线xiongcb
 
只看楼主 倒序阅读 楼主  发表于: 2007-03-17
— 本帖被 XChinux 从 Qt Installing 移动到本区(2007-03-21) —
我想在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<QTextCodec*>::const_iterator i'
../../corelib/codecs/qtextcodec.cpp: In function `static QTextCodec*
  QTextCodec::codecForMib(int)':
../../corelib/codecs/qtextcodec.cpp:795: warning: unused variable `
  QList<QTextCodec*>::const_iterator i'
codecs/qtextcodec.cpp: In function `static QTextCodec*
  QTextCodec::codecForMib(int)':
codecs/qtextcodec.cpp:795: warning: unused variable `
  QList<QTextCodec*>::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: warning: unused variable `QPointF curve_start'
text/qscriptengine.cpp: In function `bool hangul_shape_syllable(QOpenType*,
  QShaperItem*)':
text/qscriptengine.cpp:5043: warning: unused variable `QChar c'
text/qtextcontrol.cpp: In member function `void
  QTextControlPrivate::repaintOldAndNewSelection(const QTextCursor&)':
text/qtextcontrol.cpp:496: warning: unused variable `QRectF updateRect'
text/qtextlayout.cpp: In member function `void
  QTextLayout::drawCursor(QPainter*, const QPointF&, int, int) const':
text/qtextlayout.cpp:918: warning: unused variable `QFixed pos_x'
text/qtextlayout.cpp:919: warning: unused variable `QFixed pos_y'
text/qtextlayout.cpp: In member function `void QTextLine::draw(QPainter*, const
  QPointF&, const QTextLayout::FormatRange*) const':
text/qtextlayout.cpp:1580: warning: unused variable `QFixed pos_y'
text/qtextdocumentlayout.cpp: In member function `void
  QTextDocumentLayoutPrivate::ensureLayouted(double) const':
text/qtextdocumentlayout.cpp:2489: warning: unused variable `const QSizeF
  oldSize'
text/qtextcursor.cpp: In member function `void
  QTextCursor::select(QTextCursor::SelectionType)':
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'
gmake[2]: *** [.obj/release-shared-emb-x86/qfontengine_qws.o] Error 1
gmake[1]: *** [sub-gui-make_default] Error 2
gmake: *** [sub-src-make_default-ordered] Error 2

初学Qt,看不明白,猜想是不是与我的配置参数有关?

还请各位高手给个提示,谢谢。
离线xiongcb
只看该作者 1楼 发表于: 2007-03-22
前几天终于把这个问题解决了,glib-2.0库从网上下了一个,装上了。

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

只看该作者 2楼 发表于: 2007-05-21
ft打头的函数是freetype字体用的...如果你不用ttf字体是没有影响的
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
离线xiongcb
只看该作者 3楼 发表于: 2007-05-24
多谢总版主的回复,长知识了,呵呵
离线cadice

只看该作者 4楼 发表于: 2007-10-16
好用 ,编译通过,嘻嘻.
离线cadice

只看该作者 5楼 发表于: 2007-10-16
谢谢前辈喽(刚刚忘记感激了,补一个).
离线newcsder
只看该作者 6楼 发表于: 2008-03-26
加一种方法:
qtopiacore/qt/src/gui/text/text.pri增加
QT_CONFIG+=freetype
编译时候用QT包自带的3rdpart freetype
离线liweijie1988
只看该作者 7楼 发表于: 2009-04-20
引用第1楼shiroki于2007-05-21 11:46发表的  :
ft打头的函数是freetype字体用的...如果你不用ttf字体是没有影响的

什么意思?能再深入的解释一下吗?
离线yin0158
只看该作者 8楼 发表于: 2009-05-06
引用第6楼newcsder于2008-03-26 15:22发表的  :
加一种方法:
qtopiacore/qt/src/gui/text/text.pri增加
QT_CONFIG+=freetype
编译时候用QT包自带的3rdpart freetype



这个方法试了一下,没有解决问题,不知道QT_CONFIG+=freetype这行代码具体要求添加在哪里?
离线pangjie375

只看该作者 9楼 发表于: 2009-05-19
期待有好的办法了,我用新的freetype来代替也不行啊,郁闷中啊,难道只能屏蔽掉嘛
[ 此帖被pangjie375在2009-05-20 08:45重新编辑 ]
快速回复
限100 字节
 
上一个 下一个