I am building GDAL Java Bindings on Centos 6.2 using Oracle Java SDK 1.7 $ cd local/gdal-trunk/gdal $ ./configure --prefix=/home/579/hxs579/local/gdal-trunk --enable-netcdf4 $ make $ sudo make install
Then edit the file swig/java/java.opt (from your GDAL source directory) JAVA_HOME=/usr/java/latest $ cd swig/java $ make But when trying to execute the gdalinfo class as per instruction on trac.osgeo.org/gdal/wiki/GdalOgrInJavaBuildInstructionsUnix I am facing undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE in libgdal.so.1 Any idea how to deal with this issue would be really appreciated. $ java -version java version "1.7.0_05" Java(TM) SE Runtime Environment (build 1.7.0_05-b05) Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode) Please find below full traces of my errors: $ javac apps/gdalinfo.java Note: apps/gdalinfo.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/579/hxs579/local/gdal-trunk/gdal/swig/java $ java -classpath '/home/579/hxs579/local/gdal-trunk/gdal/swig/java/gdal.jar':/home/579/hxs579/local/gdal-trunk/gdal/swig/java/apps gdalinfo Native library load failed. java.lang.UnsatisfiedLinkError: /home/579/hxs579/local/gdal-trunk/gdal/swig/java/libgdaljni.so: /home/579/hxs579/apps/gdal-trunk/lib/libgdal.so.1: undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE Exception in thread "main" java.lang.UnsatisfiedLinkError: org.gdal.gdal.gdalJNI.AllRegister()V at org.gdal.gdal.gdalJNI.AllRegister(Native Method) at org.gdal.gdal.gdal.AllRegister(gdal.java:479) at gdalinfo.main(gdalinfo.java:87) I never experience this issue before when building GDAL Java Bindings on latest Ubuntu from gdal-trunk SVN checkout. Cheers, Hendy _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev