Version 4 (modified by aperi2007, 10 years ago) (diff)


*** IMPORANT: Testers of CMake configuration wanted! Please, try to build GEOS with CMake and report any problems by submitting New Ticket. Patches welcome! ***

Building on Windows with CMake

This article describes how to use CMake build system to build and install GEOS from sources on Microsoft Windows systems using Visual C++ compiler.

Download "" from explode it on a path (eg: c:\cmake\") add to the path the ../bin directory eg: SET PATH=c:\cmake\cmake-2.8.2-win32-x86\bin;%PATH% start a shell dos.

to use: suppose for example the geos-trunk is downloaded in "c:\svn" you may create a new folder like "c:\test_geos" enter in "c:\test_geos" and run the command for the compiler you like use:

c:\test_geo> cmake -G "Visual Studio 9 2008" ../svn


c:\test_geo>cmake -G "Visual Studio 9 2008 Win64" ../svn


c:\test_geo>cmake -G "NMake Makefiles" ../svn

after this you can compile geos from the folder "c:\test_geos".

Open Tickets

incorrect cmake instruction