Some Notes on an Unsuccessful Install Attempt of Particle Code for AS3.0 Developers on OS X 10.5.8

Particle Code (BETA) is a new Eclipse plugin that aims to allow AS3.0 & Java developers (and soon C#) to be able to port their applications to HTML5, iOS, Android, WindowsPhone, Blackberry & WebOS via the Particle SDK.

After lots of back & forth, it looks like the reason this install failed is because I tried to install Python 2.6 manually while using MacPorts to install the Python Image Library. The recommended way is to use Macports (or similar) to install both with all necessary components.

1. Sign up for their website account & they’ll email you a login/pass
2. To install on OS X 10.5.8, you need:

  • JDK 1.6 (64-bit)
  • Python 2.6
  • – Python Imaging Library (PIL) 1.1.7 or newer
  • – Eclipse 3.4+ (64-bit)

3. Check if you have JDK 1.6 installed:

  • go to Applications/Utilities/Java Preferences
  • if you see Java SE 1.6 under the General tab, drag it up to the top of the list
  • then open Terminal, type “java -version” at the prompt, you should see something like ‘java version “1.6.0_24″‘

4. Check if you have Python 2.6 installed

  • in Terminal type “python -h”
  • you should see a path like: /System/Library/Frameworks/Python.framework/Versions/2.5/…. (Mac OS X 10.5 comes with Python 2.5)

“/2.5/” in that path means you have to install Python 2.6 [1]:
http://www.python.org/download/releases/2.6.6/

After you run the installer, entering “python – h” in Terminal should show “/2.6/” as your default Python version: /Library/Frameworks/Python.framework/Versions/2.6/

5. Download the Python Image Library 1.1.7

  • it should auto unzip into a folder on you desktop, open it
  • There’re manual ways to install it that take a bunch of steps & possible manual installs
    of additional components required; look for a file named README in the PIL folder
  • there’re 2 tools that are supposed to simplify installing PIL: MacPorts & Fink, both require Xcode to be installed on your machine.
  • Main advantage of MacPorts in general: “Installs automatically any required support software, known as dependencies, for a given port.” http://guide.macports.org/
  • I installed MacPorts for Leppard from here: http://www.macports.org/install.php
  • run “sudo port -v selfupdate” to make sure MacPorts is up to date

I ran “sudo port install py26-pil” and got a whopping list of dependencies to be installed for PIL (which MacPorts did for me):

—> Computing dependencies for py26-pil
—> Dependencies to be installed: freetype zlib jpeg lcms tiff py26-tkinter python26 bzip2 db46 gdbm gettext expat libiconv gperf ncurses ncursesw openssl python_select readline sqlite3 tk Xft2 fontconfig pkgconfig xrender xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 xorg-libpthread-stubs xorg-xcb-proto libxml2 xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-renderproto tcl xorg-libXScrnSaver xorg-libXext xorg-scrnsaverproto…

This took a little while… wait until you see this line: [Process completed]…

NOTE: MacPorts may try to make Python 2.7 or later your default version of Python.
Since ParticleCode doesn’t work with Python 2.7 or 3.x, you might need to manually switch to 2.6:
“To make python 2.6 the default (i.e. the version you get when you run ‘python’), please run: sudo port select –set python python26”

6. Install Eclipse, if you need to.

I already have Eclipse 3.6 installed, so the only thing that needs doing is the memory allocation part specified on ParticleCode.com’s download page.

7. Install ParticleCode plugin for Eclipse….

NOTES:
========
1. “The Particle Platform will not work with Python 2.7 or Python 3 distributions.”
http://www.particlecode.com/account/download/#python

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s