Here are some hints on how to build fgfs from source. This is what I have had to do to get it to come anywhere /close/ to working on Debian etch; there are still compilation errors.
If anybody has corrections or further suggestions, please speak up. Also, I point out (again) that the instructions on the FlightGear web site are very, very incomplete. Perhaps something along the lines of these notes should be put in the appropriate place(s), notably http://www.flightgear.org/cvs/anoncvs.html Similarly the .configure thingy should do a better job of checking that whatever is needed is actually present. An informative message from .configure is a lot more helpful than a few thousand uninformative compilation errors. I also suggest that the term "base system" be extirpated from the documentation. It is highly confusing to users. It would make more sense to talk of -- the /source/ tree, and -- the /data/ tree. Finally I suggest that we get rid of the so-called "cvs tarballs". -- On the nitpicky level, the name is a contradiction in terms. Either use cvs or don't; if you are fetching things via cvs you don't need a tarball. -- On a more practical level, the "cvs tarballs" don't work. Details available on request. Seriously: anybody who wants to live on the bleeding edge should just use honest-to-goodness anonymous cvs to fetch the latest version. ====================================== Here are some hints on how to build fgfs from source. 0) Reserve sufficient disk space: Sizes in kilobytes: du -s * 923768 FGFS 581672 openscenegraph 24396 plib-1.8.4 48072 simgear In addition, doing the "install" will take a big bite out of your /usr partition. 1) Get the latest OSG. Basic outline, thanks to Ron Jensen: -- Use apt to pull the Debian sources[1], -- apply the FlightGear patch [2] file, -- rebuild it with dpkg-build [3] -- For more details, see "APT HOWTO Chapter 6 - Working with source packages" [4] [1] mkdir .../openscenegraph cd .../openscenegraph apt-get source openscenegraph [2] ftp://ftp.uni-duisburg.de/FlightGear/Misc_maf/OpenSceneGraph-20061114/OSG_OP_OT-1.2-Flightgear.diff <OSG_OP_OT-1.2-Flightgear.diff patch -p1 [3] cd openscenegraph-1.2.0 dpkg-buildpackage -rfakeroot -uc -b cd .. dpkg -i *.deb ## a goodly number of .deb files [4] http://www.debian.org/doc/manuals/apt-howto/ch-sourcehandling.en.html 2) Get plib Instructions: http://plib.sourceforge.net/download.html wget http://plib.sourceforge.net/dist/plib-1.8.4.tar.gz tar xzf plib-1.8.4.tar.gz cd plib-1.8.4 ./configure #apply patch; see appendix below make make install 3) Get simgear. Instructions: http://www.simgear.org/cvs.html mkdir .../simgear cd .../simgear cvs -d :pserver:[EMAIL PROTECTED]:/var/cvs/SimGear-0.3 login CVS passwd: guest cvs -d :pserver:[EMAIL PROTECTED]:/var/cvs/SimGear-0.3 co source ./autogen ./configure make make install 4) Get FlightGear Vague and incomplete instructions: http://www.flightgear.org/cvs/anoncvs.html mkdir .../flightgear cd .../flightgear cvs -d :pserver:[EMAIL PROTECTED]:/var/cvs/FlightGear-0.9 login CVS passwd: guest # data tree: just needs to be downloaded: cvs -d :pserver:[EMAIL PROTECTED]:/var/cvs/FlightGear-0.9 co data # source tree: needs to be downloaded and compiled: cvs -d :pserver:[EMAIL PROTECTED]:/var/cvs/FlightGear-0.9 co source cd source ./autogen ./configure make make install ========================== Appendix: plib patch: --- plib-1.8.4/src/ssgAux/ssgaSky.h 2007/01/09 15:17:40 1.1 +++ plib-1.8.4/src/ssgAux/ssgaSky.h 2006/12/31 07:57:26 @@ -18,7 +18,7 @@ For further information visit http://plib.sourceforge.net - $Id: ssgaSky.h,v 1.1 2007/01/09 15:17:40 jsd Exp $ + $Id: ssgaSky.h,v 1.3 2003/09/26 14:54:20 sjbaker Exp $ */ // Written by Curtis Olson, started December 1997. @@ -104,7 +104,7 @@ ssgaCelestialBodyList ( int init = 3 ) : ssgSimpleList ( sizeof(ssgaCelestialBody*), init ) { } - ssgaCelestialBodyList::~ssgaCelestialBodyList () { removeAll(); } + ~ssgaCelestialBodyList () { removeAll(); } int getNum (void) { return total ; } @@ -192,7 +192,7 @@ ssgaCloudLayerList ( int init = 3 ) : ssgSimpleList ( sizeof(ssgaCloudLayer*), init ) { } - ssgaCloudLayerList::~ssgaCloudLayerList () { removeAll(); } + ~ssgaCloudLayerList () { removeAll(); } int getNum (void) { return total ; } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel