[Gdal-dev] swig java: c/c++

Christine Spietz spietz at fh-bingen.de
Mon May 29 06:06:07 EDT 2006


Hi,

I think that I've now finally managed to install the java swig-bindings. The 
steps for my system (Suse Linux 10.0, gdal 1.3.2) were:

 preinstallation (from about several tries to install gdal 
java-swig-bindings)
- swig 1.3.29 (www.swig.org)
- liblibjpeg-devel 6.2.0 (with YAST)
- libpng-devel 1.2.8 (with YAST)

installation
- download gdal1.3.2.tar.gz
- unzip/untar at  /usr/lib/gdal => /usr/lib/gdal/gdal-1.3.2 = GDAL-HOME
- /usr/lib/gdal/gdal-1.3.2> ./configure
- /usr/lib/gdal/gdal-1.3.2> make
- /usr/lib/gdal/gdal-1.3.2> make install (if you are root)
- in file GDAL_HOME/swig/java/java.opt JAVA_HOME set on 
/usr/lib/jvm/java-1.4.2-sun-1.4.2.06  (=JAVA-HOME)
-GDAL_HOME/swig/java/> ant  (this command uses the build.xml file in same 
directory) => compiled java-swig-classes and gdal.jar file
- GDAL_HOME/swig/java/>make build
Error:
cp ./.libs/*.so ./
ant
/usr/bin/ant: eval: line 302: unexpected EOF while looking for mathing '"'
/usr/bin/ant: eval: line 303: syntax error: unexpected end of file
make; ***[build] Error1

BUT the *jni.so files in /usr/lib/gdal/gdal1.3.2/swig/java/.libs were 
created so the thrown error might not be important....


regards

Christine 




More information about the Gdal-dev mailing list