| 1 |
[This file is mirrored in both the FlightGear and SimGear packages.] |
| 2 |
|
| 3 |
You *must* have plib version 1.8.4 or later installed on your system |
| 4 |
to build FlightGear!" Flight Gear is no longer compatible with the |
| 5 |
earlier versions of the library. |
| 6 |
|
| 7 |
You can get the latest version of plib from: |
| 8 |
|
| 9 |
http://plib.sourceforge.net |
| 10 |
|
| 11 |
Build notes: |
| 12 |
|
| 13 |
You should be able to just run "./configure" to configure the package |
| 14 |
and use all of plib's defaults. Then run "make" followed by "make |
| 15 |
install". By default, plib installs itself into /usr so if you don't |
| 16 |
like this, be sure to specify an alternate prefix such as --prefix=/usr/local |
| 17 |
|
| 18 |
As of this writing (2007-11-18), many linux distributions are shipped with a |
| 19 |
working version of plib, so chances are that this library is already |
| 20 |
installed. It should be noted, that currently plib version no longer compiles |
| 21 |
using recent versions of gcc (confirmed on version gcc 4.1.2, as shipped with |
| 22 |
SuSe 10.2). As a workaround, it is possible to either use plib SVN. Run the |
| 23 |
following commands: |
| 24 |
|
| 25 |
|
| 26 |
svn co https://plib.svn.sourceforge.net/svnroot/plib/trunk plib |
| 27 |
cd plib |
| 28 |
./autogen.sh |
| 29 |
./configure |
| 30 |
make |
| 31 |
make install |
| 32 |
|
| 33 |
Alternatively, it is relatively straightforward to fix the compilation |
| 34 |
problems in plib |
| 35 |
|
| 36 |
The two errors reported are the following: |
| 37 |
ssgaSky.h:107: error: extra qualification ‘ssgaCelestialBodyList::’ on member ‘ssgaCelestialBodyList’ |
| 38 |
ssgaSky.h:195: error: extra qualification ‘ssgaCloudLayerList::’ on member ‘ssgaCloudLayerList’ |
| 39 |
|
| 40 |
To fix, open the file plib-1.8.4/src/ssgAux/ssgaSky.h |
| 41 |
|
| 42 |
and change line 107 to read: |
| 43 |
~ssgaCelestialBodyList () { removeAll(); } |
| 44 |
and change line 195 to read: |
| 45 |
~ssgaCloudLayerList () { removeAll(); } |
| 46 |
|
| 47 |
In other words, remove the "extra qualification" parts from both lines. |
| 48 |
After these changes, plib-1.8.4. should build and install correctly. |