Mateusz Loskot :: hacking on, working out, living up

GEOS 3.0.0rc4 and Visual C++

26 Nov 2007 | mloskot

A few days ago, one of GEOS users reported that he is not able to build GEOS 3.0.0rc4 using Visual C++ compiler. The problem was caused by broken NMAKE makefile included in this package.

Here is package with two files included: makefile.vc and dirlist.mk: geos-3.0.0.rc4-makefile-fix.zip. In order to fix the problem, download this Zip, unpack and copy the two files to the source subdirectory of unpacked GEOS sources tree, overwriting existing makefile.vc. Now, make complete rebuild using Visual C++:

cd source
nmake /f makefile.vc clean
nmake /f makefile.vc

For Visual C++ 2005 (8.0), you it’s a good idea to call nmake as follows:

nmake /f makefile.vc MSVC_VER=1400

If you’ll encounter any GEOS issues, please report them to the brand new GEOS bug tracker: http://trac.osgeo.org/geos/.

Fork me on GitHub