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!
A symbolic link to the desired version, defined globally:
... or per user:
... to see if it works:
tells thatsudo apt-get install qt5-default
works for me.Search where is qmake-qt4:
For example qmake-qt4 is in this path:
Create symbolic link:
Regards
I have qt4 installed. I found that using the following path worked for me, despite 'which qmake' returning /usr/bin/qmake, which is just a link to qtchooser anyway.
The following path works for me, on a 64 bit system. Running from the full path of:
As Debian Qt's maintainer please allow me to suggest you to not use qtx-default. Please read qtchooser's man page, the solution is described there. If you are interested in packaging an app you can also take a look at this blog post I made explaining how to do it
I had this problem building jasmine-headless-webkit Ruby gem. Despite having qt4 installed,
qmake
(a symlink toqtchooser
) insisted it didn't know about a QT installation. OTOH, it was able to list qt4 when asked directly.This made everything better:
qtchooser then knew to use qmake-qt4, and so on.