Jump to: navigation, search

Scripted Compilation on Linux Debian/Ubuntu

41 bytes added, 20:12, 3 March 2009
spelling and links to mentioned programs
The following script takes care of downloading and compiling Flightgear from the cvs repositories with just one command execution for both 32 and 64 Debian based systems (Debian, Ubuntu). Pre-existing installed version (If if any) of Flightgear are not touched at all since the script builds and installs everything under the directory within it is launched.
Necessary packages are installed via the apt-get system while libraries not included in the repositories are downloaded and compiled on the fly (Ii.e. Plib, Simgear and OSG).
===List of compiled programs===
* Fgcom
* Atlas
* Terrasync
to To run it, just save it in a directory called for example: ~/fg_toolsthen execute it (No no need to be execute it as root).here Here is for example a sequence of commands to get the script and launch it in a new folder.
mkdir ~/fgfs
once Once all will be finished, you will sucessfully get all the programs installed in the ~/fgfs directory.
===Launching Flightgear===
to To run your new cvs installation of Flightgear you have to launch the '''' command under the same folder, for example:
cd ~/fgfs
===Launching Fgrun===
For many users it is 's more comfortable having Flighgear launched by the graphical utiliy fgrun [[Fgrun]] wich is installed as well in the same folder. You have to launch the '''' command, for example:
cd ~/fgfs
===Launching FgcomFGCOM===Fgcom [[FGCOM]] is the system used by flightgear to simulate radio comunications communications between users. Launch it using the '''' command:
cd ~/fgfs
===Launching Terrasync===
Your Flightgear compilations cames compilation comes with the terrasync program too, so if you want to use it:
cd ~/fgfs
sh -p 5500 -d /folder/with/sceneries
whereWhere: ''/folder/with/sceneries '' is the folder containing the sceneries data.
===Obtaining the script===
The script is hosted by my home server, if electricity goes down or internet connection failes, you will be not able to download it directly.<br> 
Solution: Ask on the irc channel for the script, the community will provide it for you.
===Compilation errors===
Here we are, no fear, if you wish to use programs from the cvs/svn repositories, you will face anytime compilation errors that will prevent you to have a working copy of one or more of the programs provided by this script. What can be the causes that prevent us from a successful compiling ? as As far as I know this:
# Software developers introduce a new functionality with a new piece of code that prevents the compilation under your architecture, this can happen working with cvs/svn sources.
# The program refuses to compile because of a divergence in the libraries it depends. For example can happen the Flightgear does not compile because osg [[OSG]] has been modified, while osg OSG itself compiles fine, fg wontFG won't.# One or more repositories are down and you can't get the library you need. (Both from cvs/svn or apt-get)<br>
There is a simple solution to the above errors: wait and relaunch the script after some time (Hours hours or days), if (End end generally happens) software developers repair or synchronize their code with the newly updated libraries, your flightgear will compile fine as if the previous error never took place.<br>
Sometimes it happens that the script fails to compile only fgrun,fgcom or atlas, if you then see the file it means that flighgear Flightgear installation was successful, and you can safely run it.
The script by default (Without without any option) will only compile Flightgear and Fgrun. to make it compile all you need to launch the script with the ''ALL'' parameter. i.e.:
sh ALL
===Compiling only one program===
If you wish to recompile only one of the program programs you can launch the script with the parameterfollowing parameters:* PLIB (To to compile and install only plib)* OSG (To to compile and install only OpenSceneGraph)* SIMGEAR (To to compile and install only Simgear)* FGFS (To to compile and install only FlightGear)* DATA (To to download / update only data files for FlightGear)* FGRUN (To to compile and install only Fgrun)* FGCOM (To to compile and install only Fgcom)* ATLAS (To to compile and install only Atlas)
===Fast updating===
There is a second parameter ''UPDATE'' that allows you to just update your installation. i.e.:
This will only update FGFS
==Disk usage==
Having both compiled program, source codes and data from cvs requires some Hard hard disk space: It will take you something like 3GB of space.If you don't have a fast machine, it will require you also some hour hours of compilation time.

Navigation menu