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

xzv2uavs  于 2024-01-09  发布在  其他
关注(0)|答案(1)|浏览(460)

我正在使用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桌面应用程序映像,并试图运行它,但我不确定这是怎么做的。

  1. Could not find a configuration file for package "Gpgmepp" that is
  2. compatible with requested version "1.19".
  3. The following configuration files were considered but not accepted:
  4. /usr/lib/x86_64-linux-gnu/cmake/Gpgmepp/GpgmeppConfig.cmake, version: 1.13.1
  5. /lib/x86_64-linux-gnu/cmake/Gpgmepp/GpgmeppConfig.cmake, version: 1.13.1
  6. Call Stack (most recent call first):
  7. CMakeLists.txt:168 (find_soft_mandatory_package)
  8. CMake Error at CMakeLists.txt:162 (MESSAGE):
  9. Could not find the 1.19 version of Gpgmepp. If you're not interested in
  10. the features it provides set the cmake ENABLE_GPGME option to OFF
  11. Call Stack (most recent call first):
  12. CMakeLists.txt:168 (find_soft_mandatory_package)
  13. -- Configuring incomplete, errors occurred!
  14. See also "/home/jocelyne/poppler-23.11.0/build/CMakeFiles/CMakeOutput.log".

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

  1. gpg (GnuPG) 2.2.19
  2. libgcrypt 1.8.5
  3. Copyright (C) 2019 Free Software Foundation, Inc.
  4. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
  5. This is free software: you are free to change and redistribute it.
  6. There is NO WARRANTY, to the extent permitted by law.
  7. Home: /home/jocelyne/.gnupg
  8. Supported algorithms:
  9. Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
  10. Cypher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
  11. CAMELLIA128, CAMELLIA192, CAMELLIA256
  12. Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
  13. 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

相关问题