未找到 GpgmeppConfig.cmake

未找到 GpgmeppConfig.cmake

我在 Windows 中使用 Craft 构建 Linux 应用程序,但是在构建 Linux 应用程序时出现以下错误:

CMake Error at CMakeLists.txt:44 (find_package): 
Could not find a package configuration file provided by "Gpgmepp" (requested version 1.13.1) with any of the following names: 
**GpgmeppConfig.cmake 
  gpgmepp-config.cmake** 
Add the installation prefix of "Gpgmepp" to CMAKE_PREFIX_PATH or set "Gpgmepp_DIR" to a directory containing one of the above files. If "Gpgmepp" provides a separate development package or SDK, be sure it has been installed.

答案1

cd .. (Get out from the Build folder)
git clone https://github.com/KDE/gpgmepp.git
cd gpgmepp/
mkdir build
cd build/
cmake ..

答案2

在 Fedora 中提供 cmake 配置的包名为gpgmepp-devel,而在 Debian 中似乎名为libgpgmepp-dev

Fedora 安装:

sudo dnf install gpgmepp-devel

相关内容