Installing SWFTools @ Suse 10

I like the Debian apt-get package mechanism, it simply works (Posting the statement
#sudo apt-get install swftools

would finalize this post.  In Suse however…). Recently I had to install on a Suse 10 (SLES) linux system. Although I had root access, I lack the knowledge/experience how to get the repositories of the configurations to get YAST install whatever I need.

Still, my installation of Alfresco Share had to get up and running, including the flashy previews in Alfresco Share, so I prepared to compile SWFTools myself. See my post about Installing ImageMagic @ Suse 10 as well.

  1. Install dependencies & compilation tools
  2. Download the source code
  3. Compile SWFTools
  4. Create some symbolic links to make things work (with Alfresco Share)

1. Install dependencies & compilation tools

To get the SWFTools up and running, we first have to add some dependencies using the YAST package manager.  Usually you lack the header files of some packages (graphical packages in case of SWFTools). Next to that I discovered I needed some tools to be able to compile as well. Login as root and install using YAST:

# yast -i zlib-devel libjpeg-devel giflib-devel freetype2-devel compat gcc gcc-c++

2. Download the source code

Get the tarball containing the latest stable SWFTools source from the website of I download and stored it in /opt. Unpack the tarball:
$ tar -xvf swftools-0.9.0.tar.gz

This will create a directory called swftools-0.9.0 containing the code we need for compiling.
3. Compile SWFTools
Navigate to /opt/swftools and execute the following statements to prepare and compile the code. Make sure they all succeed: (the ./ before the configure statement is mandatory!)
$ ./configure
$ make
Login as root and install the stuff we just compiled:

# make install

Now we got the pdf2swf, the app we desperately wanted to create the fancy preview of all file formats in Alfresco Share… But, where is the thingy located we just compiled?

$ whereis pdf2swf
pdf2swf: /usr/local/bin/pdf2swf

That’s where it is. let’s create a symbolic link from %alfresco_home%/bin to the pdf2swf executable. Navigate to /opt/alfresco/bin: and link to the location we just discovered calling the whereis pdf2swf command:
# cd /opt/alfresco/bin/
# ln -s /usr/local/bin/pdf2swf
Restart Alfresco and validate that Alfresco is starting without issues regarding pdf2swf. If you still notice it does not work, edit your %alfresco_home%/tomcat/shared/classes/ and uncomment the entry swf.exe in the section ‘External locations’.

1 Response to “Installing SWFTools @ Suse 10”

  1. 1 Munts December 2, 2010 at 17:21

    Thanks! same issue here and your notes helped me to fix it. Saved me a lot of time and work, much appreciated.

Comments are currently closed.