我正在尝试从源代码安装 Kjots。源代码包可在http://download.kde.org/stable/kjots/5.0.1/src/kjots-5.0.1.tar.xz
按照安装说明进行操作https://community.kde.org/PIM/KJots。但是,出现以下错误。
$ cmake .. -DCMAKE_INSTALL_PREFIX=~/kdelocalprefix/ -DCMAKE_BUILD_TYPE=debug
-- The C compiler identification is GNU 5.3.1
-- The CXX compiler identification is GNU 5.3.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:5 (find_package):
Could not find a package configuration file provided by "ECM" (requested
version 5.16.0) with any of the following names:
ECMConfig.cmake
ecm-config.cmake
Add the installation prefix of "ECM" to CMAKE_PREFIX_PATH or set "ECM_DIR"
to a directory containing one of the above files. If "ECM" provides a
separate development package or SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred!
See also "/usr/local/src/kjots-5.0.1/build/CMakeFiles/CMakeOutput.log".
有人知道如何修复上述错误吗?
答案1
该ECMConfig.cmake
文件由 Xenial 软件包提供extra-cmake-modules
,因此你需要安装它 - 可以从你最喜欢的软件包管理器或通过命令行安装
sudo apt install extra-cmake-modules
对于与以下消息相关的错误
CMake Error at CMakeLists.txt:27 (find_package):
Could not find a package configuration file provided by "KF5KCMUtils"
(requested version 5.16.0) with any of the following names:
KF5KCMUtilsConfig.cmake
kf5kcmutils-config.cmake
Add the installation prefix of "KF5KCMUtils" to CMAKE_PREFIX_PATH or set
"KF5KCMUtils_DIR" to a directory containing one of the above files. If
"KF5KCMUtils" provides a separate development package or SDK, be sure it
has been installed.
安装libkf5kcmutils-dev
包。
sudo apt install libkf5kcmutils-dev
您可能还需要这些包
libkf5kio-dev
,,,,,,,,包。libkf5parts-dev
libkf5akonadi-dev
libkf5mime-dev
libkf5akonadinotes-dev
libkf5pimtextedit-dev
libkf5kontactinterface-dev
libgrantlee5-dev