Qmake: could not find Qt installation '' - Qmake setup?

qmake: could not find Qt installation ''

This thread did not help me. qmake: could not find the Qt installation. ''

How can I make qmake recognize where the Qt folder is?

It is now installed in /opt/Qt5.1.0 .

+7
qt qmake
source share
4 answers

Have you installed qt5-default? You need to do this in addition to running the Qt provider .run file.

 sudo apt-get install qt5-default 
+11
source share

This message is displayed by qtchooser. To properly configure it, you must create the conf files in the file / etc / xdg / qtchooser /

eg:

 $ ls -1 /etc/xdg/qtchooser/ default.conf qt-4.8.5.conf qt-5.1.0.conf 

each file has two lines: the path to bin, the path to lib:

 $ cat /etc/xdg/qtchooser/default.conf /opt/Qt/4.8.5/bin /opt/Qt/4.8.5/lib 

Additional Information: man qtchooser

+4
source share

The solution for me on this problem was to specify the QT version, as this message was generated by / usr / bin / qtchooser

So, in my case, it was QT4, which I tried to use, and ran:

 qmake 

error generated (could not find Qt installation ')

 qmake -qt=qt4 

fixed this error. In my case, it was a Ruby Gem trying to compile with qmake, so I couldn't get it to pass this extra command line argument, so I added it to my profile instead

 export QT_SELECT=qt4 

And now QT4 works fine on my Ubuntu system.

+1
source share

For me, the symlink link to default.conf was missing in / usr / share / qtchooser. Inserting it in / etc / xdg / qtchooser is not enough.

+1
source share

All Articles