Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CMake doesn't know where is Qt4 qmake

Tags:

linux

cmake

qt

I am using Debian OS and I'm trying to point to cmake where is my Qt4.

I try to build qjson library and with its CMakeLists.txt: http://pastebin.com/fKNp0Qgy

I get:

Qt5 not found, searching for Qt4 qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory CMake Error at /usr/share/cmake-2.8/Modules/FindQt4.cmake:1386 (message):   Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x Call Stack (most recent call first):   CMakeLists.txt:55 (FIND_PACKAGE)   -- Configuring incomplete, errors occurred! 

I'm not familiar with CMake and Qt config, but I'm curious what setting force CMake FIND_PACKAGE to look into '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake' for qmake. I have installed Qt 4.8.5 from source and I have Qt4 bin folder in completely different directory.

like image 751
bLAZ Avatar asked Mar 01 '14 11:03

bLAZ


1 Answers

just try "sudo apt-get install qt-sdk" it works for me

like image 145
Jim_Di Avatar answered Oct 01 '22 14:10

Jim_Di