How to Solve qmake Error – qmake: No such file or directory

1 min

This tutorial will solve the error:
qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory

You must have encountered this error while trying to compile any source that uses qt and uses qmake.

qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory


You need to have qt4-qmake and libqt4-dev installed in your system.

Run below command to install above two packages in Ubuntu, Linux mint:

sudo apt-get install qt4-qmake libqt4-dev

Note: This will solve also below compile error which caused by absence of libqt4-dev:

Error QApplication: no such file or directory

Installation size: libqt4-dev : 22 mb.


Creator and author of Connect with me via Telegram, Twitter, or send us an email.
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Oldest Most Voted
Inline Feedbacks
View all comments