我的操作系统是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,此时的文件夹属性如下
然后我执行了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