Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cmake not working, could not exec qmake

Tags:

cmake

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?

like image 301
Alexandre Holden Daly Avatar asked May 16 '14 20:05

Alexandre Holden Daly


4 Answers

Does the trick:

sudo apt-get install qt4-qmake

You do not need to install half a gigabyte of qt sdk!

like image 63
stevek-pro Avatar answered Oct 05 '22 13:10

stevek-pro


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
like image 31
Alexandre Holden Daly Avatar answered Oct 05 '22 14:10

Alexandre Holden Daly


For newer versions of Ubuntu, if you have only installed version 5 of the Qt Framework, you may get this error. If you want to use Qt version 5 by default, then you should run the following command to fix the error:

sudo apt install qt5-default
like image 36
mavroprovato Avatar answered Oct 05 '22 13:10

mavroprovato


You need the qt dependences:

sudo apt-get install qt4-qmake libqt4-dev

like image 22
Abel Avatar answered Oct 05 '22 15:10

Abel