求助:装KDE3.2.1前,升级Qt3.1不成功.
我的操作系统是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 40964月8 13:20 qt
ls -l qt
drwxr-xr-x 2 root 593 40964月7 23:43 bin
-rwxr-xr-x 1 root 593 37622月 16 22:01 changes-3.3.1
-rwxr-xr-x 1 root root 1234月7 23:42 config.status
drwxr-xr-x 5 root 593 40962月 18 22:25 config.tests
-rwxr-xr-x 1 root 593 1062672月 11 18:21 configure
drwxr-xr-x 4 root 593 40962月 18 22:24 doc
drwxr-xr-x 80 root 593 40964月7 23:42 examples
drwxr-xr-x 5 root 593 40964月7 23:42 extensions
-rwxr-xr-x 1 root 593 77772月 18 22:26 FAQ
drwxr-xr-x 3 root 593 81924月7 23:41 include
-rwxr-xr-x 1 root 593 42332月 18 22:26 INSTALL
drwxr-xr-x 2 root 593 40964月7 23:42 lib
-rwxr-xr-x 1 root 593 183612月 18 22:26 LICENSE.GPL
-rwxr-xr-x 1 root 593 46892月 18 22:26 LICENSE.QPL
-rwxr-xr-x 1 root 593 2751 2003-08-11Makefile
-rwxr-xr-x 1 root 593 6942月 18 22:26 MANIFEST
drwxr-xr-x 58 root 593 40964月7 23:41 mkspecs
drwxr-xr-x 2 root 593 40962月 18 22:24 pics
-rwxr-xr-x 1 root 593 11592月 18 22:26 PLATFORMS
drwxr-xr-x 7 root 593 40964月7 23:42 plugins
drwxr-xr-x 5 root 593 40964月7 23:41 qmake
drwxr-xr-x 17 658 593 40962月 18 22:26 qt-x11-free-3.3.1
-rwxr-xr-x 1 root 593 13992月 18 22:26 README
-rwxr-xr-x 1 root 593 9132月 18 22:26 README-QT.TXT
drwxr-xr-x 25 root 593 40964月7 23:41 src
drwxr-xr-x 14 root 593 40964月7 23:41 tools
drwxr-xr-x 2 root 593 40962月 18 22:25 translations
drwxr-xr-x 18 root 593 40964月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
# ./configure
..........................................
#这一步执行成功,它提示我
Qt is now configured for building. Just run /usr/bin/gmake.
To reconfigure, run /usr/bin/gmake confclean and configure.
#但是make过程中出错了
# /usr/bin/gmake
gmake: Entering directory `/usr/local/qt'
cd qmake && /usr/bin/gmake
gmake: Entering directory `/usr/local/qt/qmake'
gmake: `qmake' is up to date.
gmake: Leaving directory `/usr/local/qt/qmake'
cd src/moc && /usr/bin/gmake
gmake: Entering directory `/usr/local/qt/src/moc'
gmake: Nothing to be done for `first'.
gmake: Leaving directory `/usr/local/qt/src/moc'
cd src && /usr/bin/gmake
gmake: 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: *** [.obj/release-shared/qtaddons_x11.o] Error 1
gmake: Leaving directory `/usr/local/qt/src'
gmake: *** Error 2
gmake: Leaving directory `/usr/local/qt'
gmake: *** Error 2
我曾尝试点右键=>属性把qt目录的权限一项都钩上并运用的各个子目录,还是不成功
不知道是目录权限设置有问题还是缺少几个库文件,希望你能够帮助我!
页:
[1]