<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 3, 2015 at 9:47 AM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Le mardi 03 février 2015 08:02:58, Rashad M a écrit :<br>
<span>> Hello,<br>
><br>
> Is it possible to use existing libz when building gdal on msvc. On linux I<br>
> can pass --with-libz= during configure. But on windows I couldn't find any<br>
> options in the be-alike nmake.opt<br>
><br>
> Also in gdal/port/Makefile.vc there is zlib includes in EXTRAFLAGS which<br>
> points to internal zlib from frmts/zlib<br>
><br>
> Is there any reason I must you internal zlib with windows?<br>
<br>
</span>Rashad,<br>
<br>
indeed it seems the option has never been implemented. I cannot think of a<br>
particular reason why linking against external zlib wouldn't work. This would<br>
require mostly editing the relevant makefiles (the one you mention and other<br>
ones such as in frmts/gtiff/libtiff etc...).<br></blockquote><div><br></div><div>Ok. Here is a patch attached that can use external zlib when compiling gdal on windows.<br><br></div><div><br></div><div>Could you have a look at it and let me if anything missing.<br><br></div><div>I made the diff against 1.11 branch. below is svn info output<br><br><br>Chemin : .<br>Chemin racine de la copie de travail : C:\Temp\gdal<br>URL : <a href="http://svn.osgeo.org/gdal/branches/1.11/gdal" target="_blank">http://svn.osgeo.org/gdal/branches/1.11/gdal</a><br>Racine du dépôt : <a href="http://svn.osgeo.org/gdal" target="_blank">http://svn.osgeo.org/gdal</a><br>UUID du dépôt : f0d54148-0727-0410-94bb-9a71ac55c965<br>Révision : 28405<br>Type de noud : répertoire<br>Tâche programmée : normale<br>Auteur de la dernière modification : tamas<br>Révision de la dernière modification : 28397<br>Date de la dernière modification: 2015-01-31 23:34:06 +0100 (sam. 31 janv. 2015)<br><br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Even<br>
<span><br>
><br>
> [1] <a href="http://svn.osgeo.org/gdal/trunk/gdal/port/makefile.vc" target="_blank">http://svn.osgeo.org/gdal/trunk/gdal/port/makefile.vc</a><br>
> [2] <a href="http://svn.osgeo.org/gdal/trunk/gdal/nmake.opt" target="_blank">http://svn.osgeo.org/gdal/trunk/gdal/nmake.opt</a><br>
<br>
--<br>
</span>Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div><div><font face="arial, helvetica, sans-serif">Regards,<br>   Rashad</font></div></div>
</div></div>