Installation of Qt
Install Qt by running the following
commands:
sed -i "s:cp -f:install:" mkspecs/linux-g++/qmake.conf &&
bash
export PATH=$PWD/bin:$PATH &&
export LD_LIBRARY_PATH=$PWD/lib &&
./configure -prefix /usr -docdir /usr/share/doc/qt \
-headerdir /usr/include/qt -plugindir /usr/lib/qt/plugins \
-datadir /usr/share/qt -translationdir /usr/share/qt/translations \
-sysconfdir /etc/qt -release -shared -qt-gif -system-zlib \
-no-g++-exceptions -thread -plugin-imgfmt-png -system-libpng &&
make &&
find -type f -name Makefile | xargs sed -i "s@-Wl,-rpath,/usr/lib@@g" &&
make install &&
ln -sf libqt-mt.so /usr/lib/libqt.so &&
cp -r doc/man /usr/share &&
cp -r examples /usr/share/doc/qt &&
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