[gdal-dev] building gdal on msvc with external zlib

Even Rouault even.rouault at spatialys.com
Tue Feb 3 00:47:35 PST 2015

Le mardi 03 février 2015 08:02:58, Rashad M a écrit :
> Hello,
> Is it possible to use existing libz when building gdal on msvc. On linux I
> can pass --with-libz= during configure. But on windows I couldn't find any
> options in the be-alike nmake.opt
> Also in gdal/port/Makefile.vc there is zlib includes in EXTRAFLAGS which
> points to internal zlib from frmts/zlib
> Is there any reason I must you internal zlib with windows?


indeed it seems the option has never been implemented. I cannot think of a 
particular reason why linking against external zlib wouldn't work. This would 
require mostly editing the relevant makefiles (the one you mention and other 
ones such as in frmts/gtiff/libtiff etc...).


> [1] http://svn.osgeo.org/gdal/trunk/gdal/port/makefile.vc
> [2] http://svn.osgeo.org/gdal/trunk/gdal/nmake.opt

Spatialys - Geospatial professional services

More information about the gdal-dev mailing list