Installing Rhodes on Mac OS X – Snow Leopard

1

iphone Development Setup :

Switching to the new version of Ruby in the command prompt:

$ rvm 1.9.2

Installing Rhodes

Now for the easy part and a simple app. Rhodes is a gem based install:

$ gem install rhodes

Configuring Rhodes

Before configuring Rhodes, you’ll want to install the SDKs for your target output platforms (i.e., Android etc.). For my purposes, the Apple SDK is fine for now. This is included in the iOS/XCode developer tools so no further setup is necessary. If you want to setup other SDKs, setting up Rhodes can be accomplished by issuing:

$ rhodes-setup

This will prompt for the location of the various SDKs & NDK path.

Now for the fun part (and also easy part).

$ rhodes app helloworld

will generate an application called helloworld in the helloworld directory. The application is built using a Rake task:

$ cd helloworld
$ rake run:iphone

after about 15 seconds the application is generated and the iPhone emulator starts up….

 

 

Android Development Setup :

The steps are:

  1. Downloading of the Android SDK starter package from http://developer.android.com/sdk/index.html . This is just a 30.2 MB zipped starter package.
  2. After unizipping the package, run /tools/android . This starts a terminal window and brings up another window that allows for the download of various Android SDK packages. Some of these are quite large and do take a fair bit of time to download:

3. Go to Settings > check ‘Force https://… sources to be fetched using http://’ and press ‘Save&Apply’.
4. Download the Android SDK tools by expanding the Available Packages…Android Repository section of the interface.

 

The instructions on the Rhodes site weren’t clear as to which of these packages needed to be downloaded.
5. Go to Available Packages > Third Party Add-ons and select Google Add-ons. Again, I downloaded all of these to be safe.

 

6. Download and install the Android NDK from http://androgeek.info/?p=296

Note: I put both the SDK and NDK in my /Library folder on.

7. The final step is rhodes-setup.

$ rhodes-setup

The only two prompts of interest were for the SDK and NDK, both of which were located in my /Library folder.

The path required is to the folder level (i.e., /Library/android-sdk-mac_x86) for SDK and (/Library/android-ndk-r5b) for NDK.
Android build
The build command is a one-liner so it can’t be much easier than that…

$ rake run:android

After a couple of minutes of what looks like package building in a terminal window, up comes the device Android emulator.

now grab a cup of coffee and wait for three minutes

One thought on “Installing Rhodes on Mac OS X – Snow Leopard

Leave a Reply

Your email address will not be published. Required fields are marked *

*


six − 1 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>