Okular is a document viewer for KDE. It can view documents of many types including PDF, PostScript, TIFF, Microsoft CHM, DjVu, DVI, XPS and ePub.
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
Download (HTTP): https://download.kde.org/stable/release-service/23.04.1/src/okular-23.04.1.tar.xz
Download MD5 sum: cbb5c9f0125beaeb7875c1eba5c5dd33
Download size: 8.1 MB
Estimated disk space required: 82 MB
Estimated build time: 0.7 SBU (using parallelism=4)
libkexiv2-23.04.1, libtiff-4.5.1, and Poppler-23.07.0 (built with Qt5, required for PDF support)
qca-2.3.6, discount, DjVuLibre, kpimtextedit, libspectre (for PostScript support), libchm, libepub, and Mobipocket
First, it is needed to increase the C++ standard used, because Poppler-23.07.0 requires C++17:
sed -i s/14/17/ CMakeLists.txt
Install Okular by running the following commands:
If any of the optional dependencies are installed, remove the associated reference in the SKIP_OPTIONAL environment variable.
mkdir build && cd build && SKIP_OPTIONAL='LibSpectre;CHM;LibZip;DjVuLibre;EPub;QMobipocket;Discount' cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_TESTING=OFF \ -DFORCE_NOT_REQUIRED_DEPENDENCIES="$SKIP_OPTIONAL" \ -Wno-dev .. && make
This package does not come with a test suite.
Now, as the root
user:
make install