Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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:

libqt4-dev
libqt4-core
libqt4-gui
libqt4-xml
libqt4-opengl

Next, I installed QtCreator 2.5.2 with the binary install file downloaded from qt-project.org 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
add comment

3 Answers 3

up vote 6 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
add comment

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
add comment

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

/usr/lib/x86_64-linux-gnu/

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 :

/usr/bin

Thanks to both for the guidace!

share|improve this answer
add comment

Your Answer

 
discard

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.