Eclipse Setup - tiancode/GamePlay GitHub Wiki
Before you get started you will have to download the dependencies separately:
Download and install Eclipse
Create an Eclipse workspace one level above the GamePlay codebase. Ex:
/home/seanpaultaylor/code
Therefore your GamePlay repo would be cloned to:
/home/seanpaultaylor/code/GamePlay
- Open Eclipse
- Click Help -> Install New Software
- Click Work With: 'Add' button
- Add the CDT plugin using location:
http://download.eclipse.org/tools/cdt/releases/indigo
sudo apt-get install build-essential gcc cmake libglu1-mesa-dev libogg-dev libopenal-dev libgtk2.0-dev curl libpcrecpp0:i386 lib32z1-dev
./install.sh
Import each of the following linux eclipse projects:
- GamePlay/gameplay
- GamePlay/samples/browser
- GamePlay/samples/character
- GamePlay/samples/lua
- GamePlay/samples/mesh
- GamePlay/samples/particles
- GamePlay/samples/racer
- GamePlay/samples/spaceship
For each:
- Right-click the Project Explorer and click Import.
- Click General -> Existing Project into Workspace.
- Select root directory for each of the paths listed above.
- DO NOT select copy projects into workspace.
Build and Run As/Debug As
Instructions for using Eclipse to build and debug on Android devices. The Eclipse IDE setup for Android development works on Linux, MacOSX and Windows desktop environments.
- Download and install the Android SDK.
- Make sure
<android-sdk-path>/tools
and<android-sdk-path>/platform-tools
are added to PATH.
- Download and install the Android NDK.
- Make sure
<android-ndk-path>
is added to PATH.
- Download and install Apache Ant.
- Make sure
<ant-path>/bin
is added the PATH.
- Run the SDK Manager to install SDK Platform for Android 4.1.2 (API 16)
- Open Eclipse
- Click Help -> Install New Software
- Click Work With: 'Add' button
- Add the Android plugin using location:
https://dl-ssl.google.com/android/eclipse/
- Eclipse -> Window -> Preferences -> Android -> set path to SDK
- Eclipse -> Window -> Preferences -> Android -> NDK -> set path to the NDK
Import each of the following android eclipse projects:
- GamePlay/gameplay/android
- GamePlay/samples/browser/android
- GamePlay/samples/character/android
- GamePlay/samples/lua/android
- GamePlay/samples/mesh/android
- GamePlay/samples/particles/android
- GamePlay/samples/racer/android
- GamePlay/samples/spaceship/android
For each:
-
Right-click the Project Explorer and click Import.
-
Click General -> Existing Project into Workspace.
-
Select root directory for each of the paths listed above.
-
DO NOT select copy projects into workspace.
-
Run 'ant' from the command-line of sample directory to copy asset for eclipse.
GamePlay/samples/browser/android> ant debug
-
Build All
-
Debug As -> Android Native Application
Additional instructions for using Eclipse to build and debug on BlackBerry devices. Same instructions as Android. However you must install the BlackBerry Eclipse plugin for Android Player. This provides a proxy to be run before running. For more Information:
http://developer.blackberry.com/android/documentation/install_bb_plugin_adt.html
- The maximum API level supported on BlackBerry 10 is Android 4.3 (API 18).
- Open Eclipse
- Click Help -> Install New Software
- Click Work With: 'Add' button
- Add the Android plugin using location:
http://developer.blackberry.com/android/downloads/eclipseplugin/