[gdal-dev] lib questions

Frank Warmerdam warmerdam at pobox.com
Sat Sep 27 20:23:16 EDT 2008

On Fri, Sep 26, 2008 at 8:36 AM, Nidel, Mike <mike.nidel at lmco.com> wrote:
> Two quick questions:
> 1. What is libgdalconstjni.so? I've been building and using the JNI
> interfaces and just blindly including this file, but I can't determine
> what this is and whether I need it. Sorry if this is a stupid question,
> I couldn't find the answer in any of the build docs.


In theory this contains a bunch of constant defines for GDAL,
stuff like "gdal.GA_ReadOnly".  In practice I do not know if this
resolves to actual code in Java or not.

> 2. Is there a reason why on linux the build creates a libgdal.so whereas
> on Windows it's gdalXX.dll, i.e. the version number is inserted in the
> name? I would think you'd want to be consistent across platforms there.

On linux the version handling is done differently by libtool
in order to be consistent with other linux shared libraries.
I think consistency with how things are done on other platforms
is less important than consistency with the general expectations
on the platform in question.

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the gdal-dev mailing list