]> git.mxchange.org Git - flightgear.git/blob - README.gpc
merge FG_Docs as subdirectory
[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>:
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.22:
23
24         $ zcat gpc222.tar.Z | tar xvf -
25
26 3. Copy in the Makefile attached to this message:
27
28         $ cp Makefile ./gpc222
29
30 4. Check install paths.  Edit the Makefile and make sure the install
31    paths are satisfactory.  Also make sure that all the make commands
32    have leading tabs (i.e. that the tabs aren't expanded out into 8
33    spaces) otherwise the make will fail.
34
35 5. Build and install it:
36
37         $ cd ./gpc222
38         $ make
39         $ su
40         Password:
41         # make install
42
43
44 -------------------------- snip ------------------------------
45
46 # Unix/Linux makefile for GPC 2.22
47 #
48 # Riley Rainey  (riley.rainey@websimulations.com)
49
50 CFLAGS = -O -g
51
52 libgpc.a: gpc.o
53         rm -f $@
54         ar cr $@ $<
55         ranlib $@
56
57 clean:
58         rm -f libgpc.a *.o core *~
59
60 install: libgpc.a
61         -mkdir -p /usr/local/lib
62         -mkdir -p /usr/local/include
63         install libgpc.a /usr/local/lib/libgpc.a
64         install gpc.h /usr/local/include/gpc.h