cmake 更新gpgmepp从1.13到最新(至少1.19)

xzv2uavs  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(132)

我正在使用Ubuntu 20.04,并试图添加一个数字证书到Okular签署pdfs. Okular requires Poppler to be at least version 21.01,以添加数字证书签名,但与此配套的Poppler版本是0.86.1。所以我一直在尝试更新Poppler版本,下面是非常有用的说明。
当尝试运行cmake -DTESTDATADIR=./test -DCMAKE_INSTALL_MANDIR:PATH=/usr/local/share/man ..时,我得到了一个关于找不到“Gpgmepp”提供的包配置文件的错误,它找不到1.19版本的Gpgmepp。
所以我试着用sudo apt-get install libgpgmepp-dev安装gpgmepp,但是安装的版本是1.13.1,看起来有点过时。
我不太确定如何将libgpgmepp更新到最新版本(或至少1.19),我尝试转到GnuPG website to download the latest binary release,这是一个GnuPG桌面应用程序映像,并试图运行它,但我不确定这是怎么做的。

Could not find a configuration file for package "Gpgmepp" that is
  compatible with requested version "1.19".

  The following configuration files were considered but not accepted:

    /usr/lib/x86_64-linux-gnu/cmake/Gpgmepp/GpgmeppConfig.cmake, version: 1.13.1
    /lib/x86_64-linux-gnu/cmake/Gpgmepp/GpgmeppConfig.cmake, version: 1.13.1

Call Stack (most recent call first):
  CMakeLists.txt:168 (find_soft_mandatory_package)

CMake Error at CMakeLists.txt:162 (MESSAGE):
  Could not find the 1.19 version of Gpgmepp.  If you're not interested in
  the features it provides set the cmake ENABLE_GPGME option to OFF
Call Stack (most recent call first):
  CMakeLists.txt:168 (find_soft_mandatory_package)

-- Configuring incomplete, errors occurred!
See also "/home/jocelyne/poppler-23.11.0/build/CMakeFiles/CMakeOutput.log".

字符串
当我运行gpg2 --version时,输出为

gpg (GnuPG) 2.2.19
libgcrypt 1.8.5
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /home/jocelyne/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cypher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2


如果有人能告诉我如何将gpgmepp更新到>1.19(如果gpgmepp与gnupg不同,我不完全确定),或者我如何告诉cmake使用更新的gnupg,这样我就可以最终将Poppler更新到23.11版本,这将是非常有帮助的!

kmynzznz

kmynzznz1#

你应该尝试自己编译和安装gpgme,就像你在Poppler上做的那样,你可以在他们的git repo上找到如何编译gpgme的说明(参见README和REAMALL文件):
https://github.com/gpg/gpgme

相关问题