- Se você deseja compilar software por conta própria, é normal que outras bibliotecas sejam necessárias. Normalmente, essas bibliotecas estão disponíveis para o Ubuntu
- Se não, comece de novo com o ponto 1 =)
Para pdfpc
, você precisa de libPoppler
e librsvg
. Portanto, inicie uma pesquisa no seu sistema:
-
libPoppler
% apt-cache search --names-only '^libPoppler.*dev$' libpoppler-cpp-dev - PDF rendering library -- development files (CPP interface) libpoppler-dev - PDF rendering library -- development files libpoppler-glib-dev - PDF rendering library -- development files (GLib interface) libpoppler-private-dev - PDF rendering library -- private development files libpoppler-qt4-dev - PDF rendering library -- development files (Qt 4 interface) libpoppler-qt5-dev - PDF rendering library -- development files (Qt 5 interface) libpoppler-cil-dev - PDF rendering library -- CLI development files libpopplerkit-dev - GNUstep framework for rendering PDF content (development files)
e eu diria,
libpoppler-dev
está ok, portantosudo apt-get install libpoppler-dev
-
librsvg
% apt-cache search --names-only '^librsvg.*dev$' librsvg2-dev - SAX-based renderer library for SVG files (development) librsvg2-2.0-cil-dev - CLI binding for RSVG 2.22
portanto
sudo apt-get install librsvg2-dev
E agora o teste
mkdir -p ~/src
wget https://github.com/downloads/davvil/pdfpc/pdfpc-3.1.1.tgz
tar xf pdfpc-3.1.1.tgz -C ~/src
cd pdfpc-3.1.1
cmake .
e vejo
-- package 'gee-1.0' not found
CMake Error at /usr/share/cmake-3.2/Modules/FindPkgConfig.cmake:344 (message):
A required package was not found
Ok, outro pacote é necessário
% apt-cache search --names-only '^libgee.*dev$'
libgee-0.8-dev - GObject based collection and utility library (development files)
libgee-dev - GObject based collection library (development files)
portanto
sudo apt-get install libgee-dev
e novamente
cmake .
Ups, outra coisa
-- checking for module 'poppler-glib'
-- package 'poppler-glib' not found
E novamente
% apt-cache search --names-only '^libpoppler.*glib.*dev$'
libpoppler-glib-dev - PDF rendering library -- development files (GLib interface)
e
sudo apt-get install libpoppler-glib-dev
e novamente o_O
cmake .
E ... ótimo ^ _ ^
-- checking for module 'poppler-glib'
-- found poppler-glib, version 0.30.0
-- checking for module 'gtk+-2.0'
-- found gtk+-2.0, version 2.24.27
-- checking for module 'gthread-2.0'
-- found gthread-2.0, version 2.44.1
-- checking for module 'librsvg-2.0'
-- found librsvg-2.0, version 2.40.9
-- Configuring done
-- Generating done
-- Build files have been written to: /home/aboettger/tmp/pdfpc-3.1.1
Agora vamos começar o compilador via Makefile
make
E depois disso, instale via
sudo make install
ou melhor com checkinstall
sudo apt-get install checkinstall
sudo checkinstall
e temos pdfpc
instalado
% pdfpc
pdfpc v3.1.1
(C) 2012 David Vilar
(C) 2009-2011 Jakob Westhoff
Error: No pdf file given
E funciona com a amostra da página do projeto