Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been searching for literally hours and I cannot figure out where for the life of me libqt4 is installed by apt-get.

I installed:


Next, I installed QtCreator 2.5.2 with the binary install file downloaded from because the QtCreator available in the Ubuntu repos is only 2.4.

QtCreator has to be able to find qt libraries and qmake on my system, but I can't even find them. Does anyone know where the $*(^#$(&^# apt-get installs them?

share|improve this question
up vote 9 down vote accepted

You can find out where files are installed with dpkg:

dpkg --listfiles libqt4-dev

share|improve this answer
This is the sort of all purpose solution I was looking for. Googling for a way to show paths to packages installed with apt-get didn't show this...not even on the apt-get faq! Thanks so much. – dusktreader Aug 20 '12 at 23:42

The library files are usually in /usr/include/qt4. The qmake is in /usr/bin/qmake-qt4 (or /usr/bin/qt4-qmake, I forget). You may have to symbolic link /usr/bin/qmake to either of these.

Perhaps your application expected the files to be in /usr/local/include... and /usr/local/bin... like some other distrubutions?

share|improve this answer
The include files were indeed in /usr/include, but the libraries were actually installed in /usr/lib/x86_64-linux-gnu/. – dusktreader Aug 20 '12 at 23:44

So, after following roadmr's advice, I was able to find out that the libraries were installed in:


However, to set up QtCreator, one need only find the location of the qmake executable, which I believe Bodie was hinting at. It turned out that qmake (or qmake-qt4) was located in :


Thanks to both for the guidace!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.