Building FlightGear - Linux: Difference between revisions

Jump to navigation Jump to search
Line 76: Line 76:


== Compiling ==
== Compiling ==
To compile and install FlightGear (and its dependencies) system wide, you need be root.  Next, do:
Assuming you are root, do:
  cd /usr/local/src
  cd /usr/local/src


=== Getting and compiling SimGear ===
=== Getting and compiling SimGear ===
Follow these steps:
 
Step 1:
'''Step 1:'''
 
Login to the cvs server and checkout the latest version of SimGear's source code with:
  cvs -d :pserver:cvsguest@cvs.simgear.org:/var/cvs/SimGear-0.3 login
  cvs -d :pserver:cvsguest@cvs.simgear.org:/var/cvs/SimGear-0.3 login
  CVS passwd: guest
  CVS passwd: guest
cvs -d :pserver:cvsguest@cvs.simgear.org:/var/cvs/SimGear-0.3 co source


cvs -d :pserver:cvsguest@cvs.simgear.org:/var/cvs/SimGear-0.3 co source
'''Step 2:'''
 
Since all the source code will be downloaded into a directory called '''source''', you will need to rename the directory into something more meaningful.


Step 2:
Rename the above directory by doing:
  mv source simgear
  mv source simgear
Next, go into the directory and make preparations for the compilation:
  cd simgear
  cd simgear
  ./autogen.sh
  ./autogen.sh
  ./configure
  ./configure


Step 3:
'''Step 3:'''
 
Compile and install SimGear by doing:
  make; make install
  make; make install


=== Getting and compiling FlightGear ===
=== Getting and compiling FlightGear ===
Step 1:
 
'''Step 1:'''
 
To login to the cvs version and checkout the latest version of Flightgear's source code, use:
  cvs -d :pserver:cvsguest@cvs.flightgear.org:/var/cvs/FlightGear-0.9 login
  cvs -d :pserver:cvsguest@cvs.flightgear.org:/var/cvs/FlightGear-0.9 login
  CVS passwd: guest
  CVS passwd: guest
cvs -d :pserver:cvsguest@cvs.flightgear.org:/var/cvs/FlightGear-0.9 co source


cvs -d :pserver:cvsguest@cvs.flightgear.org:/var/cvs/FlightGear-0.9 co source
A directory with the name '''source''' will then be created with all of Flightgearear's source code downloaded into it.
 
'''Step 2:'''


Step 2:
To rename the above directory, use the following command:
  mv source flightgear
  mv source flightgear
Next, go into the folder and make preparations for the compilation:
  cd flightgear
  cd flightgear
  ./autogen.sh
  ./autogen.sh
  ./configure
  ./configure


Step 3:
'''Step 3:'''
 
Now you can compile and install Flightgear by:
  make; make install
  make; make install


356

edits

Navigation menu