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
The default installs are located in /usr/lib/qt-xxx
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.gzcd qt-x11-free-3.0.4
# the QTDIR for when you compile is your source directory
./configure --prefix=/usr/lib/qt \
export QTDIR=/usr/lib/qt
-thread \
-no-xinerama \
-system-zlib \
-system-libpng \
-system-libjpeg \
-system-libmngmake
make install
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
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
KDELIBS
./configure --prefix=$KDEDIR --disable-debug --enable-final --enable-shared
--enable-objprelink --enable-mitshm --enable-dnotify --with-qt-dir=$QTDIR
--with-ssl-dir=/usr/local/opensslTue Jun 4 02:37:24 EST 2002