[postgis-devel] Compilation using Visual C++ 8.0

Mateusz Loskot Mateusz.Loskot at cadcorp.com
Thu Mar 12 03:31:14 PDT 2009


Mark Cave-Ayland wrote:
> Mateusz Loskot wrote:
> > Folks,
> >
> > I'm glad to report that I managed to compile (not build) PostGIS
> > source code (r3848) using Microsoft Visual C++ 8.0 (VS 2005).
> > Here is complete compiler output:
> >
> > http://mateusz.loskot.net/tmp/postgis/postgis-r3848-msvc-build.log
> >
> > As dependencies providers, I used
> > - PROJ.4 4.6.1 from OSGeo4W
> > - GEOS built from SVN trunk
> > - Source code of PostgreSQL 8.3.6
> >
> > As I emphasized, I managed to compile the code, not to do complete
> > build. I compiled liblwgeom and postgis to static libraries.
> > I've not tried yet to build postgis to DLL and link everything
> > against PROJ.4/GEOS/PostgreSQL.
> >
> > Here is patch that includes:
> > 1) 3 projects Visual Studio 2005: bootstrap, liblwgeom, postgis
> > 2) stdint.h and inttypes.h from http://code.google.com/p/msinttypes/
> > 3) Small fixes in PostGIS code
> >
> > http://mateusz.loskot.net/tmp/postgis/postgis-r3848-msvc-build.patch
> >
> > Next step is to change postgis.vcproj to build DLL and try to link a
> > proper run-time binary.
> 
> 
> Hi Mateusz,
> 
> This looks great. I'll take a look at these and see about
> reviewing/committing the non-MSVC project parts over the next few days.

Hi Mark,

Great. Perhaps, when the msvc part is ready, we could put it into
trunk/build/msvc80 so people can start building/testing with Visual C++.
And then we can start investigating cmake-based build configuration.

--
Mateusz Loskot
Senior Programmer, Cadcorp
http://www.cadcorp.com





More information about the postgis-devel mailing list