Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (37 sloc) 1.889 kb

Building Android CouchDB

These instruction are for building the couchdb android binaries from source, this involved building android, erlang, spidermonkey, couchdb and various libraries from source.

Android requires around 10GB of free space to complete its build.

It is currently aimed to work on Ubuntu 10.4 and Debian Squeeze x86 32bit, other platforms should be possible.


Compiling android requires the JDK and various system dependancies, you can find these listed @

Ubuntu 10.10 32bit

# Install Java 1.5
sudo add-apt-repository "deb dapper-updates main multiverse"
sudo add-apt-repository "deb dapper-updates main multiverse"
sudo apt-get update
sudo apt-get install sun-java5-jdk
sudo update-java-alternatives -s java-1.5.0-sun

# Install dependancies
sudo apt-get install libncurses5-dev git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev autoconf2.13 autoconf2.59 libtool

# Mimic the data layout on the device
sudo mkdir /data
sudo chown dale:dale /data


$ git clone
$ cd build-android-couch
$ ./
$ ./build.resetmz
$ ./build.nspr
$ ./build.js
$ ./build.otp
$ ./build.couch
$ ./build.geocouch
$ ./


Original port by Aaron Miller (

Updated port, patches and build scripts by Matt Adams ( based on Aaron's work and using patches to CouchDB from Chris C. Coulson ( for compatibility with newer versions of libjs.

Further work on the build system by Dale Harvey ( and Matt Adams.

Jump to Line
Something went wrong with that request. Please try again.