[gdal-dev] building gdal on msvc with external zlib
Even Rouault
even.rouault at spatialys.com
Tue Feb 3 07:19:39 PST 2015
Le mardi 03 février 2015 15:32:19, Rashad M a écrit :
> On Tue, Feb 3, 2015 at 9:47 AM, Even Rouault <even.rouault at spatialys.com>
>
> wrote:
> > 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?
> >
> > Rashad,
> >
> > 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...).
>
> Ok. Here is a patch attached that can use external zlib when compiling gdal
> on windows.
>
>
> Could you have a look at it and let me if anything missing.
frmts/makefile.vc should also be edited to avoid building frmts/zlib in case of
an external zlib
>
> I made the diff against 1.11 branch. below is svn info output
Ultimately you should do it against trunk.
>
>
> Chemin : .
> Chemin racine de la copie de travail : C:\Temp\gdal
> URL : http://svn.osgeo.org/gdal/branches/1.11/gdal
> Racine du dépôt : http://svn.osgeo.org/gdal
> UUID du dépôt : f0d54148-0727-0410-94bb-9a71ac55c965
> Révision : 28405
> Type de noud : répertoire
> Tâche programmée : normale
> Auteur de la dernière modification : tamas
> Révision de la dernière modification : 28397
> Date de la dernière modification: 2015-01-31 23:34:06 +0100 (sam. 31 janv.
> 2015)
>
>
>
> Even
>
> > > [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
> > http://www.spatialys.com
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list