我正在使用Debian操作系统,我试图指向cmake我的Qt4在哪里.
我尝试构建qjson库及其CMakeLists.txt:
http://pastebin.com/fKNp0Qgy
我得到:
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!
我不熟悉CMake和Qt配置,但我很好奇设置强制CMake FIND_PACKAGE查看“/usr/lib / x86_64-linux-gnu / qt4 / bin / qmake”为qmake.
我从源码安装了Qt 4.8.5,我的Qt4 bin文件夹完全不同的目录.