Installation of Qt
bash
export QTDIR=$PWD &&
export LD_LIBRARY_PATH=$QTDIR/lib &&
export PATH=$QTDIR/bin:$PATH &&
./configure -prefix /opt/qt-&qt-version; -qt-gif -system-libpng \
-system-libmng -system-zlib -system-libjpeg -no-g++-exceptions \
-thread &&
make &&
make install &&
ln -sfn /opt/qt-&qt-version; /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
exit
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