Introduction to Poppler
The Poppler package contains a PDF
rendering library and command line tools used to manipulate PDF
files. This is useful for providing PDF rendering functionality as
a shared library.
This package is known to build and work properly using an LFS-7.6
platform.
Package Information
-
Download (HTTP): http://poppler.freedesktop.org/poppler-0.26.4.tar.xz
-
Download MD5 sum: e58cdddfc7dc01f00bf7394e0e4f21ce
-
Download size: 1.6 MB
-
Estimated disk space required: 145 MB (building Qt4 and Qt5
libraries, additional 46 MB for the test suite and 24 MB for
poppler-data)
-
Estimated build time: 1.7 SBU (building Qt4 and Qt5
libraries, additional 0.2 SBU for the test suite for each Qt)
Additional Downloads
The additional package consists of encoding files for use with
Poppler. The encoding files are
optional and Poppler will
automatically read them if they are present. When installed, they
enable Poppler to render CJK and
Cyrillic properly.
Poppler Dependencies
Required
Fontconfig-2.11.1
Recommended
Cairo-1.12.16, libjpeg-turbo-1.3.1,
and libpng-1.6.13
Optional
cURL-7.37.1, gobject-introspection-1.40.0,
GTK+-2.24.24, Little CMS-1.19 or Little CMS-2.6,
LibTIFF-4.0.3, OpenJPEG-1.5.2,
Qt-4.8.6
(the libpoppler-qt4.so
library is
needed for PDF support in Okular),
and Qt-5.3.1
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/poppler
Installation of Poppler
In order to optionally run the test suite, additional download of
about 9 MB, using git-2.1.0, is necessary. Make sure that you do not
have the directory ../test.
git clone git://git.freedesktop.org/git/poppler/test ../test
If you are not building both Qt
libraries, jump to the following paragraph. In order to build both
Qt4 and Qt5 libraries, you need to run the install
commands twice, because although both are detected, only wrapper
for the first Qt version in PATH
is built. Either can be built first, but to facilitate the
explanation, we choose first the Qt4 library. You can do this using
source setqt4 (script
from Qt-4.8.6).
Install Poppler by running the
following commands:
./configure --prefix=/usr \
--sysconfdir=/etc \
--disable-static \
--enable-xpdf-headers &&
make
To test the results, issue: make
check.
Now, as the root
user:
make install
If you are not building both Qt
libraries, jump to the following paragraph. If you want to build
both Qt libraries, first switch
back to unpriviledged user, run source setqt5, from Qt-5.3.1, and
repeat the instructions from configuration until install. After
that, proceed to install the documents until the end.
The documents are installed using the following commands:
install -v -m755 -d /usr/share/doc/poppler-0.26.4 &&
install -v -m644 README* /usr/share/doc/poppler-0.26.4
If you downloaded the additional encoding data package, install it
by issuing the following commands as the root
user:
tar -xf ../poppler-data-0.4.7.tar.gz &&
cd poppler-data-0.4.7
Now, as the root
user:
make prefix=/usr install
Command Explanations
--disable-static
: This
switch prevents installation of static versions of the libraries.
--enable-xpdf-headers
: Install some old
Xpdf headers required by certain
programs (e.g. Okular,
LibreOffice and Inkscape).
--enable-libcurl
: Use libcurl for HTTP
support.