User Tools

Site Tools


en:tutorials:android:setup_android

This is an old revision of the document!


This tutorial assumes that you already have successfully installed latest Android SDK and NDK. This tutorial explains how to build orx from mercurial for android (min api 2.3). API 19 is required.

1. Clone orx repository

 cd <MY_LIBS>
 hg clone https://bitbucket.org/orx/orx

2. Compile orx

 cd <MY_LIBS>/orx/code/build/android
 ndk-build
 ./install.sh
 
 For windows, use install.bat instead.

3. Compile orxTest sample

 cd <MY_LIBS>/orx/code/demo/android
 export NDK_MODULE_PATH=<MY_LIBS>/orx/code
 ndk-build
 
 For windows, substitute the export command above as:
 set NDK_MODULE_PATH=<MY_LIBS>\orx\code

4. Import Orx Java framework in Eclipse

 Import an existing project into Workspace
 browse to <MY_LIBS>/orx/extern/android
 

5. Import demo project in Eclipse

 Import an existing project into Workspace
 browse to <MY_LIBS>/orx/code/demo/android
 let eclipse build the project and deploy on your device
 

Tips for stage 5

Tips for stage 5

 When importing the demo project after importing orxLib, you may get an error of:
   * Build path contains duplicate entry: 'src' for project 'orxTest'
 
 Ignore this error. It causes no problems and you can still continue to build.
 If you receive the following error:
   * [OrxTest] Unable to resolve target 'android-19'
 
 You don't have the android SDK that the orx Demo is set to. Either download that particular SDK version with the SDK Manager or right click on the project and choose a different Android Project Build Target.

If you have completed this tutorial and would like to try again with your own project, continue to Deploying your Application to Android.

en/tutorials/android/setup_android.1408587544.txt.gz · Last modified: 2017/05/30 00:50 (7 years ago) (external edit)