Building FlightGear - Linux: Difference between revisions

Jump to navigation Jump to search
Started updating to Git.
m (Update to Git required)
(Started updating to Git.)
Line 16: Line 16:
These are: c++, cpp, gcc, g++ found under the /usr/bin directory.  You will also need to have the tools '''autoconf''' and '''automake1.9''' installed.
These are: c++, cpp, gcc, g++ found under the /usr/bin directory.  You will also need to have the tools '''autoconf''' and '''automake1.9''' installed.


'''CVS'''
'''GIT'''


Yes, the program is called 'CVS'.  This is used for downloading the latest set of source code. Windows developers may wish to see [[Using TortoiseCVS with FlightGear]].
See [[FlightGear and Git]].


'''[[OpenGL]] support'''
'''[[OpenGL]] support'''
Line 72: Line 72:
4. [[ OpenSceneGraph ]]
4. [[ OpenSceneGraph ]]


5. SimGear - Simulation support libraries. If you are building FlightGear from CVS, you need the CVS version of SimGear. If you have strange build errors, one of the first things to check is that you have an up-to-date version of SimGear built and installed.
5. SimGear - Simulation support libraries. If you are building FlightGear from Git, you need the Git version of SimGear. If you have strange build errors, one of the first things to check is that you have an up-to-date version of SimGear built and installed.


==== APT-GET List ====
==== APT-GET List ====
This is a list of all the apt-get commands I had to do while compiling FG, SG, and OSG on a mostly clean Ubuntu 64 system. It is a list of all the libraries you and your computer needs to compile FG, SG, OSG, and PLib. All you have to do is copy the full command, paste it in Terminal, enter your password, and it will download all the packages for you, and install them too. The full command is at the bottom, and I hope someone finds it useful :) sub-dependencies (dependencies of the dependencies) are not included as they are installed automatically by apt-get. If anyone sees something missing, please add it.
This is a list of all the apt-get commands I had to do while compiling FG, SG, and OSG on a mostly clean Ubuntu 64 system. It is a list of all the libraries you and your computer needs to compile FG, SG, OSG, and PLib. All you have to do is copy the full command, paste it in Terminal, enter your password, and it will download all the packages for you, and install them too. The full command is at the bottom, and I hope someone finds it useful :) sub-dependencies (dependencies of the dependencies) are not included as they are installed automatically by apt-get. If anyone sees something missing, please add it.
   
   
cvs - to get SG and FG <br>
git - to get SG and FG <br>
subversion - to get OSG <br>
subversion - to get OSG <br>
build-essential - to build (includes GCC, and other build tools) <br>
build-essential - to build (includes GCC, and other build tools) <br>
Line 117: Line 117:
'''Step 1:'''
'''Step 1:'''


Login to the cvs server and checkout the latest version of SimGear's source code with:
Clone the SimGear git repository and set it up to track the 'next' branch.
  cvs -d :pserver:cvsguest@cvs.simgear.org:/var/cvs/SimGear-0.3 login
  git clone git://gitorious.org/fg/simgear.git
CVS passwd: guest
 
By default after cloning you should have a local next branch that tracks the master next branch. It can be updated it with git pull.
cvs -d :pserver:cvsguest@cvs.simgear.org:/var/cvs/SimGear-0.3 co source


'''Step 2:'''
'''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.
The source code will be downloaded into a directory called '''simgear'''.
 
Rename the above directory by doing:
mv source simgear


Next, go into the directory and make preparations for the compilation:
Next, go into the directory and make preparations for the compilation:
Line 135: Line 131:
  ./configure
  ./configure


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


'''Step 3:'''
'''Step 3:'''
Line 152: Line 148:
'''Step 1:'''
'''Step 1:'''


To login to the cvs version and checkout the latest version of Flightgear's source code, use:
Clone the FlightGear git repository and set it up to track the 'next' branch.
  cvs -d :pserver:cvsguest@cvs.flightgear.org:/var/cvs/FlightGear-0.9 login
  git clone git://gitorious.org/fg/flightgear.git
CVS passwd: guest
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 Flightgear's source code downloaded into it.
By default after cloning you should have a local next branch that tracks the master next branch. It can be updated it with git pull.


'''Step 2:'''
'''Step 2:'''
To rename the above directory, use the following command:
mv source flightgear


Next, go into the folder and make preparations for the compilation:
Next, go into the folder and make preparations for the compilation:
789

edits

Navigation menu