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.
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
