不能cmake kde-connect

Vin*_*dra 5 installation qt kde package kubuntu

我试图安装以下KDE-CONNECT .虽然我的kubuntu版本是14.04,但我想编译它们以便我可以拥有最新版本.但是当我按照指令编译时,我得到以下错误.

-- Found Qt-Version 5.2.1 (using /usr/bin/qmake)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_QT_INCLUDE_DIR
   used as include directory in directory /home/vinaychandra/Downloads/t/CMakeFiles/CMakeTmp

CMake Error: Internal CMake error, TryCompile configure of cmake failed

CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:1311 (message):
  Unable to compile a basic Qt application.  Qt has not been found correctly.
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindKDE4.cmake:95 (find_package)
  CMakeLists.txt:7 (find_package)
Run Code Online (Sandbox Code Playgroud)

请指出如何纠正此问题.

我试过给-DQT_QT_INCLUDE_DIR=/usr/share/qt4/ 它然后说它You must build your code with position independent code if Qt was built with -reduce-relocations.

Zhi*_*lin 7

默认情况下,您的cmake使用不同的QT版本.所以,你必须明确告诉他他必须使用哪个版本的QT来完成这项工作.

这个

-DQT_QT_INCLUDE_DIR=/usr/share/qt4/
Run Code Online (Sandbox Code Playgroud)

是错的,因为你不能明确地给出QT位置.您所需要的只是使用正确的qmake. 所以,给这个标志,你会很高兴!

-DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4
Run Code Online (Sandbox Code Playgroud)