snappy-java/INSTALL

43 lines
1.3 KiB
Plaintext
Raw Normal View History

2011-03-30 11:28:49 +02:00
[Installation note of snappy-java]
2011-03-30 09:17:20 +02:00
2011-03-30 16:03:52 +02:00
= Required libraries for building snappy-java =
2011-03-30 09:17:20 +02:00
[For all platforms]
* Java 6 (JDK1.6) http://java.sun.com/
2011-03-30 11:28:49 +02:00
- set JAVA_HOME environment variable to the Java installation folder (e.g. JAVA_HOME=C:/Program Files/Java/jdk1.6.0_24 in Windows)
2011-03-30 09:17:20 +02:00
* Maven 3.x http://maven.apache.org/
2011-03-30 16:03:52 +02:00
- Check mvn command can be run from your command line.
2011-03-30 09:17:20 +02:00
[Windows (32/64bit)]
* GNU make
2011-03-30 16:03:52 +02:00
* And also tar, curl, cp, rm, grep commands are needed. (I use Cygwin for building snappy-java in Windows)
2011-03-30 09:17:20 +02:00
[Windows (64-bit)]
* Download MinGW-w64 http://sourceforge.net/projects/mingw-w64/
* Set PATH to the following commands in the downloaded archive:
- x86_64-w64-mingw32-g++
- x86_64-w64-mingw32-strip
2011-03-30 11:28:49 +02:00
NOTICE: Do not use the Cygwin version of MinGW-w64. It fails to build assemblies for 64bit environment.
2011-03-30 09:17:20 +02:00
[Windows (32-bit)]
* Install MinGW http://www.mingw.org/
* Set PATH to the following command in MinGW package
- mingw32-g++
- strip
2011-03-30 16:03:52 +02:00
To build x86 (32bit) dll using 64-bit Windows, use "make win32" target.
2011-03-30 11:28:49 +02:00
= Building snappy-java =
2011-03-30 09:17:20 +02:00
2011-03-30 11:28:49 +02:00
To build jar file of snappy-java, type:
2011-03-30 09:17:20 +02:00
$ make
2011-03-30 16:03:52 +02:00
A native library for your machine environment and a jar package target/snappy-java-(version).jar are produced in the target folder.
2011-03-30 11:28:49 +02:00
2011-03-30 09:17:20 +02:00