A port of Stratagus real-time strategy gaming engine for Android.
C++ C Java Python Objective-C Lua
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.bzr-builddeb
android
cmake/modules
debian
doc
gameheaders
metaserver
po
src
tools
.bzrignore
CMakeLists.txt
COPYING
README
README.md

README.md

Getting everything built

Requirements

  1. Android SDK
  2. Android NDK (revision 8b)
  3. Apache Ant
  4. SCons

Dependencies

SDL (1.2.15), libpng (1.2.50), lua (5.1.5), tolua++ (trunk)

Cloning

Make a directory and clone Stratagus and libs repos to it:

mkdir _some_dir_
cd _some_dir_
git clone https://github.com/drodin/Stratagus.git
git clone https://github.com/drodin/SDL.git
git clone https://github.com/drodin/libpng.git
git clone https://github.com/drodin/lua.git
git clone https://github.com/drodin/toluapp.git

Building Lua

cd lua
make _platform_

You need to specify the platform to build for. Run make without params to see the list of supported platforms.

Building tolua++

cd ../toluapp
scons

Generating tolua.cpp

cd ../Stratagus/src/tolua
./runtolua.sh

Building Stratagus apk

cd ../../android
ndk-build
ant debug

Grab your .apk in the bin directory ;)