kdev-ruby的CMakeFile.txt需要像KF5Config.cmake这样奇怪的东西

时间:2018-01-11 06:38:57

标签: cmake kdevelop

我正在尝试为KDevelop编译Ruby插件:https://github.com/KDE/kdev-ruby

当我剪切名为buildcd build的文件夹并运行cmake ..时,我收到了很多错误:

CMake Error at CMakeLists.txt:13 (include):
include could not find load file:

    KDEInstallDirs


CMake Error at CMakeLists.txt:14 (include):
include could not find load file:

    KDECMakeSettings


CMake Error at CMakeLists.txt:15 (include):
include could not find load file:

    KDECompilerSettings


CMake Error at CMakeLists.txt:16 (include):
include could not find load file:

    ECMQtDeclareLoggingCategory


CMake Error at CMakeLists.txt:24 (find_package):
By not providing "FindKF5.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "KF5", but
CMake did not find one.

Could not find a package configuration file provided by "KF5" (requested
version 5.15.0) with any of the following names:

    KF5Config.cmake
    kf5-config.cmake

Add the installation prefix of "KF5" to CMAKE_PREFIX_PATH or set "KF5_DIR"
to a directory containing one of the above files.  If "KF5" provides a
separate development package or SDK, be sure it has been installed.

如何在Ubuntu上安装提供KF5Config.cmake的内容?最好不要重建KDevelop或KDE或Qt5。

1 个答案:

答案 0 :(得分:0)

KDevelop依赖于各种库的开发标头,并通过随附的CMake文件找到它们。

构建还使用extra-cmake-modules包提供的CMake模块。

您必须安装它并libkf5config-dev

apt-file命令可以帮助您在这些情况下找到发行版的相关软件包。