forked from chirino/lmdbjni
-
Notifications
You must be signed in to change notification settings - Fork 28
Building from source
Kristoffer Sjögren edited this page Nov 19, 2015
·
5 revisions
$ 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
- Download and install the free Microsoft Windows SDK, which includes headers, libraries and build tools needed to compile the JNI library.
- Copy lmdjni-win64/headers/*.h to $JAVA_HOME/include
- Run a CMD shell as Administrator from the start menu under > All programs > Windows SDK 7.0 > CMD shell.
- Check that
vcbuild
exist by typingvcbuild
- Build the win64 jar from lmdbjni root dir
mvn -P win64 install
(failing tests can be skipped using-DskipTests
)
- Download and install Android NDK.
- export NDK environment variable to where it was installed.
- Build the android jar from lmdbjni root dir
mvn -P android install