Compiling Mapserver with PostGIS support under Windows

Bart van den Eijnden BEN at SYNCERA-ITSOLUTIONS.NL
Mon Nov 28 22:58:33 PST 2005


I put my build report in the Mapserver bugzilla a while ago:

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1251

Maybe it can help.

Best regards,
Bart

Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl
>>> Sture Dingsøyr <candalt at ONLINE.NO> 11/29/05 7:55 AM >>>
Hi there

This is what i did (i used Visual C++ 6.0):

I did not use the PostgreSQL 8.1 source but the postgresql-8.0.0.

- open CMD

- vcvars32 (this sets the Visual C++ 6.0 environment variables). You will find a vcvars32.bat file under your install directory for Visual C++ 7.0

- enter the postgresql-8.0.0 directory

- cd src

- nmake /f win32.make

This produced under "postgresql-8.0.0\src\interfaces\libpq\Release" a libpq.dll 

Thats it :-)



Hello,

I'm attempting to compile Mapserver with support for PostGIS (Postgresql 8.1) using Visual C++ 7.  The Mapserver make file requires a version of the Postgresql client "libpqdll.lib" which is where I'm stuck.  I've got the Postgresql 8.1 source but have not been able to create libpqdll.lib using VC++. (seems like a problem with linking in appropriate winsock definitions).

 As an alternative, I have been able to compile a static version of libpqxx (2.5.5), but haven't been able to get it to link into Mapserver.  I've noticed that others are having similar problems, but I've yet to find a solution.

I've used pre-built versions of Mapserver (MS4W and FWTools) sucessfully with Postgresql 8.1/PostGIS, so I know it is possible.  If anyone can provide any insight into this problem, I would be much obliged.  Perhaps I should be using a different compiler? (Mingw?)

thanks,

Lance Goode



More information about the MapServer-users mailing list