Game Development Reference
In-Depth Information
You will also write two custom shell scripts that will save you a lot of headaches in the process of
compiling a hybrid game.
Getting the Android Source
To store the source, Google uses a software versioning tool dubbed Gittool (available from
http://git-scm.com/ ). Depending on your Ubuntu version, you may need to install some required
packages to use it. To make sure everything is present, open a console and type the following
command (all on one line):
$ sudo apt-get install git-core gnupg
sun-java5-jdk flex bison gperf
libsdl-dev libesd0-dev libwxgtk2.6-dev
build-essential zip curl libncurses5-dev zlib1g-dev
This command will install the required packages to run Git. It requires system administrator
(sysadmin) access.
Tip For more details on setting the Android source, see the Android Open Source Project at
http://source.android.com/download .
You also need to install and configure a tool called repo , which is provided by Google to facilitate
working with Git. Create a folder called bin in your home directory and download repo :
$ cd ~
$ mkdir bin
$ curl http://android.git.kernel.org/repo >~/bin/repo
$ chmod a+x ~/bin/repo
Add the bin folder to your search path with the following command:
$ export PATH=$HOME/bin:$PATH
Add this command to the file $HOME/.bashrc if you want to make it available every time you log in to
your system.
Next, create a folder called mydroid in your home directory to store the source, and then change to it:
$ mkdir mydroid
$ cd mydroid
Finally, download the code:
$ repo init -u git://android.git.kernel.org/platform/manifest.git
$ repo sync
Search WWH ::




Custom Search