Installation
From Swftools
- How to compile/link swftools on Unix/Linux/BSD?
- Download swftools-0.x.x.tar.gz. Then type, on the command-line:
tar -zvxf swftools-0.x.x.tar cd swftools-0.x.x ./configure make make install
- (you will have to be root for the last step)
- What libraries do I need to compile swftools on Unix/Linux/BSD?
- You need freetype and jpeglib to compile pdf2swf. Links:
* freetype: http://www.freetype.org * jpeglib: http://www.ijg.org/files/
- NB jpeglib is now at version 8. Version 6, appears to be no longer available. Should you happen to know a link, please post it here.
- For the later versions you will also need to place the tar g'zipped distribution of xpdf in the lib/pdf folder of the unpacked SWFTools distribution, i.e.
* cd swftools/lib/pdf * wget ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02.tar.gz * cd ../../ * ./configure [ -- your_compiler_flags ]
- When compiling the sourcecode version, configure doesn't find my jpeglib!
- In case some of your libraries/include files are installed in /usr/local, try the following:
rm -f config.cache LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" ./configure
- Furthermore, a new installation of jpeglib (the following assumes it's in /usr/local/lib) often requires doing a:
ranlib /usr/local/lib/libjpeg.a ldconfig /usr/local/lib
- In order to install jpeglib, it's furthermore been remarked that you need to do:
make install-lib make install-headers
- If it still doesn't work, try removing the file "config.cache" before running configure again.
- There are problems during compilation
- Error messages complain about "undefined reference to `operator new(unsigned)'" as well as "undefined reference to `__gxx_personality_v0'".
- Try running configure as
LDFLAGS=-lstdc++ ./configure
- How do I compile swftools on Mac OS X?
- Try the version available from Macports, and, if need be, the Porticus GUI installer that overlays it:
* HomeBrew: http://mxcl.github.com/homebrew/ * SWFTools on Macports: http://www.macports.org/ports.php?by=name&substr=swftools * Porticus COCOA GUI: http://porticus.alittledrop.com
- Cross compiling from Linux to other platforms ( for those whom may like to live life slightly on the edge ).
Try one of these two self-build environments. They may ( or may not ) ease the pain. ;o) The latter link, detailing Ron Burkey's sofware solution, also permits compilation for Apple Mac OS X:
* MingGW Cross Volker Grabsch et al * I'm Cross! Ron Burkey