[Gdal-dev] How to build GDAL/OGR w/ PostGIS support on
Windows
Howard butler
hobu at iastate.edu
Sun Nov 16 10:29:09 EST 2003
I found it. The variable is PG_INC_DIR instead of PG_INCLUDE. Also, make
sure you link to libpqdll.lib instead of libpq.lib.
HAVE_OGR_PG = yes
PG_LIB =
E:\build\postgres\postgresql-7.3.4\src\interfaces\libpq\Release\libpqdll.lib
PG_INC_DIR = E:\build\postgres\postgresql-7.3.4\src\interfaces\libpq
Howard
At 09:16 PM 11/15/2003, you wrote:
>Hello,
>
>What options do I need to set in nmake.opt to allow Microsoft VC++ to
>compile in support for PostGIS? The OGR building instructions have
>nothing to say about this
>http://gdal.velocet.ca/projects/opengis/build.html. I also downloaded
>OpenEV, but it didn't appear to have PostGIS rolled in.
>
>Here's where I'm at at this point. I have libpq compiled. After running
>the configure on Linux, I saw that it was setting options in the make
>file, and I copied something like it in nmake.opt:
>
>HAVE_OGR_PG = yes
>PG_LIB =
>E:\build\postgres\postgresql-7.3.4\src\interfaces\libpq\Release\libpq.lib
>PG_INCLUDE = E:\build\postgres\postgresql-7.3.4\src\include
>
>When running the root make file, everything appears to work, but when it
>gets to the linking step, it fails trying to link in the _RegisterOGRPG symbol.
>
>ogrsf_frmts.lib(ogrregisterall.obj) : error LNK2001: unresolved external
>symbol
>_RegisterOGRPG
>gdal11.dll : fatal error LNK1120: 1 unresolved externals
>NMAKE : fatal error U1077: 'link' : return code '0x460'
>Stop.
>
>
>Any pointers to the options that I need to set would be greatly appreciated.
>
>Thanks
>
>Howard
>
>
>_______________________________________________
>Gdal-dev mailing list
>Gdal-dev at remotesensing.org
>http://remotesensing.org/mailman/listinfo/gdal-dev
More information about the Gdal-dev
mailing list