PDA

View Full Version : Kapture installation requires qmake-qt4



saman_artorious
10th July 2012, 18:38
I get the following error when attempting to install Kapture:



# cmake .
CMake Error at /usr/share/cmake-2.8/Modules/FindQt4.cmake:1148 (MESSAGE):
Qt qmake not found!
Call Stack (most recent call first):
CMakeLists.txt:7 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!



I tried adding qt4 or qmake-qt4 to the PATH, but the problem isn't fixed yet.


export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/qt:/usr/lib/qt4:/usr/lib/qt3:/usr/share/qt4:/usr/share/qt3:/usr/share/qt:

How can I solve it?

Your

Added after 52 minutes:

I found the problem
The call
_qt4_query_qmake(QT_VERSION QTVERSION)

doesn't set QTVERSION

if I replace
IF("${QTVERSION}" MATCHES "Unknown")
with
IF(NOT $QTVERSION)
then it will work fine

:)