Compiling

Assuming you've followed the previous steps, you're probably setup to start compiling. Using CMake is the recommended way of compiling Navit for Android. Ensure that:

You have a java-jdk installed on your system. On Ubuntu:

sudo apt-get install openjdk-6-jdk

On Ubuntu, ensure that ant1.8 is installed:

sudo apt-get install ant1.8

With cmake

Ensure that you have CMake 2.8 installed.

Create a build directory - this will be the directory into which the Android version of Navit will be built. Assume we've made one in ~/src as follows:

cd ~/src
mkdir android-build

Optional: Add a SOURCE_PATH environment variable to your system, pointing to the directory in which you checked out a copy of Navit. You can leave out this step, but make sure you change $SOURCE_PATH in the next steps to the actual path of the directory.

export SOURCE_PATH=~/src/navit-svn

Step into the build directory:

cd ~/src/android-build

Run CMake (ensure that you're in the build directory when you do this!):