| 1 | = Building GDAL/OGR Java Bindings on Linux/Unix = |
| 2 | |
| 3 | Tested with gdal-1.5.2. |
| 4 | |
| 5 | == Configure and Build GDAL == |
| 6 | |
| 7 | I found I had to configure GDAL --without-libtool to get the java bindings to build. |
| 8 | |
| 9 | == Update java.opt == |
| 10 | |
| 11 | Replace gdal/swig/java/java.opt with an appropriate local version. Make sure the windows backslashes are turned to forward slashes, and point to your local Java SDK. The ANT_HOME isn't used on linux where it is apparently assumed ant will be in the path. |
| 12 | |
| 13 | {{{ |
| 14 | JAVA_HOME = /home/warmerda/pkg/jdk1.6.0_10 |
| 15 | #ANT_HOME=c:\programmi\apache-ant-1.7.0 |
| 16 | JAVADOC=$(JAVA_HOME)/bin/javadoc |
| 17 | JAVAC=$(JAVA_HOME)/bin/javac |
| 18 | JAVA=$(JAVA_HOME)/bin/java |
| 19 | JAR=$(JAVA_HOME)/bin/jar |
| 20 | JAVA_INCLUDE=-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux |
| 21 | }}} |
| 22 | |