Alexandre Gacon wrote:
Hi,
We had some problems to enable the OGDI driver in the 1.6.0 version of
GDAL/OGR, with Windows.
The OGDI library uses the zlib library in version 1.1.4 as a dynamic
library, whereas GDAL uses the same library in version 1.2.? as a static
library. Thus there is name conflicts in the linking of the GDAL dll
with the zlib related functions.
In order to make the driver works, we had to do the following things in
the file port/makefile.vc <http://makefile.vc> :
- Remove the -DHAVE_ZLIB from the EXTRAFLAGS variable.
- Remove the cpl_vsil_gzip.obj entry from the OBJ list.
With this we manage to compile and link GDAL with the OGDI driver (But
we lost the abality of GDAL 1.6 to read files inside zip/gzip files).
Could you think of a better solution ? Perhaps encapsulating the
cpl_vsil_gzip methods code in #ifdef HAVE_ZLIB would be a first solution.
Alexandre,
I would note it should also be possible to build OGDI with more recent
zlib's with some adjustments in it's build. I presume that is what I
did for the OGDI package in OSGeo4W.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, [email protected]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev