Building FlightGear - Linux: Difference between revisions

m
(Cleanup of old information.)
Line 165: Line 165:
Note that if you don't want to install simgear globally on the system but in a specific directory, you can do so by adding --prefix=/path/to/your/fgInstallation to the ./configure command.
Note that if you don't want to install simgear globally on the system but in a specific directory, you can do so by adding --prefix=/path/to/your/fgInstallation to the ./configure command.
If you are building the OSG-version of FlightGear and didn't install OSG globally, you have to pass the OSG directory to the configure-command like this:
If you are building the OSG-version of FlightGear and didn't install OSG globally, you have to pass the OSG directory to the configure-command like this:
  ./configure --prefix=/path/to/fgInstallation --with-osg=/path/to/osg/source/build.osg --enable-osgviewer
  ./configure --prefix=/path/to/fgInstallation --with-osg=/path/to/osg/installation --enable-osgviewer
In this case you have to tell your system where to find the OSG libraries before you can run flightgear:
In this case you have to tell your system where to find the OSG libraries before you can run flightgear:
   export LD_LIBRARY_PATH=/path/to/fgInstallation/lib:$LD_LIBRARY_PATH
   export LD_LIBRARY_PATH=/path/to/fgInstallation/lib:$LD_LIBRARY_PATH
789

edits