Installing QT-3.0.4 and KDE 3 from CVS source


Files Location
qt-x11-free-x.x.x.tar.gz www.trolltech.com
libxslt
http://xmlsoft.org/XSLT/downloads.html
libxml2
http://xmlsoft.org/downloads.html
http://www.rpm.org/
ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x

Notes

The default installs are located in /usr/lib/qt-xxx  

QT

To install the latest version

unpack the tar.gz file to /usr/lib/qt-x11-free-3.0.4

ln -sf /usr/lib/qt-x11-free-3.0.4 /usr/lib/qt
tar -zxvf qt-x11-free-3.0.4.tar.gz

cd qt-x11-free-3.0.4

# the QTDIR for when you compile is your source directory
export QTDIR=/usr/lib/qt

./configure --prefix=/usr/lib/qt \
-thread \
-no-xinerama \
-system-zlib \
-system-libpng \
-system-libjpeg \
-system-libmng

make

make install

Location of system wide QTDIR environment settings (in RedHat 7.x) 

If you are looking for where the QTDIR env variable is set in redhat 7.x... it is in /etc/profile.d/qt.sh or qt.csh if you use the C shell.

edit /etc/profile.d/qt.sh

# Qt initialization script (sh)

if [ -z "$QTDIR" ] ; then

        # QTDIR="/usr/lib/qt.2.3.1"

        QTDIR="/usr/lib/qt"

fi

export QTDIR

Setting up Environment for KDE

export CXXFLAGS="-O3 -march=i686 -mcpu=i686"
export CPPFLAGS="-O3 -march=i686 -mcpu=i686"
export CFLAGS="-O3 -march=i686 -mcpu=i686"
export QTDIR=/usr/lib/qt
export KDEDIR=/opt/kde3
export LD_LIBRARY_PATH=$KDEDIR/lib:$QTDIR/lib
export PATH=/opt/kde3/bin:$PATH

ARTS

./configure --prefix=$KDEDIR --disable-debug --enable-final --enable-shared --enable-objprelink --with-qt-dir=$QTDIR


KDELIBS 

CVS: libxml2 and libxslt troubles in kdelibs

The KDE CVS doesn't have its own copy of libxslt anymore. You need to first remove the KDE installation of it (e.g. $KDEDIR/bin/xml2-config and $KDEDIR/lib/libxml2*), then install libxml2 (>=2.4.8) and libxslt (>=1.0.6) (from source, or from packages for your distribution). Remove kdelibs/config.cache and re-run configure (after Makefile.cvs if you use CVS, obviously).

./configure --prefix=$KDEDIR --disable-debug --enable-final --enable-shared --enable-objprelink --enable-mitshm --enable-dnotify --with-qt-dir=$QTDIR --with-ssl-dir=/usr/local/openssl

KDEBASE

./configure --prefix=$KDEDIR --disable-debug --enable-final --enable-shared --enable-objprelink --with-qt-dir=$QTDIR --with-pam=yes --with-shadow --with-ssl-dir=/usr/local/openssl --with-x


James McDonald

Tue Jun  4 02:37:24 EST 2002