aboutsummaryrefslogtreecommitdiff
path: root/BUILDING.txt
diff options
context:
space:
mode:
authorTom Gall <tom.gall@linaro.org>2011-08-09 14:49:46 -0500
committerTom Gall <tom.gall@linaro.org>2011-08-09 14:49:46 -0500
commit4a72099711359606b1fc10c1744057a6c568d5d8 (patch)
tree9413089fe9922a1a0e23c4739bd87caf5f357877 /BUILDING.txt
parent0c0e874b223e9ccc4a756c471f8792102b2d34a4 (diff)
Sync with mainline apply everything between 1.1.1 to 8/8/2011
Diffstat (limited to 'BUILDING.txt')
-rw-r--r--BUILDING.txt43
1 files changed, 43 insertions, 0 deletions
diff --git a/BUILDING.txt b/BUILDING.txt
index 846e969..8279ec6 100644
--- a/BUILDING.txt
+++ b/BUILDING.txt
@@ -34,6 +34,14 @@ Build Requirements
-- GCC v4.1 or later recommended for best performance
+-- If building the TurboJPEG/OSS Java wrapper, JDK or OpenJDK 1.5 or later is
+ required. Some systems, such as OS X 10.4, Solaris 10 and later, and Red
+ Hat Enterprise Linux 5 and later, have this pre-installed. On OS X 10.5 and
+ later, it will be necessary to install the Java Developer Package, which can
+ be downloaded from http://connect.apple.com. For systems that do not have a
+ JDK installed, you can obtain the Oracle Java Development Kit from
+ http://www.java.com.
+
==================
Out-of-Tree Builds
@@ -121,6 +129,22 @@ add --without-arith-enc or --without-arith-dec to the configure command line to
disable encoding or decoding (respectively.)
+TurboJPEG/OSS Java Wrapper
+--------------------------
+Add --with-java to the configure command line to incorporate an optional Java
+Native Interface wrapper into the TurboJPEG/OSS dynamic library and build the
+Java front-end classes to support it. This allows the TurboJPEG/OSS dynamic
+library to be used directly from Java applications. See java/README for more
+details.
+
+You can set the JAVAC, JAR, and JAVA configure variables to specify
+alternate commands for javac, jar, and java (respectively.) You can also
+set the JAVACFLAGS configure variable to specify arguments that should be
+passed to the Java compiler when building the front-end classes, and JNI_CFLAGS
+to specify arguments that should be passed to the C compiler when building the
+JNI wrapper. Run 'configure --help' for more details.
+
+
========================
Installing libjpeg-turbo
========================
@@ -299,6 +323,9 @@ Build Requirements
-- NASM (http://www.nasm.us/) 0.98 or later (NASM 2.05 or later is required for
a 64-bit build)
+-- If building the TurboJPEG/OSS Java wrapper, JDK 1.5 or later is required.
+ This can be downloaded from http://www.java.com.
+
==================
Out-of-Tree Builds
@@ -438,6 +465,22 @@ add "-DWITH_ARITH_ENC=0" or "-DWITH_ARITH_DEC=0" to the cmake command line to
disable encoding or decoding (respectively.)
+TurboJPEG/OSS Java Wrapper
+--------------------------
+Add "-DWITH_JAVA=1" to the cmake command line to incorporate an optional Java
+Native Interface wrapper into the TurboJPEG/OSS dynamic library and build the
+Java front-end classes to support it. This allows the TurboJPEG/OSS dynamic
+library to be used directly from Java applications. See java/README for more
+details.
+
+If you are using CMake 2.8, you can set the Java_JAVAC_EXECUTABLE,
+Java_JAVA_EXECUTABLE, and Java_JAR_EXECUTABLE CMake variables to specify
+alternate commands or locations for javac, jar, and java (respectively.) If
+you are using CMake 2.6, set JAVA_COMPILE, JAVA_RUNTIME, and JAVA_ARCHIVE
+instead. You can also set the JAVACFLAGS CMake variable to specify arguments
+that should be passed to the Java compiler when building the front-end classes.
+
+
========================
Installing libjpeg-turbo
========================