Installation instructions

Ubuntu, Mint, or similar Linux:
Method 1 (easiest):

  • Download the .deb.
  • Double-click it.
  • Click "Install Package".

Method 2 (recommended as it will keep the package updated):

  • Open the Software Sources.
  • Add the following source:
  • If it complains about something not being found, open it and manually change where it says "natty", "oneiric", "julia", "katya" or "isadora" to "lucid".
  • Open the Software Center and install swift-swf.
Other Linux:
Note: Swift will run on Windows, but it won't compile the .swfs correctly yet.
  • Download and install PythonPyGTK, SWFTOOLS, PILNumpy, and Gnash, in that order. If SWFTOOLS complains about not being able to create a folder, right-click the .exe and select "Run as administrator".
  • Download the tarball.
  • Extract the tarball to your home folder. If you don't have something that can extract .tar.gz files already, I recommend 7zip.
  • Open a command prompt. If you don't know how, press the Windows key + "R", and type "cmd" and press Enter.
  • Type this into the command prompt:
    cd trunk/bin
    C:\Python27\python.exe swift-swf
    It should run, although you cannot export .swf files yet.
Mac OSX:
I haven't gotten it to run successfully under OSX yet. So if you have a Mac, here is what I would recommend: I got it running, but gnash isn't yet. This will still give you a more functional system.
  • Install Virtualbox.
  • Download Ubuntu.
  • Make a new virtual machine. Call it "ubuntu". Follow the steps leaving everything at defaults.
  • Start the new machine. When the first run wizard pops up, select the Ubuntu ISO you downloaded.
  • Install Ubuntu on the virtual machine.
  • Follow the steps above to install SWIFT on Ubuntu.
On the other hand, to run it natively:
  • Download MacPorts.
  • Run in terminal:
    sudo port -v selfupdate
    sudo port install py27-numpy py27-gtk py27-pil gmake antigraingeometry gettext boost curl jpeg libungif libsdl fontconfig freetype cairo -b
  • This will take a long time if you don't already have these installed. Most recently it took me twenty-five minutes, but this is the first time I have run it with the -b switch and I already had some packages installed. The first time I installed something with MacPorts it took a few hours.
  • Download my swift package and install it.
  • It installs things to the wrong place. Run in terminal:
    sudo cp -r /System/Library/Frameworks/Python.framework/Versions/2.6/share/swift-swf/ui /opt/local/Library/Frameworks/Python.framework/Versions/2.7/share/swift-swf/

    sudo cp -r 
    /System/Library/Frameworks/Python.framework/Versions/2.6/share/swift-swf/media /opt/local/Library/Frameworks/Python.framework/Versions/2.7/share/swift-swf/media
  • Download the SWFTools tarball.
  • Extract it by clicking it.
  • In a terminal, run:
    cd Downloads/swftools-2011-10-10-1647



    sudo make install
  • And finally:
  • swift-swf