[postgis-users] How to link GDAL with PostGIS dynamically

Owais Khan mowaiskhan at gmail.com
Tue Jun 19 05:40:57 PDT 2012


Hello All,

I am trying to build PostGIS-2.0.0 with GDAL-1.9 using MinGW on Windows
7(64-bit).

Here is my configure statement for PostGIS

export LDFLAGS="-L/c/Packages/gdal-1.9.1/inst/lib"

./configure --with-raster
--with-gdalconfig=/c/Packages/gdal-1.9.1/inst/bin/gdal-config
--host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32
--target=x86_64-w64-mingw32
CFLAGS=-I/c/Packages/iconv-1.14/inst/bin/../include
--with-pgconfig=/c/AS92/edb-postgres-mingw/inst/bin/pg_config.exe
--prefix=/c/JUNK/postgis-2.0.0/spatial
--with-geosconfig=/c/packages/geos-3.3.3/inst/bin/geos-config
--with-projdir=/c/packages/proj-4.8.0/inst
--with-xml2config=/c/Packages/libxml2-2.7.8/inst/bin/xml2-config
--with-libiconv=/c/Packages/iconv-1.14/inst/bin/..

But, when I open my postgis-2.0.dll in Dependency Walker, I can't see any
dependency of GDAL. I have build GDAL dynamically so static linking is not
possible.

I will appreciate if someone can tell me how to confirm if postgis-2.0.dll
is being built properly with gdal support?

Thanks & Regards,
Owais.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20120619/9c4157a7/attachment.html>


More information about the postgis-users mailing list