wiki:BuildingOnWindowsWithNMake

Version 8 (modified by mloskot, 6 years ago) (diff)

On Bash requirement

Building on Windows with NMake

If you use Microsoft Visual C++ (7.1 or later) compiler, you can build GEOS using NMAKE program and provided makefile.vc files.

Configure

Building from release sources package, should not require any configuration step.

Building from SVN development branch trunk to run autogen.bat script to generate a couple of header files (note: autogen.bat is available in SVN only).

autogen.bat

generate the geos_svn_revision.h file

tools\svn_repo_revision.sh

Notice, tools\svn_repo_revision.sh is a Bash script, so you need Bash some means to run Bash scripts on Windows.

Build

  • Optimised configuration
nmake /f makefile.vc MSVC_VER=1400

where 1400 is version number of Visual C++ compiler, here Visual C++ 8.0 from Visual Studio 2005. Ssupported versions are Visual C++ 7.1 (1310), 8.0 (1400), 9.0 (1500) and 10.0 (1600).

  • Debug configuration
nmake /f makefile.vc MSVC_VER=1400 BUILD_DEBUG=YES

Test

Currently, GEOS unit tests package is not configured to build with NMake.

Install

TODO