Skip to content
Peter Österlund edited this page Nov 9, 2015 · 4 revisions

Building DroidFish

Introduction

This page explains how to build DroidFish using eclipse in linux and windows.

Preparations

To build DroidFish, you need a working eclipse installation with git support.

Building DroidFish

  1. To build the DroidFish Android app, you first need to install the Android SDK and the Android NDK from http://developer.android.com/sdk/index.html. SDK and NDK installation instructions can be found elsewhere.

  2. Disable "Build automatically" from the "Project" menu.

  3. Checkout the eclipse projects:

  4. In eclipse, select File -> Import -> Git -> Projects from Git.

  5. Select "Clone URI", click next.

  6. In the URI field, enter https://github.com/peterosterlund2/droidfish.git, click next.

  7. Click next and finish to import all projects.

  8. If java is installed in a non-standard location on your computer or you are using windows, change the BinBook_builder eclipse builder:

  9. Right click on CuckooChessEngine in the package explorer, select Properties.

  10. Click Builders -> BinBook_builder -> Edit.

  11. Change "Location" to point to your java executable. In windows, this is likely C:\Windows\System32\java.exe.

  12. Define the NDK environment variable to point to your NDK installation directory, or modify the DroidFish Native_Builder (DroidFish -> Properties -> Builders -> Native_builder -> Edit -> Location) to point to the ndk-build script in the NDK installation directory. If you are using windows, point to the ndk-build.cmd script in the NDK installation directory.

  13. Enable "Build automatically" from the "Project" menu.

Clone this wiki locally