Prepare for RC4 release.
[geos.git] / README
blob195408e01bfca72fc7d1ca955a5ef26855eaaa38
1 BUILDING, TESTING, INSTALLING
2 =============================
4 Unix
5 -----
7         # ./configure
8         # make
9         # make check
10         # make install
12 Win32
13 -----
15 If you use Microsoft Visual C++ (7.1 or later) compiler, you can build 
16 GEOS using NMAKE program and provided makefile.vc files.
18 If you are building from SVN checkout, first run: autogen.bat
19 Then:
21   nmake /f makefile.vc MSVC_VER=1400
23 where 1400 is version number of Visual C++ compiler, here Visual C++ 8.0 
24 from Visual Studio 2005 (supported versions are 1300, 1310, 1400 and 1500). 
25 The bootstrap.bat step is required to generate a couple of header files.
27 In order to build debug configuration of GEOS, additional flag DEBUG=1 
28 is required:
30   nmake /f makefile.vc MSVC_VER=1400 DEBUG=1
33 CLIENT APPLICATIONS
34 ===================
36 Using the C interface (recommended)
37 -----------------------------------
39 To compile programs against the C lib (recommended):
41         CFLAGS += `geos-config --cflags`
42         LDFLAGS += `geos-config --ldflags` -lgeos_c
43         #include <geos_c.h>
45 Example usage:
47         capi/geostest.c contains basic usage
48         examples.
50 Using the C++ interface (discouraged)
51 -------------------------------------
53 To compile programs against the C++ lib:
55         CFLAGS += `geos-config --cflags`
56         LDFLAGS += `geos-config --ldflags` -lgeos
57         #include <geos.h>
59 Example usage:
61         doc/example.cpp contains basic usage
62         examples.
64 Scripting language bindings
65 ---------------------------
67 Ruby bindings are fully supported. To build, use the --enable-ruby option when 
68 configuring:
70     # ./configure ... --enable-ruby
71     
72 Since version 3.0, the Python bindings are unsupported. Recommended options:
74  1. Become or recruit a new maintainer.
75  2. Use Shapely (http://pypi.python.org/pypi/Shapely) with Python versions 2.4 or greater.
76  3. Simply call functions from libgeos_c via Python ctypes.
78 DOCUMENTATION
79 =============
81         # cd doc; make doxygen-html
83         http://trac.osgeo.org/geos