Compiling Mapserver with PostGIS support under Windows
Mark Cave-Ayland
m.cave-ayland at WEBBASED.CO.UK
Tue Nov 29 01:22:25 PST 2005
Hi Lance,
If it helps, the MSVC libpq import library is included with the standard
PostgreSQL 8.1 Win32 installer available from www.postgresql.org. On the
installation options page, select Development, Library Files and then
enable the MSVC++ Library Files option.
Kind regards,
Mark.
------------------------
WebBased Ltd
17 Research Way
Plymouth
PL6 8BT
T: +44 (0)1752 797131
F: +44 (0)1752 791023
http://www.webbased.co.uk
http://www.infomapper.com
http://www.swtc.co.uk
This email and any attachments are confidential to the intended recipient
and may also be privileged. If you are not the intended recipient please
delete it from your system and notify the sender. You should not copy it or
use it for any purpose nor disclose or distribute its contents to any other
person.
________________________________________
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Lance Goode
Sent: 29 November 2005 05:48
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Compiling Mapserver with PostGIS support
under Windows
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