Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (33 sloc) 1.56 KB

Building Couchbase Mobile for Android

These instructions are for building Couchbase Mobile for Android binaries from source. This involves building openssl, spidermonkey, erlang, CouchDB, GeoCouch, and the Couchbase Mobile Android Service from source.

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


You will also need to create a staging directory for the installation process:

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

Set environment variables pointing to location of SDK and NDK (or edit scripts/env)



$ ./build.openssl
$ ./build.resetmz
$ ./build.nspr
$ ./build.js
$ ./build.erlang
$ ./build.couch
$ ./build.geocouch
$ ./build.couchservice 2.0.0-dp r14b03
$ ./ 2.0.0-dp r14b03


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.

Something went wrong with that request. Please try again.