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.

We bring the latest tech, software news and stuff that matters. Stay in touch via Telegram, Twitter, YouTube, and Facebook and never miss an update!

Join our Telegram channel and stay informed on the move.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.


Creator of All time Linux user and open-source supporter. Connect with me via Telegram, Twitter, LinkedIn, 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
Would love your thoughts, please comment.x