Skip to content

Building from source

Kristoffer Sjögren edited this page Nov 20, 2015 · 5 revisions

Debian

$ sudo apt-get install build-essential automake1.10 libtool
$ sudo apt-get update
$ 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
Clone this wiki locally