我正在尝试在此之后安装 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)
请指出如何纠正这个问题。
我试过给-DQT_QT_INCLUDE_DIR=/usr/share/qt4/
然后它告诉You must build your code with position independent code if Qt was built with -reduce-relocations.