compiling qt3 - This may help
James McDonald
james_mcdonald
Mon May 17 11:32:42 PDT 2004
I Installed qt this morning a 3am and made all the mistakes so I wrote this
for next time....
Installing QT-3.0.4 on Redhat 7.2
Files Location
qt-x11-free-x.x.x.tar.gz http://www.trolltech.com
Notes
The default installs are located in /usr/lib/qt-xxx
To install the latest version
unpack the tar.gz file to /usr/local/src/
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/local/src/qt-x11-free-3.0.4
./configure --prefix=/usr/lib/qt-3.0.4 \
-thread \ # make sure you set multithread or kde will complain about
missing libqt-mt.so
-no-xinerama \ # I don't have multiple video cards /monitors so disable it.
-system-zlib \ # the rest I am just guessing at don't take my word ask a
linux god there are quite a few on the list.
-system-libpng \
-system-libjpeg \
-system-libmng
make
make install
ln -sf /usr/lib/qt-3.0.4 /usr/lib/qt # <-- this helps so you don't have to
change environment hoo do when you upgrade
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
James McDonald
Tue Jun 4 02:37:24 EST 2002
On Tue, 4 Jun 2002 9:30, you wrote:
> I stuff this up everytime because I have no understanding of the process.
> It is the problem of setting the $QTDIR. I have placed this in .profile::
>
> QTDIR=/usr/lib/qt3
> PATH=$QTDIR/bin:$PATH
> MANPATH=$QTDIR/doc/man:$MANPATH
> LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
>
> export QTDIR PATH MANPATH LD_LIBRARY_PATH
>
> But when I go to ./configure it tells me that I have the $QTDIR set
> wrongly.
>
> Waht is wrong, by the way i did this out of the instructions.
More information about the Linux-users
mailing list