我试着从源头上编译Okular。
cmake
抱怨说有很多东西丢失了。我通过谷歌手动搜索每一个错误,或通过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
)
发布于 2022-09-20 03:33:09
在https://packages.ubuntu.com上试用包搜索工具吗?也许你错过的是“折扣”套餐。
您的文章很有帮助-我错过了libmarkdown2 2-dev,尽管编译错误只提到了“折扣”!
发布于 2023-02-19 05:07:16
我在Pop!_OS 22.04LTS(基于Ubuntu22.04)上也有同样的问题,通过安装libmarkdown2-dev
和discount
可以修复它:
sudo apt install libmarkdown2-dev discount
我最初只安装了discount
软件包,但track0's的回答给了我丢失的libmarkdown2-dev
组件。
https://askubuntu.com/questions/1413317
复制相似问题