[Gdal-dev] How to build GDAL/OGR w/ PostGIS support on Windows
Howard butler
hobu at iastate.edu
Sat Nov 15 22:16:04 EST 2003
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
More information about the Gdal-dev
mailing list