[gdal-dev] [OGR] Build GDAL 1.6 with OGDI enabled
Alexandre Gacon
alexandre.gacon+gdal at gmail.com
Thu Jan 22 11:16:47 EST 2009
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 :
- 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.
Best regards,
Alexandre Gacon
PS : this problem was the reason why I couldn't see the OGDI driver in my
ogrinfo --formats list yesterday.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090122/4ffe183a/attachment.html
More information about the gdal-dev
mailing list