[SOLVED] qmake: could not find a Qt installation of ''


I have a software in ubuntu that requires me to run qmake to generate the Makefile.

However, running qmake gives back this error,

qmake: could not find a Qt installation of ''

I have installed what I thought to be the required packages using,

sudo apt-get install qt4-qmake
sudo apt-get install qt5-qmake

But the error didn’t go away.

Any help on this would be gladly appreciated!


sudo apt-get install qt5-default works for me.

$ aptitude show qt5-default

tells that

This package sets Qt 5 to be the default Qt version to be used when using
development binaries like qmake. It provides a default configuration for
qtchooser, but does not prevent alternative Qt installations from being used.

Answered By - ptmono

Answer Checked By - Senaida (BugsFixing Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *