QT installation instructions

J_Man jeremy at linux-phreak.net
Sun Jul 22 18:27:36 PDT 2001

QT itself recommends not using ld.so.conf, and recommends this method, and
of course, the user has ultimate control, and can build qt wherever he/she
wants (could build in /opt/kde/accessories/junk/qt, if they wanted).  And
again, on the libmng stuff, I don't mind including it...but I've never seen
a need for it, and I've built numerous build's of QT. the --accel-mach64
flag is only useful when buildign Embedded QT, if you check the
./configure --help screen, as are many of the other options, and compiler
optimizations are not necessarily a QT thing, but more a generic thing for
all packages, imho.


-----Original Message-----
From: blfs-book-owner at linuxfromscratch.org
[mailto:blfs-book-owner at linuxfromscratch.org]On Behalf Of Bruce Dubbs
Sent: Sunday, July 22, 2001 7:58 AM
To: blfs-book at linuxfromscratch.org
Subject: Re: QT installation instructions

J_Man wrote:

>QT - GUI interface widget library, used for KDE
>version 2.3.1
>download location - ftp://ftp.trolltech.com/qt/source/qt-x11-2.3.1.tar.gz
>Home Page - http://www.troll.no/
>tar zxf qt-x11-2.3.1.tar.gz &&
>mv qt-2.3.1 /usr/qt
>cat >> ~/.bash_profile << "EOF"
>source ~/.bash_profile &&
>cd /usr/qt &&
>./configure -gif -system-zlib -system-libpng -system-jpeg -xft &&

An alternative to LD_LIBRARY_PATH is to update /etc/ld.so.conf.  I
recommend using that method in a final install.

Also, since qt wants all the source for the build installed in the /usr
hierrarchy, I recommend using the default /usr/local instead of /usr as
the build/install locations.

configure should include -system-libmng.  Also, there needs to be a
short discussion of other options.  For instance, I used -accel-mach64

Optimization should also be discussed. I needed to use:

make SYSCONF_CFLAGS='-pipe -O3 -march=i686' \
        SYSCONF_CXXFLAGS='-pipe -O3 -march=i686'

to get the optimization I wanted.

   -- Bruce

More information about the blfs-book mailing list