QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 507|回复: 0

求助:装KDE3.2.1前,升级Qt3.1不成功.

[复制链接]
发表于 2004-4-8 17:35:51 | 显示全部楼层 |阅读模式
我的操作系统是Red Hat Enterpirse Linux ES(2.4.21-9EL)
用root登陆!
想把KDE的版本升级到3.2.1,在此之前需要把Qt 从3.1升级到3.2以上,我从trolltech.com下载了qt-x11-free-3.3.1.tar.bz2,按照说明我把它解压缩到/usr/local/下并把它改名为qt,此时的文件夹属性如下

drwxr-xr-x   18 root     root         4096  4月  8 13:20 qt

ls -l qt

drwxr-xr-x    2 root     593          4096  4月  7 23:43 bin
-rwxr-xr-x    1 root     593          3762  2月 16 22:01 changes-3.3.1
-rwxr-xr-x    1 root     root          123  4月  7 23:42 config.status
drwxr-xr-x    5 root     593          4096  2月 18 22:25 config.tests
-rwxr-xr-x    1 root     593        106267  2月 11 18:21 configure
drwxr-xr-x    4 root     593          4096  2月 18 22:24 doc
drwxr-xr-x   80 root     593          4096  4月  7 23:42 examples
drwxr-xr-x    5 root     593          4096  4月  7 23:42 extensions
-rwxr-xr-x    1 root     593          7777  2月 18 22:26 FAQ
drwxr-xr-x    3 root     593          8192  4月  7 23:41 include
-rwxr-xr-x    1 root     593          4233  2月 18 22:26 INSTALL
drwxr-xr-x    2 root     593          4096  4月  7 23:42 lib
-rwxr-xr-x    1 root     593         18361  2月 18 22:26 LICENSE.GPL
-rwxr-xr-x    1 root     593          4689  2月 18 22:26 LICENSE.QPL
-rwxr-xr-x    1 root     593          2751 2003-08-11  Makefile
-rwxr-xr-x    1 root     593           694  2月 18 22:26 MANIFEST
drwxr-xr-x   58 root     593          4096  4月  7 23:41 mkspecs
drwxr-xr-x    2 root     593          4096  2月 18 22:24 pics
-rwxr-xr-x    1 root     593          1159  2月 18 22:26 PLATFORMS
drwxr-xr-x    7 root     593          4096  4月  7 23:42 plugins
drwxr-xr-x    5 root     593          4096  4月  7 23:41 qmake
drwxr-xr-x   17 658      593          4096  2月 18 22:26 qt-x11-free-3.3.1
-rwxr-xr-x    1 root     593          1399  2月 18 22:26 README
-rwxr-xr-x    1 root     593           913  2月 18 22:26 README-QT.TXT
drwxr-xr-x   25 root     593          4096  4月  7 23:41 src
drwxr-xr-x   14 root     593          4096  4月  7 23:41 tools
drwxr-xr-x    2 root     593          4096  2月 18 22:25 translations
drwxr-xr-x   18 root     593          4096  4月  7 23:42 tutorial


说明文档上说要修改.profile,我在/etc/profile中添加了
QTDIR=/usr/local/qt
PATH=$QTDIR/bin:$PATH
MANPATH=$QTDIR/doc/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

export QTDIR PATH MANPATH LD_LIBRARY_PATH


然后我执行了configure
[root@olo qt]# ./configure
..........................................
#这一步执行成功,它提示我
Qt is now configured for building. Just run /usr/bin/gmake.
To reconfigure, run /usr/bin/gmake confclean and configure.

#但是make过程中出错了
[root@olo qt]# /usr/bin/gmake
gmake[1]: Entering directory `/usr/local/qt'
cd qmake && /usr/bin/gmake
gmake[2]: Entering directory `/usr/local/qt/qmake'
gmake[2]: `qmake' is up to date.
gmake[2]: Leaving directory `/usr/local/qt/qmake'
cd src/moc && /usr/bin/gmake
gmake[2]: Entering directory `/usr/local/qt/src/moc'
gmake[2]: Nothing to be done for `first'.
gmake[2]: Leaving directory `/usr/local/qt/src/moc'
cd src && /usr/bin/gmake
gmake[2]: Entering directory `/usr/local/qt/src'
g++ -c -pipe -Wall -W -O2 -fPIC -DQT_SHARED -DQT_NO_DEBUG -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/usr/local/qt/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/libpng -I3rdparty/zlib -I3rdparty/opentype -I../include -I/usr/X11R6/include -I/usr/X11R6/include -I.moc/release-shared/ -o .obj/release-shared/qtaddons_x11.o kernel/qtaddons_x11.cpp
In file included from /usr/X11R6/include/X11/Xft/Xft.h:41,
                 from kernel/qt_x11_p.h:152,
                 from kernel/qtaddons_x11.cpp:25:
/usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!"
/usr/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files."
/usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:"
/usr/include/freetype2/freetype/freetype.h:23:2: #error "  #include <ft2build.h>"
/usr/include/freetype2/freetype/freetype.h:24:2: #error "  #include FT_FREETYPE_H"
gmake[2]: *** [.obj/release-shared/qtaddons_x11.o] Error 1
gmake[2]: Leaving directory `/usr/local/qt/src'
gmake[1]: *** [sub-src] Error 2
gmake[1]: Leaving directory `/usr/local/qt'
gmake: *** [init] Error 2


我曾尝试点右键=>属性把qt目录的权限一项都钩上并运用的各个子目录,还是不成功
不知道是目录权限设置有问题还是缺少几个库文件,希望你能够帮助我!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-29 15:30 , Processed in 0.040500 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表