找不到折扣(缺少:Discount_LIBRARIES)

找不到折扣(缺少:Discount_LIBRARIES)

我尝试从源代码编译 Okular。

cmake抱怨缺少很多东西。我手动通过 Google 搜索每个错误,或者通过apt search尝试找出正确的 Ubuntu 软件包(非常烦人的过程... 有没有更简单的方法?)。

到目前为止我已经:cmake build-essential libqt5svg5-dev libkf5activities-dev libphonon4qt5-dev libtiff-dev libkf5purpose-dev libqt5texttospeech5-dev libpoppler-dev libpoppler-cpp-dev libpoppler-qt5-dev libfreetype-dev libspectre-dev libkf5kexiv2-dev libzip-dev libdjvulibre-dev libqmobipocket-dev libmarkdown2-dev libepub-dev libchm-dev

但是,我被困在这一点上:

-- Checking for module 'libmarkdown'
--   No package 'libmarkdown' found
-- Could NOT find Discount (missing: Discount_LIBRARIES) 
-- Checking for module 'libmarkdown'
--   No package 'libmarkdown' found
-- Could NOT find Discount (missing: Discount_LIBRARIES) 
...

-- The following REQUIRED packages have not been found:

...
 * Discount, A library that gives you formatting functions suitable for marking down entire documents or lines of text, <https://www.pell.portland.or.us/~orc/Code/discount/>
   Support for Markdown documents in Okular. You can make the dependency optional adding Discount to the FORCE_NOT_REQUIRED_DEPENDENCIES cmake option
...

我已经安装了,libmarkdown2-dev但这似乎没有帮助。(我是通过 找到这个的apt search Discount。)

那么,我需要安装什么来解决缺少Discount库的这个错误?

(有关的:同样的问题LibSpectre

答案1

尝试使用软件包搜索工具https://packages.ubuntu.com? 也许您错过的是“折扣”套餐。

您的帖子很有帮助 - 尽管编译错误只提到“折扣”,但我却缺少 libmarkdown2-dev!

答案2

libmarkdown2-dev我在 Pop!_OS 22.04 LTS (基于 Ubuntu 22.04) 上遇到了同样的问题,通过安装和可以解决这个问题discount

sudo apt install libmarkdown2-dev discount

我原本只安装了discount包,但是轨道0的回答给了我缺失的libmarkdown2-dev部分。

相关内容