Fr/Script de compilation sous Linux Debian/Ubuntu: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 48: Line 48:
Vous pouvez utiliser le paramètre '''-i''' pour compiler OpenRTI, ou la re-configuration SimGear et FlightGear avec l'option -D ENABLE_RTI=ON (experimental)
Vous pouvez utiliser le paramètre '''-i''' pour compiler OpenRTI, ou la re-configuration SimGear et FlightGear avec l'option -D ENABLE_RTI=ON (experimental)


==== When building Next you may see build errors ====
==== Erreurs lors de la compilation de la version Next ====
Keeping in mind that this script compiles bleeding edge software versions, using latest debian derivered distros, it can happen that the program that was successfully compiling last week, today does not. Building the stable version should always work unless there is a problem with the script<BR/>
Gardez à l'esprit que ce script se compile avec les dernières versions des logiciels, en utilisant les dernières distributions Debian. Il peut arriver que le programme qui a été compilé avec succès la semaine dernière, aujourd'hui, ne fonctionne plus. Construire la version stable devrait toujours fonctionner, sauf s'il y a un problème avec le script.


== Download ==
== Téléchargement ==
You can download the script here:  
Vous pouvez télécharger le script ici:  
*  [http://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/download_and_compile.sh?format=raw
*  [http://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/download_and_compile.sh?format=raw
*The script is maintained in the FlightGear main repository. Remember to update this script whenever a new FlightGear version is released, so that you'll be able to download the latest stable revision.
Le script est maintenu dans le dépôt FlightGear principal. Rappelez-vous de mettre à jour ce script dans le cas d'une nouvelle version de FlightGear, vous pourrez ainsi télécharger la dernière version stable.


There is also another option for building FlightGear and all its dependencies in an automated fashion, please refer to: http://geoffmclane.com/fg/fgfs-052.htm
== Pièges connus ==
Dans les versions FlightGear antérieures ou égales à 3.0 le système de construction cmake est connu pour ne pas reconfigurer automatiquement les sources SG/FG apèrs mise à jour dans $SG_SRC et $FG_SRC, en principe que vous devez utiliser un "git pull" pour mettre à jour les sources (via le script d&c) qui créera les derniers binaires, mais ça ne concernera pas le paquet de base des data. En effet, les sources continueront à utiliser les anciennes versions des fichiers qui se trouvent dans le cache de cmake. Cette anomalie a été rencontrée par plusieurs contributeurs, y compris pour le développement du noyau de base.


== Known Pitfalls ==
Pour contourner ce problème, allez dans les répertoire de construction SG/FG et reconfigurez chaque arborescence en exécutant la commande "cmake ." - pour plus d'informations voyez [http://forum.flightgear.org/viewtopic.php?f=22&t=20304#p186647][http://forum.flightgear.org/viewtopic.php?f=22&p=187413#p186942].
FlightGear versions <= 3.0 are known to have a cmake build system issue related to NOT automatically reconfiguring the SG/FG sources after updating the version files in in $SG_SRC and $FG_SRC, which basically means that using "git pull" to update your source trees (via the d&c script) will create the latest binaries, but they may not be looking for the right base package data, because the source trees are still using the old version files found in the cmake cache. This has been encountered by various contributors, including at least one core developer.


To work around this issue, simply switch to your SG/FG build directories and reconfigure each tree by running "cmake ." - for further info, see [http://forum.flightgear.org/viewtopic.php?f=22&t=20304#p186647][http://forum.flightgear.org/viewtopic.php?f=22&p=187413#p186942].
Ceci devrait être résolu dans les versions stables postérieures à la 3.0.


This should probably be removed. Stable is 3.0.
== Procédure ==
Pour lancer l'exécution de download_and_compile.sh, enregistrez le script dans un répertoire de travail, comme, par exemple: ~/fgfs
puis exécutez le (il n'est pas nécessaire d'être root).


== Instructions ==
Voici un exemple de la séquence des commandes pour récupérer le cript depuis la branch "master". Vous pouvez remplacer "master" par next pour récupérer la dernière version de développement du script, s'il y en a une:
To run download_and_compile.sh, just save it in a directory called for example: ~/fgfs
then execute it (no need to execute it as root).
 
Here is for example a sequence of commands to get the script from the master branch. You can replace master with next to get a later version of the script if one is available:
<pre>
<pre>
mkdir ~/fgfs
mkdir ~/fgfs
Line 78: Line 76:




You have two options now: build the latest ''stable'' FlightGear release or build the ''current development'' version (bleeding edge).
Vous disposez de deux options: construire la dernière version ''stable'' de FlightGear, ou construire la version courante de développement (bleeding edge).
After building stable or the latest, if you need to build a different version, try the instructions for [[Avoiding Multiple Downloads of fgdata]].   
Après construction, si vous avez besoin de construire une version différente, essayez la procédure [[Avoiding Multiple Downloads of fgdata]].   
=== Build the latest stable FlightGear release ===
=== Construction de la dernière version stable de FlightGear ===
When executing the script, use the "-s" option to build the latest stable release:
À l'exécution du script utilisez l'option "-s" pour travailler sur la dernière version stable:
<pre>
<pre>
./download_and_compile.sh -s
./download_and_compile.sh -s
</pre>
</pre>


=== Build the current FlightGear development version ===
=== Construction de la version de développement de FlightGear ===
When executing the script without any options,  
À l'exécution du script sans aucune option, la dernière version de développement sera constuite.
the latest development version is built.


'''Warning''': The development version of Flightgear changes on an almost daily basis. It provides the latest features, but is not always guaranteed to work reliably. If you're unfamiliar with software testing, you may prefer to use the latest stable release.
'''Attention''': La version de développementde Flightgear évolue tous les jours. Elle fournit les dernières fonctions disponibles, mais sans aucune garantie de fonctionnement correcte. Si vous n'êtes pas un habitué des tests de logiciels vous devriez vous en tenir à la version stable.


<pre>
<pre>
Line 97: Line 94:




Once the script is finished, you will successfully get Flightgear and Fgrun installed in the ~/fgfs directory.
Une fois l'exécution du script correctement terminée, vous disposerez de FlightGear et Fgrun installés dans le répertoire ~/fgfs.


=== Launching FlightGear ===
=== Lancement de FlightGear ===
When using brisa's script, the two FG dependencies/libs are usually not installed system-wide, but in a custom location (that makes it possible, to easily use different OSG/SG/FG versions on a single system, i.e. for testing purposes - but also to have separate build trees (optimized/debug) ) - which is why you either need to set LD_LIBRARY_PATH or simply use Brisa's script to run everything (something like run_fgfs.sh, which automatically sets up all environment variables according to your build settings).  
When using brisa's script, the two FG dependencies/libs are usually not installed system-wide, but in a custom location (that makes it possible, to easily use different OSG/SG/FG versions on a single system, i.e. for testing purposes - but also to have separate build trees (optimized/debug) ) - which is why you either need to set LD_LIBRARY_PATH or simply use Brisa's script to run everything (something like run_fgfs.sh, which automatically sets up all environment variables according to your build settings).  


117

edits

Navigation menu