Skip to content

Building from source

Jayen Ashar edited this page Jun 3, 2016 · 5 revisions

Debian and variants (e.g., ubuntu)

$ sudo apt-get update
$ sudo apt-get install build-essential automake1.10 libtool
$ git clone https://github.com/deephacks/lmdbjni
$ cd lmdbjni && mvn clean install -P linux64

Windows

  1. Download and install the free Microsoft Windows SDK, which includes headers, libraries and build tools needed to compile the JNI library.
  2. Copy lmdjni-win64/headers/*.h to $JAVA_HOME/include
  3. Run a CMD shell as Administrator from the start menu under > All programs > Windows SDK 7.0 > CMD shell.
  4. Check that vcbuild exist by typing vcbuild
  5. Build the win64 jar from lmdbjni root dir mvn -P win64 install (failing tests can be skipped using -DskipTests)

Verified to work on Windows 7 Home Premium SP1 on VirtualBox 4.3.18.

Android

  1. Download and install Android NDK.
  2. export NDK environment variable to where it was installed.
  3. Build the android jar from lmdbjni root dir mvn -P android install
  4. Optionally modify agcc to platform of choice.
Clone this wiki locally