]> git.mxchange.org Git - flightgear.git/blob - README.gpc
Misc. tweaks.
[flightgear.git] / README.gpc
1 You need to have the GPC library installed on your system to build
2 some of the scenery generation tools, otherwise you won't be able to
3 create scenery.
4
5 You can get the library from:
6
7     http://www.cs.man.ac.uk/aig/staff/alan/software/
8
9 Unfortunately, because of some of the wording in the GPC licensing
10 terms we are unable to include the GPC library with the Flight Gear
11 distribution.
12
13 This library comes as a single source file and header with no build
14 directions.  So, here are some directions contributed by Riley Rainey
15 <riley.rainey@websimulations.com> with additional notes by Curt Olson:
16
17
18 1. Download the GPC library source code from URL:
19
20         http://www.cs.man.ac.uk/aig/staff/alan/software
21
22 2. Unpack it; the current version seems to be 2.30:
23
24         $ zcat gpc231.tar.Z | tar xvf -
25
26 3. ***IMPORTANT STEP*** ***DO NOT SKIP***
27
28    This is important step if you want to use gpc to generate quality
29    scenery!
30
31    Before building the library, edit the gpc.h file and change
32    GPC_EPSILON to something bigger.  You may experiment with this
33    value, but the following seems to work well for me:
34
35        #define GPC_EPSILON (0.000001)
36
37 4. Copy in the Makefile attached to this message:
38
39         $ cp Makefile ./gpc231
40
41 5. Check install paths.  Edit the Makefile and make sure the install
42    paths are satisfactory.  Also make sure that all the make commands
43    have leading tabs (i.e. that the tabs aren't expanded out into 8
44    spaces) otherwise the make will fail.
45
46 6. Build and install it:
47
48         $ cd ./gpc231
49         $ make
50         $ su
51         Password:
52         # make install
53
54
55 -------------------------- snip ------------------------------
56
57 # Unix/Linux makefile for GPC 2.31
58 #
59 # Riley Rainey  (riley.rainey@websimulations.com)
60
61 CFLAGS = -O -g
62
63 libgpc.a: gpc.o
64         rm -f $@
65         ar cr $@ $<
66         ranlib $@
67
68 clean:
69         rm -f libgpc.a *.o core *~
70
71 install: libgpc.a
72         -mkdir -p /usr/local/lib
73         -mkdir -p /usr/local/include
74         install libgpc.a /usr/local/lib/libgpc.a
75         install gpc.h /usr/local/include/gpc.h