Not able to build the poppler 0.62.0, getting following error
Source Code: https://poppler.freedesktop.org/poppler-0.62.0.tar.xz
-- Package Qt5Core or Qt5Gui or Qt5Xml or Qt5Widgets or Qt5Test not found
-- Checking for module 'gobject-introspection-1.0'
-- No package 'gobject-introspection-1.0' found
-- Checking for modules 'gtk+-3.0>=3.8;gdk-pixbuf-2.0'
--
-- Could NOT find GTK (missing: GTK3_LIBRARIES GTK3_CFLAGS)
-- Checking for module 'libopenjp2'
-- No package 'libopenjp2' found CMake Error at CMakeLists.txt:199 (message): Install libopenjpeg2 before trying to build poppler. You
can also decide to use the internal unmaintained JPX decoder or none
at all.
-- Configuring incomplete, errors occurred! See also "/home/ubuntu/imagemagick_build/poppler-0.62.0/build/CMakeFiles/CMakeOutput.log".
See also
"/home/ubuntu/imagemagick_build/poppler-0.62.0/build/CMakeFiles/CMakeError.log".
I have installed libopenjp2-tools
as well, still its giving error
Best Answer
For installation of Poppler on 16.04 LTS do the following:
sudo apt-get build-dep libpoppler58
sudo apt-get install cmake
libopenjp2
withsudo apt-get install libopenjp2-7-dev
sudo apt-get install libgdk-pixbuf2.0-dev
sudo apt-get install checkinstall
Download and run the compilation:
In checkinstall session do the following:
You can verify installation of your package with
apt-cache policy libpoppler
:Binaries will be install into /usr/local/bin (you can check this with
dpkg -L libpoppler
).