Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 97 lines (62 sloc) 2.216 kB
8c1c09e updated
strk authored
1 BUILDING, TESTING, INSTALLING
2 =============================
7a2b382 Updated with C-API usage
strk authored
3
4 Unix
5369685 Apply slightly modified patch by mwtoews (#344)
strk authored
5 ----
6
7 Using Autotools:
8 ./autogen.sh # in ${srcdir}, if obtained from SVN
9 ${srcdir}/configure # in build dir
10
11 Using CMake:
12 cmake ${srcdir} # in build dir
7a2b382 Updated with C-API usage
strk authored
13
5369685 Apply slightly modified patch by mwtoews (#344)
strk authored
14 Now, all versions:
15 make
16 make check
a2aeaf1 Add 'ldconfig' step, seems to be a recurring issue with builders...
strk authored
17 make install # as root
18 ldconfig # as root
7a2b382 Updated with C-API usage
strk authored
19
20 Win32
21 -----
22
79a017a Add to win32 instructions
pramsey authored
23 If you use Microsoft Visual C++ (7.1 or later) compiler, you can build
d35af56 update autogen.bat ref
pramsey authored
24 GEOS using NMAKE program and provided makefile.vc files.
25
26 If you are building from SVN checkout, first run: autogen.bat
27 Then:
79a017a Add to win32 instructions
pramsey authored
28
29 nmake /f makefile.vc MSVC_VER=1400
30
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.
34
35 In order to build debug configuration of GEOS, additional flag DEBUG=1
36 is required:
37
38 nmake /f makefile.vc MSVC_VER=1400 DEBUG=1
7a2b382 Updated with C-API usage
strk authored
39
40
c23aa99 Fixed all #include lines to reflect headers layout change.
strk authored
41 CLIENT APPLICATIONS
7a2b382 Updated with C-API usage
strk authored
42 ===================
c23aa99 Fixed all #include lines to reflect headers layout change.
strk authored
43
7a2b382 Updated with C-API usage
strk authored
44 Using the C interface (recommended)
45 -----------------------------------
c23aa99 Fixed all #include lines to reflect headers layout change.
strk authored
46
7a2b382 Updated with C-API usage
strk authored
47 To compile programs against the C lib (recommended):
c23aa99 Fixed all #include lines to reflect headers layout change.
strk authored
48
5369685 Apply slightly modified patch by mwtoews (#344)
strk authored
49 CFLAGS += `geos-config --cflags`
50 LDFLAGS += `geos-config --ldflags` -lgeos_c
51 #include <geos_c.h>
c23aa99 Fixed all #include lines to reflect headers layout change.
strk authored
52
7a2b382 Updated with C-API usage
strk authored
53 Example usage:
54
5369685 Apply slightly modified patch by mwtoews (#344)
strk authored
55 capi/geostest.c contains basic usage examples.
7a2b382 Updated with C-API usage
strk authored
56
57 Using the C++ interface (discouraged)
58 -------------------------------------
59
60 To compile programs against the C++ lib:
61
5369685 Apply slightly modified patch by mwtoews (#344)
strk authored
62 CFLAGS += `geos-config --cflags`
63 LDFLAGS += `geos-config --ldflags` -lgeos
64 #include <geos.h>
c23aa99 Fixed all #include lines to reflect headers layout change.
strk authored
65
66 Example usage:
67
5369685 Apply slightly modified patch by mwtoews (#344)
strk authored
68 doc/example.cpp contains basic usage examples.
c23aa99 Fixed all #include lines to reflect headers layout change.
strk authored
69
e8e8453 Notes on state of scripting language bindings
sgillies authored
70 Scripting language bindings
71 ---------------------------
72
5369685 Apply slightly modified patch by mwtoews (#344)
strk authored
73 Ruby bindings are fully supported. To build, use the --enable-ruby option
74 when configuring:
e8e8453 Notes on state of scripting language bindings
sgillies authored
75
5369685 Apply slightly modified patch by mwtoews (#344)
strk authored
76 ./configure ... --enable-ruby
a5c0550 Add note about configuring for php support
strk authored
77
78 PHP bindings are fully supported. To build, use the --enable-php option
79 when configuring:
80
81 ./configure ... --enable-php
e8e8453 Notes on state of scripting language bindings
sgillies authored
82
83 Since version 3.0, the Python bindings are unsupported. Recommended options:
84
85 1. Become or recruit a new maintainer.
5369685 Apply slightly modified patch by mwtoews (#344)
strk authored
86 2. Use Shapely (http://pypi.python.org/pypi/Shapely) with Python
87 versions 2.4 or greater.
e8e8453 Notes on state of scripting language bindings
sgillies authored
88 3. Simply call functions from libgeos_c via Python ctypes.
53e0523 Updated
strk authored
89
7a2b382 Updated with C-API usage
strk authored
90 DOCUMENTATION
91 =============
34c6beb added note on source\makefile.vc
frank authored
92
5369685 Apply slightly modified patch by mwtoews (#344)
strk authored
93 cd doc; make doxygen-html
7a2b382 Updated with C-API usage
strk authored
94
5369685 Apply slightly modified patch by mwtoews (#344)
strk authored
95 http://trac.osgeo.org/geos
34c6beb added note on source\makefile.vc
frank authored
96
Something went wrong with that request. Please try again.