[Gdal-dev] GDAL 1.6 Java binding, Windows
Matthew Cole
Matthew.Cole at drdc-rddc.gc.ca
Wed Feb 11 11:10:53 EST 2009
Thanks Evan. It turned out the problem had to do with including HDF4 and
HDF5 support. Once I removed those the binding worked.
I had used the instructions at
http://trac.osgeo.org/gdal/wiki/GdalOgrInJavaBuildInstructions and will
update them for the newer program versions.
Matt
Even Rouault wrote:
>
> Yes, I've managed to build them, but with Linux. Have you verified that
> the
> gdal.jar is generated and at the right place ?
> There are instructions here :
> http://trac.osgeo.org/gdal/wiki/GdalOgrInJavaBuildInstructions
>
> It would be great if you could update the wiki page in case something has
> really change in the build process since that page was written.
>
> You should also be warned that due to missing SWIG typemaps, quite a few
> methods in 1.6 bindings have wrong signature, which will hopefully be
> fixed
> in the future in 1.7dev once I've commited the code.
>
> Le Monday 09 February 2009 22:48:11 Matthew Cole, vous avez écrit :
>> I've created java bindings for GDAL 1.6 in Windows and it seemed to work
>> but I'm getting linker errors whenever I try to access any gdal
>> functions.
>>
>> java.lang.UnsatisfiedLinkError:
>> C:\build182\gdal-1.6.0\swig\java\apps\gdaljni.dl
>> l: Can't find dependent libraries
>> 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:255)
>> at R2gcpinfo.R2ExtractFootprint(R2gcpinfo.java:100)
>> at R2gcpinfo.main(R2gcpinfo.java:78)
>>
>> I've got it working for version 1.4, with the dlls in the same places, so
>> I'm not sure what the problem is. II don't think the java binding are
>> officially supported for 1.6 but has anyone gottem them working?
>>
>> Thanks for your help,
>> Matt
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
--
View this message in context: http://n2.nabble.com/GDAL-1.6-Java-binding%2C-Windows-tp2299600p2309579.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
More information about the gdal-dev
mailing list