Skip to content
Full source build of Android stuff.
Shell Perl JavaScript
Find file
Latest commit 81bfa7f @mschoch mschoch added missing http_util.beam needed for oauth
Change-Id: I332acd1ee10c6100c30f034b0bbf0eaa9d3605de
Reviewed-by: Marty Schoch <>
Tested-by: Marty Schoch <>


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.