Permalink
Browse files

Simpler build.

  • Loading branch information...
1 parent 94b05a2 commit c1713e3b413d4fba12fee944de121d3a6ae40dcc @chirino chirino committed Aug 23, 2012
Showing with 8 additions and 7 deletions.
  1. +8 −7 readme.md
View
@@ -193,29 +193,30 @@ Then download the snappy, leveldb, and leveldbjni project source code:
wget http://snappy.googlecode.com/files/snappy-1.0.5.tar.gz
tar -zxvf snappy-1.0.5.tar.gz
- git clone https://code.google.com/p/leveldb
+ git clone git://github.com/chirino/leveldb.git
git clone git://github.com/fusesource/leveldbjni.git
+ export SNAPPY_HOME=`cd snappy-1.0.5; pwd`
+ export LEVELDB_HOME=`cd leveldb; pwd`
+ export LEVELDBJNI_HOME=`cd leveldbjni; pwd`
Compile the snappy project. This produces a static library.
- cd snappy-1.0.5
+ cd ${SNAPPY_HOME}
./configure --disable-shared --with-pic
make
Patch and Compile the leveldb project. This produces a static library.
- cd ../leveldb
- export LIBRARY_PATH=`cd ../snappy-1.0.5; pwd`
+ cd ${LEVELDB_HOME}
+ export LIBRARY_PATH=${SNAPPY_HOME}
export C_INCLUDE_PATH=${LIBRARY_PATH}
export CPLUS_INCLUDE_PATH=${LIBRARY_PATH}
git apply ../leveldbjni/leveldb.patch
make libleveldb.a
Now use maven to build the leveldbjni project.
- cd ../leveldbjni
- export LEVELDB_HOME=`cd ../leveldb; pwd`
- export SNAPPY_HOME=`cd ../snappy-1.0.5; pwd`
+ cd ${LEVELDBJNI_HOME}
mvn clean install -P download -P ${platform}
Replace ${platform} with one of the following platform identifiers (depending on the platform your building on):

0 comments on commit c1713e3

Please sign in to comment.