[gdal-dev] Building gdal with sqlite3 for windows
Gane R
gane.prog at gmail.com
Wed Jan 20 02:12:47 PST 2016
I was looking at the makefile.vc and docs and visual studio reference I was
not able to create sqlite3_i.lib do I miss something apart from linker
optimization flags
cl /c sqlite3.c
link /nologo /dll sqlite3.obj /out:sqlite3.dll /implib:sqlite3_i.lib
My goal is make gdal access geopackage so I want to use this sqlite3 in
nmake.opt, correct me If I am wrong.
On Wed, Jan 20, 2016 at 2:48 PM, Even Rouault <even.rouault at spatialys.com>
wrote:
> Le mercredi 20 janvier 2016 09:56:20, Gane R a écrit :
> > Where do I get the sqlite3 with include header files, stub library
> > sqlite3_i.lib and dll.
> >
> > Do I have to build it, If so I tried the following
> >
> > I have a sql-amalgation version.
> > I tried to look the documentation on sqlite website for creating a
> > sqlite3.dll
> >
> > using the following command
> > cl sqlite3.c -link -dll -out:sqlite3.dll
> >
> > I got that, but sqlite3_i.lib was not there.
>
>
> You may need to use the link program itself with /implib
>
> Taken from GDAL's makefile.vc :
>
> $(GDAL_DLL): staticlib
> link /nologo /dll $(OGR_INCLUDE) $(BASE_INCLUDE) $(LIBOBJ) \
> $(EXTERNAL_LIBS) gcore\Version.res \
> /out:$(GDAL_DLL) /implib:gdal_i.lib $(LINKER_FLAGS)
>
>
> So likely in 2 steps :
> cl /c sqlite3.c (you should probably add optimization options too)
> link /dll sqlite3.obj /out:sqlite3.dll /implib:sqlite3_i.lib
>
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20160120/8df9d629/attachment-0001.html>
More information about the gdal-dev
mailing list