This project depends on the Orx game engine, Boost and Scroll(a tiny utility library for ORX). It actually also depends on Eigen3, but it's already included in the source tree.
The first step is to get Orx, either:
- download (from here) all the orx-nightly development versions for the target platforms you're planning to compile the engine against. Extract the archives to a folder (all of the versions to the same folder) of your choosing.
or
- clone the orx repo and build the binaries from source.
As of writing this, the project compiles against the
9e303f3
commit.
Then create an environment variable called $ORX_DIR
that points to the extracted
orx-nightly
folder or the folder where you've cloned orx. Then go to the $ORX_DIR
folder
and issue hg clone ssh://[email protected]/enobayram/scroll
to download Scroll.
If you don't have mercurial, just download the relevant commit snapshot and put it there under
the folder scroll
.
For building the desktop versions, you need the cmake program.
###Building Pancar Engine on Windows
The engine should compile with MSVC 2013. MinGW segfaulted the last time I checked.
You'll need to download, build and install boost. In a nutshell, do in the boost root folder:
>> bootstrap
>> b2
>> b2 install
Now, in order to build the Pancar Engine, create a directory called .build
under
REPO_ROOT\physics
, start a command shell there and enter cmake ..\src
. This will
generate the .proj and .sln files for your MSVC version. Just open airhockey.sln
and compile.
###Building Pancar Engine on Linux
To build Pancar Engine:
>> cd REPO_ROOT/physics
>> mkdir .build
>> cd .build
>> cmake ../src
>> make
In order to generate an Eclipse project:
>> cd REPO_ROOT/physics
>> mkdir .build_eclipse
>> cd .build_eclipse
>> ../GenerateEclipseProject
Now you can import the project in Eclipse.
You first need to prepare an Android development environment:
- Download the Android SDK
and extract it somewhere. Create an environment variable
$ANDROID_HOME
pointing to that folder. Use thetools/android
package manager to download the Android API version 21SDK Platform
, theExtras/Android Support Repository
andExtras/Android Support Library
. I also recommend you to add theplatform-tools
folder to yourPATH
. - Download the Android NDK
and extract it somewhere. Add that folder to your
PATH
.
Go to REPO_ROOT/physics/android
and issue ./gradlew build
to compile the Android
application. You can use .gradlew installDebug
to install the .apk
to a connected
device, and .gradlew runDebug
to run it on the device, if you've set your device
for debugging directly on it.