Installing swftools on Mac OS X Leopard

Some time has passed since my last swftools install documented in this blog post. Two important things have happened since then, first Apple came out with a new OS 10.5 Leopard and swftools is now included under fink. Fink is a utility that allows for the pain free installation of open source *nix software under Darwin. To get swftools running under Leopard we need to first install fink and then use fink to install swftools.

This post would be almost over if fink were available as a binary package for Leopard. Unfortunately at the time of writing in order to get fink running on 10.5 we need to compile it from source. Make sure to check the fink site to see if a binary package has been released for Leopard. To download the source code go to the download section of the fink site located here. I'll be using the latest version, which is fink-0.28.1. Ok let's get started:

1. Make sure you have XCode installed.

2. Go to the directory where you downloaded fink and extract the downloaded archive by running the following command
tar xzvf fink-0.28.1.tar.gz

3. Go to the newly extracted fink-0.28.1 directory.

4. Run the command ./bootstrap.

5. Fink needs root privileges to be installed, when prompted which method to use I chose sudo, which is the default selection [1]. You will then need to enter your password.

6. The installer offers the option of selecting where you would like to install fink. I just left the default location /sw.

7. You will get asked a couple dozen questions to which you could safely leave the default values by hitting the enter key. The important one to change is when the installer prompts you about the "unstable" tree. It is very important that you answer Y so that packages from the "unstable" tree are included with fink. Swftools is currently a part of that tree in version 0.8.1-2.

8. Once everything is done compiling and linking run

fink selfupdate

and leave the default selection of using rsync for the self update method.

9. Now it's time to install swftools. Just run the command

fink install swftools

You will be notified that 16 additional required packages will be installed. Just hit enter to install all of them.

10. Swftools 0.8.1-2 are now installed in /sw/bin/ or whatever directory you specified in step 6.

To verify that you have swftools installed correctly just run /sw/bin/pdf2swf --version. You should see output similar to the one below:

pdf2swf - part of swftools 0.8.1

Hopefully soon enough there will be a binary package for fink so the install will be much simpler.

Comments

7 Responses to “Installing swftools on Mac OS X Leopard”


  1. 1 Lucas

    Thanks for those information :)

  2. 2 patrick

    heya, fink offers a binary package.
    maybe that’s why I’m all confused now. do you have a hint on how to continue installing swftools!?

    thanks so much
    p/

  3. 3 Dustin

    I installed the Fink 0.9.0 Binary Installer (Intel) and ran fink selfupdate, but the command fink install swftools gives me the following error message:

    “Information about 2519 packages read in 0 seconds.
    Failed: no package found for specification ’swftools’!”

    Any suggestions on how to proceed.?

    Thank you.

  4. 4 Dustin

    Nevermind. It just wasn’t listed in Fink’s “stable” directory. If anyone else has this problem, you just have to set Fink up to allow it to install items in the “unstable” tree… for more information see Q5.8 and Q5.9 at: http://www.finkproject.org/faq/usage-fink.php?phpLang=en

    Now, does anyone know how to use swftools without the GUI (http://sourceforge.net/projects/qpdf2swf).? Please help. Thanks in advance.

  5. 5 steff

    I have the swftools installed I think. How do I make the pdf to swf work? I am not overly familiar with command line or other things, biut I have gotten this far. so I figured it must be close…

  6. 6 hristo

    Steff,
    You can check out the pdf2swf manual page. Also check out google there’s plenty of examples there.

  1. 1 Bram.us » Compiling SWFTools on Mac OS X Leopard

Leave a Reply