I am using Debian OS and I am trying to point to cmake where my Qt4 is.
I am trying to create a qjson library and 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 am not familiar with CMake and Qt configuration, but I am curious how to configure CMake FIND_PACKAGE to search in '/ usr / lib / x86_64-linux-gnu / qt4 / bin / qmake' for qmake. I installed Qt 4.8.5 from the source code, and I have the Qt4 bin folder in a completely different directory.
linux qt cmake
bLAZ Mar 01 '14 at 11:10 2014-03-01 11:10
source share