Blog

How to install PDF2SWF, PDFTools in Debian.

First you need the needed repositories.

wget https://download.savannah.gnu.org/releases/freetype/freetype-2.4.0.tar.gz
wget https://www.ijg.org/files/jpegsrc.v7.tar.gz
wget https://www.swftools.org/swftools-2013-04-09-1007.tar.gz
 
tar -zvxf swftools-2013*
tar -zvxf jpegsrc.v7
tar -zvxf freetype*
cd jpegsrc.v7
./configure
make
make install
cd freetype-2.4.0
./configure
make
make install
cd swftools-2013-04-09-1007
./configure
make
make install

modules/.././types.h:36:2: #error "no way to define 64 bit integer"
modules/.././types.h:39:2: #error "don't know how to define 32 bit integer"
modules/.././types.h:42:2: #error "don't know how to define 16 bit integer"
modules/.././types.h:45:2: #error "don't know how to define 8 bit integer"

The first solution.

ldconfig /usr/local/lib
./configure

Given that, not even then I got to install it, proceed and clone the master branch on Github, that seems to work perfectly fine.

So the solution I found somewhere:

apt-get install gcc g++ zlib1g-dev make libgif-dev
wget https://download.savannah.gnu.org/releases/freetype/freetype-2.4.9.tar.gz
tar xzvf freetype-*.tar.gz
cd freetype*
rm -f config.cache
ldconfig /usr/local/lib
LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" ./configure
make
make install
cd ..
wget https://www.ijg.org/files/jpegsrc.v8d.tar.gz
tar xzvf jpeg*.tar.gz
cd jpeg*
rm -f config.cache
LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" ./configure
make
make install
cd ..
wget https://www.swftools.org/swftools-0.9.1.tar.gz
tar xzvf swftools-*.tar.gz
wget ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.03.tar.gz
mv xpdf-*.tar.gz swftools-*/lib/pdf
cd swftools-*
LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" ./configure
make
make install
cd ..
rm -r jpeg*
rm -r swftools*
rm -r freetype*
ddemuro
administrator

Sr. Software Engineer with over 10 years of experience. Hobbist photographer and mechanic. Tinkering soul in an endeavor to better understand this world. Love traveling, drinking coffee, and investments.

You may also like

Leave a Reply

Recent Comments

    %d bloggers like this: