2000-02-16 22:01:47 +00:00
|
|
|
You need to have the GPC library installed on your system to build
|
|
|
|
some of the scenery generation tools, otherwise you won't be able to
|
|
|
|
create scenery.
|
|
|
|
|
|
|
|
You can get the library from:
|
|
|
|
|
|
|
|
http://www.cs.man.ac.uk/aig/staff/alan/software/
|
|
|
|
|
2001-07-11 00:32:02 +00:00
|
|
|
Unfortunately, because of wording conflicts between the GPC license
|
|
|
|
and the GPL licence used by TerraGear we are unable to include the GPC
|
|
|
|
library with the Flight Gear distribution.
|
2000-02-16 22:01:47 +00:00
|
|
|
|
|
|
|
This library comes as a single source file and header with no build
|
2001-07-11 00:32:02 +00:00
|
|
|
directions or Makefile. So, here are some directions contributed by
|
|
|
|
Riley Rainey <riley.rainey@websimulations.com> with additional notes
|
|
|
|
by Curt Olson:
|
2000-02-16 22:01:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
1. Download the GPC library source code from URL:
|
|
|
|
|
|
|
|
http://www.cs.man.ac.uk/aig/staff/alan/software
|
|
|
|
|
2000-04-06 18:25:52 +00:00
|
|
|
2. Unpack it; the current version seems to be 2.31:
|
2000-02-16 22:01:47 +00:00
|
|
|
|
|
|
|
$ zcat gpc231.tar.Z | tar xvf -
|
|
|
|
|
|
|
|
3. ***IMPORTANT STEP*** ***DO NOT SKIP***
|
|
|
|
|
|
|
|
This is important step if you want to use gpc to generate quality
|
|
|
|
scenery!
|
|
|
|
|
|
|
|
Before building the library, edit the gpc.h file and change
|
|
|
|
GPC_EPSILON to something bigger. You may experiment with this
|
|
|
|
value, but the following seems to work well for me:
|
|
|
|
|
|
|
|
#define GPC_EPSILON (0.000001)
|
|
|
|
|
|
|
|
4. Copy in the Makefile attached to this message:
|
|
|
|
|
|
|
|
$ cp Makefile ./gpc231
|
|
|
|
|
|
|
|
5. Check install paths. Edit the Makefile and make sure the install
|
|
|
|
paths are satisfactory. Also make sure that all the make commands
|
|
|
|
have leading tabs (i.e. that the tabs aren't expanded out into 8
|
|
|
|
spaces) otherwise the make will fail.
|
|
|
|
|
|
|
|
6. Build and install it:
|
|
|
|
|
|
|
|
$ cd ./gpc231
|
|
|
|
$ make
|
|
|
|
$ su
|
|
|
|
Password:
|
|
|
|
# make install
|
|
|
|
|
|
|
|
|
|
|
|
-------------------------- snip ------------------------------
|
|
|
|
|
2007-11-09 12:02:58 +00:00
|
|
|
# Unix/Linux makefile for GPC 2.32
|
2000-02-16 22:01:47 +00:00
|
|
|
#
|
|
|
|
# Riley Rainey (riley.rainey@websimulations.com)
|
2007-11-09 12:02:58 +00:00
|
|
|
# Ralf Gerlich (ralf.gerlich (at) custom-scenery (dot) org)
|
2000-02-16 22:01:47 +00:00
|
|
|
|
|
|
|
CFLAGS = -O -g
|
2007-11-09 12:02:58 +00:00
|
|
|
PREFIX=/usr/local
|
2000-02-16 22:01:47 +00:00
|
|
|
|
2001-07-11 00:32:02 +00:00
|
|
|
libgenpolyclip.a: gpc.o
|
2000-02-16 22:01:47 +00:00
|
|
|
rm -f $@
|
|
|
|
ar cr $@ $<
|
|
|
|
ranlib $@
|
|
|
|
|
|
|
|
clean:
|
2001-07-11 00:32:02 +00:00
|
|
|
rm -f libgenpolyclip.a *.o core *~
|
2000-02-16 22:01:47 +00:00
|
|
|
|
2001-07-11 00:32:02 +00:00
|
|
|
install: libgenpolyclip.a
|
2007-11-09 12:02:58 +00:00
|
|
|
-mkdir -p $(PREFIX)/lib
|
|
|
|
-mkdir -p $(PREFIX)/include
|
|
|
|
install libgenpolyclip.a $(PREFIX)/lib/libgenpolyclip.a
|
|
|
|
install gpc.h $(PREFIX)/include/gpc.h
|