User Tools

Site Tools


en:tutorials:android:setup_android

This is an old revision of the document!


 Please note this guide is on hold as Eclipse is no longer supported in the bitbucket version of Orx.
 Old versions of Orx may be ok. New pages coming soon for Android Studio.

Compiling orx and the Android demo

To follow this guide, you must first ensure you have completed the Getting android tools and orx step.

1. Compile orx

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

2. 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

3. Import Orx Java framework in Eclipse

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

4. 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 4

Tips for stage 4

 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 required android SDK (API 19) that the orx Demo is set to. Use the SDK Manager to check and download API 19.

If you have completed this tutorial and would like to try it with your own project, continue to Using the Android demo as a template for your own projects.

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