<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: [postgis-devel] Compilation using Visual C++ 8.0</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Great Mateusz,<BR>
<BR>
I hope to be one of your first victims.<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: postgis-devel-bounces@postgis.refractions.net on behalf of Mateusz Loskot<BR>
Sent: Tue 3/10/2009 5:53 PM<BR>
To: postgis-devel@postgis.refractions.net<BR>
Subject: [postgis-devel] Compilation using Visual C++ 8.0<BR>
<BR>
Folks,<BR>
<BR>
I'm glad to report that I managed to compile (not build) PostGIS<BR>
source code (r3848) using Microsoft Visual C++ 8.0 (VS 2005).<BR>
Here is complete compiler output:<BR>
<BR>
<A HREF="http://mateusz.loskot.net/tmp/postgis/postgis-r3848-msvc-build.log">http://mateusz.loskot.net/tmp/postgis/postgis-r3848-msvc-build.log</A><BR>
<BR>
As dependencies providers, I used<BR>
- PROJ.4 4.6.1 from OSGeo4W<BR>
- GEOS built from SVN trunk<BR>
- Source code of PostgreSQL 8.3.6<BR>
<BR>
As I emphasized, I managed to compile the code, not to do complete<BR>
build. I compiled liblwgeom and postgis to static libraries.<BR>
I've not tried yet to build postgis to DLL and link everything against<BR>
PROJ.4/GEOS/PostgreSQL.<BR>
<BR>
Here is patch that includes:<BR>
1) 3 projects Visual Studio 2005: bootstrap, liblwgeom, postgis<BR>
2) stdint.h and inttypes.h from <A HREF="http://code.google.com/p/msinttypes/">http://code.google.com/p/msinttypes/</A><BR>
3) Small fixes in PostGIS code<BR>
<BR>
<A HREF="http://mateusz.loskot.net/tmp/postgis/postgis-r3848-msvc-build.patch">http://mateusz.loskot.net/tmp/postgis/postgis-r3848-msvc-build.patch</A><BR>
<BR>
Next step is to change postgis.vcproj to build DLL and try to link a<BR>
proper run-time binary.<BR>
<BR>
Best regards,<BR>
--<BR>
Mateusz Loskot, <A HREF="http://mateusz.loskot.net">http://mateusz.loskot.net</A><BR>
Charter Member of OSGeo, <A HREF="http://osgeo.org">http://osgeo.org</A><BR>
_______________________________________________<BR>
postgis-devel mailing list<BR>
postgis-devel@postgis.refractions.net<BR>
<A HREF="http://postgis.refractions.net/mailman/listinfo/postgis-devel">http://postgis.refractions.net/mailman/listinfo/postgis-devel</A><BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>
<HTML><BODY><P><hr size=1></P>
<P><STRONG>
The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer.
</STRONG></P></BODY></HTML>

<P><hr size=1></P>
<P><STRONG><font size="2" color="339900"> Help make the earth a greener place. If at all possible resist printing this email and join us in saving paper. </p> <p> </font></STRONG></P>