369
edits
(New page: ==Description== 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 (D...) |
mNo edit summary |
||
Line 17: | Line 17: | ||
to run it, just save it in a directory called for example: ~/fg_tools | to run it, just save it in a directory called for example: ~/fg_tools | ||
then execute it (No need to be execute it as root). | then execute it (No need to be execute it as root). | ||
here is for example a | here is for example a sequence of commands to get the script and launch it in a new folder. | ||
<pre> | <pre> | ||
mkdir ~/fgfs | mkdir ~/fgfs | ||
Line 35: | Line 35: | ||
===Launching Fgrun=== | ===Launching Fgrun=== | ||
For many users it is more | For many users it is more comfortable having Flighgear launched by the graphical utiliy fgrun wich is installed as well in the same folder. You have to launch the ''run_fgrun.sh'' command, for example: | ||
<pre> | <pre> | ||
cd ~/fgfs | cd ~/fgfs | ||
Line 58: | Line 58: | ||
===Obtaining the script=== | ===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> | 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 download_and_compile.sh script, the | Solution: Ask on the irc channel for the download_and_compile.sh script, the community will provide it for you. | ||
===Compilation errors=== | ===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 | 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 fas 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. | # 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 has been modified, while osg itself compiles fine, fg wont. | # 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 has been modified, while osg itself compiles fine, fg wont. | ||
# One or more repositories are down and you can't get the library you need. (Both from cvs/svn or apt-get)<br> | # 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 or days), if (End generally happens) software developers repair or | There is a simple solution to the above errors: wait and relaunch the script after some time (Hours or days), if (End generally happens) software developers repair or synchronize their code with the newly updated libraries, your flightgear will compile fine as the previous error never took place.<br> | ||
Sometimes happens that the script fails to compile only fgrun,fgcom or atlas, if you then see the run_fgfs.sh file it means that flighgear installation was | Sometimes happens that the script fails to compile only fgrun,fgcom or atlas, if you then see the run_fgfs.sh file it means that flighgear installation was successful, and you can safely run it. | ||
==Options== | ==Options== | ||
The script by default (Without any option) will only compile Flightgear and Fgrun. to make it | The script by default (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.: | ||
<pre> | <pre> | ||
sh download_and_compile.sh ALL | sh download_and_compile.sh ALL |
edits