Search code examples
cmakeqmake

cmake not working, could not exec qmake


I am using Ubuntu 14.04. I'm trying to install a program which requires cmake. When I run cmake src/ I get:

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

What am I doing wrong?


Solution

  • I read on another post that the problem has something to do with CMake not being able to find Qt4 qmake.

    However in my case, it was simply a matter of not having qt4-qmake. This solved it (but weighs a heavy 440MB):

    sudo apt-get install qt-sdk