标题:在redhat9下make qt-embedded-4.5.1出错
作者:svga
日期:2009-05-27 08:26
内容:
我在红帽子9下安装了qt-x11-opensource-src-4.5.1.tar.gz,一切正常。
然后开始安装qt-embedded-linux-opensource-src-4.5.1.tar.gz
然后开始安装 qt arm
执行configure如下:
#./configure \
-no-qt3support \
-no-openssl \
-optimized-qmake \
-no-nis \
-no-cups \
-depths 16 \
-embedded x86 \
-qt-gfx-qvfb\
-qt-gfx-linuxfb \
-no-qdbus \
-fast \
-qt-kbd-qvfb-qt-mouse-qvfb \
-prefix /usr/local/Trolltech/QtEmbedded-4.5.1-arm \
-silent
一切正常
执行gmake
编译一段时间后报错:
In file included from text/qfont_qws.cpp:56:
text/qfontengine_ft_p.h:82: warning: `struct QFreetypeFace' only defines a
private destructor and has no friends
compiling text/qfontengine_qws.cpp
text/qfontengine_qws.cpp: In member function `virtual void
QFontEngineQPF1::draw(QPaintEngine*, double, double, const QTextItemInt&)':
text/qfontengine_qws.cpp:485: warning: unused variable `QFixed x'
text/qfontengine_qws.cpp:486: warning: unused variable `QFixed y'
compiling text/qfontengine_ft.cpp
In file included from text/qfontengine_ft.cpp:46:
text/qfontengine_ft_p.h:82: warning: `struct QFreetypeFace' only defines a
private destructor and has no friends
text/qfontengine_ft.cpp: In function `HB_Error hb_getSFntTable(void*, unsigned
int, HB_Byte*, HB_UInt*)':
text/qfontengine_ft.cpp:104: warning: unused parameter `void*font'
text/qfontengine_ft.cpp:104: warning: unused parameter `HB_Tag tableTag'
text/qfontengine_ft.cpp:104: warning: unused parameter `HB_Byte*buffer'
text/qfontengine_ft.cpp:104: warning: unused parameter `HB_UInt*length'
text/q ..
#1 [wd007 06-01 09:30]
我在红帽子9下安装了qt-x11-opensource-src-4.5.1.tar.gz,
这第一步你的机器没有报错吗
#2 [shiroki 06-01 10:47]
编译器的版本太低了哟, 换个发行版比较实际
#3 [wd007 06-03 21:19]
RH9下安装Qt4问题多多
#4 [cwt0408 06-05 21:33]
用编译器3.4.1
在redhat9.0环境需要作一些修改才能编译通过:
ln -s /usr/kerberos/include/com_err.h /usr/include/
ln -s /usr/kerberos/include/profile.h /usr/include/
ln -s /usr/kerberos/include/krb5.h /usr/include/
vi src/gui/text/qfontengine_ft.cpp, 注释掉710行
#5 [wbr912 03-30 11:48]
楼上高手,正解