Compile qt 4.8.4 on Ubuntu 10.04 Lucid

Download the full installation from qt 4.8.4, and un-compress the file onto a separate directory.

Before running the installation run the following command to get all the dependencies

apt-get build-dep libqt4-core libqt4-dev

This will download and install the necessary libraries for qt4.

You can also review which libraries are required here.

If you want to build everything then just run


This will build everything but it will take a lot of time, if you are like me and you don’t need the examples, tutorials, demos run the following command

./configure \
       -debug-and-release \
       -opensource \
       -developer-build \
       -no-webkit \
       -nomake examples \
       -nomake demos \
       -nomake docs \

After this one is finished and if there are no errors, you can proceed to running

sudo make install

Make sure you build the source code without root privileges and after that if you want to install it globally run the make install command with sudo