Tuesday, 15 November 2011

Setup rhodes environment on Ubuntu

Recently I was setting up rhodes on my ubuntu machine to mobile app development, where I'd to go through multiple references. So I decided to make a write up to serve as one reference for all.

Assumption - You have ruby and rubygems installed.

sudo apt-get install sun-java6-jdk
gem install rhodes

Download android sdk from http://developer.android.com/sdk/index.html
untar the downloaded package ( android-sdk-linux)
mv android-sdk-linux /usr/local
cd /usr/local/android-sdk-linux/tools

Download android ndk from http://developer.android.com/sdk/ndk/index.html
untar the downloaded package ( Ex., android-ndk-r7 )
mv android-ndk-r7 /usr/local

Run 'rhodes-setup' and specify JDK, android sdk and ndk paths.
For our case it will look like
JDK path - /usr/lib/jvm/java-6-sun
Android SDK path - /usr/local/android-sdk-linux
NDK path - /usr/local/android-ndk-r7

Generate the application:
rhodes app test_app http://localhost:3000/application
OR create an application in the cloud using rhohub.com (preferred option)

Now 'rake run:android' and have fun :)

No comments:

Post a Comment