我正在尝试为KDevelop编译Ruby插件:https://github.com/KDE/kdev-ruby
当我剪切名为build
,cd 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。
答案 0 :(得分:0)
KDevelop依赖于各种库的开发标头,并通过随附的CMake文件找到它们。
构建还使用extra-cmake-modules
包提供的CMake模块。
您必须安装它并libkf5config-dev
。
apt-file命令可以帮助您在这些情况下找到发行版的相关软件包。