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
Solution
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.