h1. How to run HelloWorld and tests on linux
This document will describe how to run HelloWorld and tests on linux.
h2. 1. Set up environment
- get cocos2d-x source code ** get latest code from git ** get released version
- install jdk <pre> sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" sudo apt-get update sudo apt-get install sun-java6-jdk </pre>
- install eclipse Don't install eclipse by apt-get command, because the version of eclipse is too old. Down from the link: http://www.eclipse.org/downloads/ For Eclipse 3.5 or newer, the "Eclipse Classic" version is recommended by ADT10.0.0.
- install cdt plugin
- install needed libs <pre>sudo apt-get install libgl1-mesa-dev libglfw-dev freeglut3-dev libzip-dev</pre> If you meet problem as me, maybe you should run the command before installing the libs <pre>sudo apt-get -f</pre>
h2. 2. Run with makefile
h2. 3. Run with eclipse
h2. 4. Run on android emulator
- install android sdk
- install ADT
h3. 4.1 By eclipse
h3. 4.2 By makefile