qt-3.1.2

Introduction to qt

Download location (HTTP):       
Download location (FTP):        ftp://ftp.trolltech.com/qt/source/qt-x11-free-3.1.2.tar.bz2
Version used:                   3.1.2
Package size:                   13 MB
Estimated Disk space required:  155 MB
Estimated build time:           86.40 SBU

The qt package contains a C++ GUI library. This is useful for creating graphical applications or executing graphical applications that are dynamically linked to the qt library.

qt depends on:
xfree86-4.3.0, libpng-1.2.5, libmng-1.0.5 and libjpeg-6b

Installation of qt

./configure -prefix /opt/qt-3.1.2 -qt-gif -system-libpng \
���-system-libmng -system-zlib -system-libjpeg -no-g++-exceptions \
���-thread &&
make &&
make install &&
ln -sfn /opt/qt-3.1.2 /opt/qt &&
ln -s /opt/qt/lib/libqt-mt.so /opt/qt/lib/libqt.so &&
cp -r doc/man /opt/qt/doc &&
cp -r examples /opt/qt/doc

Note: The build time for qt is quite long. If you want to save some time and don't want the tutorials and examples, change the first make line above to:

make sub-tools

Command explanations

-prefix /opt/qt-3.1.2 : This command sets up the install destination.

-qt-gif : This command adds support for gif files to the libraries.

-system-libpng -system-libmng -system-zlib -system-libjpeg : This command forces the library to use the shared libraries that are on your system instead of recreating its own set of support libraries for these functions.

-no-g++-exceptions : This command disables the exceptions coding generated by the C++ compiler.

-thread : This command compiles the library to support multi-threading.

ln -sfn /opt/qt-3.1.2 /opt/qt : This command standardizes the location of the qt libraries to the ld.so.conf entry described below.

ln -s /opt/qt/lib/libqt-mt.so /opt/qt/lib/libqt.so : This command allows configure scripts to find a working QT installation.

cp -r doc/man /opt/qt/doc : This command installs the man directory which is missed by make install.

cp -r examples /opt/qt/doc : This command installs the examples directory which is missed by make install.

Configuring qt

Configuration Information

As with most libraries, there is no configuration to do, save that the library directory /opt/qt/lib should appear in /etc/ld.so.conf so that ldd can find the shared libraries. The following command will add it if it is missing:

cat >> /etc/ld.so.conf << "EOF"
# Begin qt addition to /etc/ld.so.conf

/opt/qt/lib

# End qt addition
EOF
ldconfig

You need to add the path for the qt man pages to the man.conf file. This can be done with the following command:

cat >> /etc/man.conf << "EOF"
# Begin qt addition to man.conf

MANPATH /opt/qt/doc/man

# End qt addition to man.conf
EOF

Contents

The qt package contains the libqt-mt libraries and libqui libraries.

Description

qt library

The QT/X11 library contains API's necessary to use KDE programs.