凯特 Cmake 错误

Kate Cmake error

我正在尝试在 Linux Mint Cinnamon 17.1 64 位上构建 Kate。我下载了Kate源码,按照http://kate-editor.org/get-it/尝试安装。现在在尝试编译时,出现 cmake 错误。

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_QTOPENGL_INCLUDE_DIR (ADVANCED)
used as include directory in directory /home/jaydipc/kde/kate/addons/kate/pate/sip
used as include directory in directory /home/jaydipc/kde/kate/addons/kate/pate/src
used as include directory in directory /home/jaydipc/kde/kate/addons/kate/pate/src
used as include directory in directory /home/jaydipc/kde/kate/addons/kate/pate/src/test

-- Configuring incomplete, errors occurred!

我在这里做错了什么?请帮忙

谢谢。

我假设您的系统中安装了 Qt4 开发包,只是缺少 libqt4-opengl-dev。因此,最直接的解决方案就是安装它。例如像这样:

$ sudo apt-get install libqt4-opengl-dev

MacOS 上的相关问题: CMake Error: The following variables are used in this project, but they are set to NOTFOUND