forked from chirino/lmdbjni
-
Notifications
You must be signed in to change notification settings - Fork 28
Building from source
Jayen Ashar edited this page Jun 3, 2016
·
5 revisions
$ 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
- 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
)
Verified to work on Windows 7 Home Premium SP1 on VirtualBox 4.3.18.
- 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
- Optionally modify agcc to platform of choice.