1 BUILDING, TESTING, INSTALLING
2 =============================
8 ./autogen.sh # in ${srcdir}, if obtained from SVN
9 ${srcdir}/configure # in build dir
12 cmake ${srcdir} # in build dir
17 make install # as root
23 If you use Microsoft Visual C++ (7.1 or later) compiler, you can build
24 GEOS using NMAKE program and provided makefile.vc files.
26 If you are building from SVN checkout, first run: autogen.bat
29 nmake /f makefile.vc MSVC_VER=1400
31 where 1400 is version number of Visual C++ compiler, here Visual C++ 8.0
32 from Visual Studio 2005 (supported versions are 1300, 1310, 1400 and 1500).
33 The bootstrap.bat step is required to generate a couple of header files.
35 In order to build debug configuration of GEOS, additional flag DEBUG=1
38 nmake /f makefile.vc MSVC_VER=1400 DEBUG=1
44 Using the C interface (recommended)
45 -----------------------------------
47 To compile programs against the C lib (recommended):
49 CFLAGS += `geos-config --cflags`
50 LDFLAGS += `geos-config --ldflags` -lgeos_c
55 capi/geostest.c contains basic usage examples.
57 Using the C++ interface (discouraged)
58 -------------------------------------
60 To compile programs against the C++ lib:
62 CFLAGS += `geos-config --cflags`
63 LDFLAGS += `geos-config --ldflags` -lgeos
68 doc/example.cpp contains basic usage examples.
70 Scripting language bindings
71 ---------------------------
73 Ruby bindings are fully supported. To build, use the --enable-ruby option
76 ./configure ... --enable-ruby
78 PHP bindings are fully supported. To build, use the --enable-php option
81 ./configure ... --enable-php
83 Since version 3.0, the Python bindings are unsupported. Recommended options:
85 1. Become or recruit a new maintainer.
86 2. Use Shapely (http://pypi.python.org/pypi/Shapely) with Python
87 versions 2.4 or greater.
88 3. Simply call functions from libgeos_c via Python ctypes.
93 cd doc; make doxygen-html
95 http://trac.osgeo.org/geos