Page 1 of 1

Quick and light Qt installation

Posted: Tue Oct 16, 2007 10:41 am
by admin
Qt from is the graphical library used by all sesarray softwares. It is available on almost all Linux distributions but generally not the latest release, except for some distributions (e.g. Hence, most of the time you must compile it manually and may take quite a lot of time and disk space. This post describes the way to save time and disk space. It has been tested for Qt 4.3.1 and sesarray snapshots from October 2007. It may work with more recent versions. Updates will be posted in this forum.

Code: Select all

# Extract
tar xvfpz qt-x11-opensource-src-4.3.1.tar.gz --exclude demos --exclude examples --exclude doc
# Configure
echo "yes" | ./configure -pch -release -prefix /usr/local/Trolltech/Qt -fast
# Make
cd qt-x11-opensource-src-4.3.1
make -C src/tools/moc
make -C src/tools/rcc
make -C src/tools/uic
make -C src/corelib
make -C src/xml
make -C src/gui
make -C src/svg
make -C src/network
make -C src/script
make -C src/plugins/codecs
make -C src/plugins/imageformats
make -C src/plugins/inputmethods
make -C tools/linguist/lrelease
make -C tools/linguist/lupdate
# Install (eventually log in as root)
make install_qmake
make install_mkspecs
make -C src/tools/moc install
make -C src/tools/rcc install
make -C src/tools/uic install
make -C src/corelib install
make -C src/xml install
make -C src/gui install
make -C src/svg install
make -C src/network install
make -C src/script install
make -C src/plugins/codecs install
make -C src/plugins/imageformats install
make -C src/plugins/inputmethods install
make -C tools/linguist/lrelease install
make -C tools/linguist/lupdate install
# Clean-up
cd ..
rm-rf qt-x11-opensource-src-4.3.1
If the Qt archive of release 4.3.1 is available in the current directory, you can just copy this code and paste it in a terminal. At the time of writing this post, the current Qt release is 4.3.2, so just change the version number.