Fr/FlightGear Git sur Mac OS X: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
{{FlightGearGitOn}}
{{FlightGearGitOn}}
== Important à lire! ==
== Important à lire! ==
Cette page est en grand développement ! Et vous pouvez probablement réussir à installer votre version de développement de FlightGear sur OSX 10.5 ou 10.6 sur Mac Intel. Mais cette page est expérimentale, et il ne vaut mieux ne pas utiliser ce montage si vous ne connaissez pas bien votre ordinateur. Sachez que l'installation d'un logiciel de développement de version peut l'endommager!  ;-)  <span style="color:#FF0000">''' Ne commencez pas à écrire à FlightGear- or SimGear Devel-Mailinglist pour des problèmes d'installation de FlightGear OSX rapportés dans ce Wiki, posez vos questions ou soumettez vos erreurs dans le forum en postant des sujets dans cette page --> http://flightgear.org/forums/viewtopic.php?f=21&t=14175
Cette page est en grand développement ! Et vous pouvez probablement réussir à installer votre version de développement de FlightGear sur OSX 10.5 ou 10.6 sur Mac Intel. Mais cette page est expérimentale, et il ne vaut mieux ne pas utiliser ce montage si vous ne connaissez pas bien votre ordinateur. Sachez que l'installation d'un logiciel de développement de version peut l'endommager!  ;-)  <span style="color:#FF0000">''' Ne commencez pas à écrire à FlightGear- ou SimGear Devel-Mailinglist pour des problèmes d'installation de FlightGear OSX rapportés dans ce Wiki, posez vos questions ou soumettez vos erreurs dans le forum en postant des sujets dans cette page --> http://flightgear.org/forums/viewtopic.php?f=21&t=14175
'''
'''


Line 8: Line 8:


== Endroits d'installation par défaut ==
== Endroits d'installation par défaut ==
This guide installs the software with default paths on your system (MacPorts in /opt/local/ - other parts in /usr and /usr/local). There is only one framework (to be placed manually) in /Library/Frameworks. '''Use your own configuration options to get your preferred locations!'''. Do not post linking errors in the forum or the lists when you decide to use your own search paths.
Ce guide installe le logiciel avec des chemins par défaut sur votre système (Ports Mac dans /opt/local/ - les autres parties dans /usr and /usr/local). Il y a seulement un cadre à placer manuellement dans /Library/Frameworks. '''Utiliser les options de votre propre configuration pour avoir votre localisation préférée!'''. Ne postez pas de liens d'erreur dans le forum ou de listes quand vous choisissez d'utiliser vos propres chemins de recherche.


== Systèmes requis ==
== Systèmes requis ==
System Requirements: OSX 10.5.8 (Leopard) or higher, and an Intel Mac.
Systemes Requis: OSX 10.5.8 (Leopard) ou plus, et un Intel Mac.
Other requirements: Basic knowledge of using Terminal on OSX, Xcode Dev Tools, MacPorts
Autres obligations: Connaissance de l'usage du Terminal sur OSX, Xcode Dev Tools, MacPorts
  You are going to install:
  Vous allez installer:
  Xcode Dev Tools, MacPorts, boost, cmake, plib, ALUT.framework, OpenSceneGraph, git, SimGear and finally FlightGear
  Xcode Dev Tools, MacPorts, boost, cmake, plib, ALUT.framework, OpenSceneGraph, git, SimGear and finally FlightGear


'''This action will take more than 2 hours!'''
'''Cette action peut nécessiter plus de deux heures!'''


== Installation ==
== Installation ==


=== Installation des outils Xcode Developer ===
=== Installation des outils Xcode Developer ===
Download and install Xcode Dev Tools for OSX<br />
Téléchargez et installez Xcode Dev Tools pour OSX<br />
for OSX 10.5.8 you need Dev Tools 3.1.4 [http://meandmark.com/blog/2009/10/downloading-older-versions-of-xcode How to get older dev tools versions]<br />  
pour OSX 10.5.8 vous avez besoin de Dev Tools 3.1.4 [http://meandmark.com/blog/2009/10/downloading-older-versions-of-xcode Comment obtenir des anciennes versions de dev tools]<br />  
for OSX 10.6 (x86_64) you can use Dev Tools 3.2.6<br />
pour OSX 10.6 (x86_64) vous pouvez utiliser Dev Tools 3.2.6<br />
  [http://developer.apple.com/technologies/xcode.html http://developer.apple.com/technologies/xcode.html]
  [http://developer.apple.com/technologies/xcode.html http://developer.apple.com/technologies/xcode.html]
Note that apple charges for version 4.0 and later and it is hard to find the links for older versions. However you can still use the required version for flightgear [3.2 or later] for free and you don’t need Dev Tools >= 4 [http://meandmark.com/blog/2009/10/downloading-older-versions-of-xcode How to get older dev tools versions]
Notez que Apple se charge des versions 4.0 et plus, mais il est très difficile de trouver des liens pour des versions plus anciennes. Cependant, vous pouvez encore obtenir gratuitement la version requise pour flightgear [3.2 ou plus ancienne] et vous n'avez pas besoin de Dev Tools >= 4 [http://meandmark.com/blog/2009/10/downloading-older-versions-of-xcode Comment obtenir les versions plus anciennes de tools versions]


=== Installation des ports Mac ===
=== Installation des ports Mac ===
Download and install [http://www.macports.org/install.php MacPorts]<br />
Téléchargez et installez [http://www.macports.org/install.php MacPorts]<br />
Note: With already installed MacPorts it could be a good idea to first decactivate all other ports for this wiki. More information: http://guide.macports.org/#installing.macports.upgrade.
Note: Avec les Ports Mac déja installés, ce serait une bonne idée de désactiver d'abord tous les autres ports pour ce wiki. Plus d'informations: http://guide.macports.org/#installing.macports.upgrade.


=== Mise à jour des Ports Mac ===
=== Mise à jour des Ports Mac ===
In terminal type
Tapez dans le terminal
  sudo port selfupdate
  sudo port selfupdate


As of november 2011 you should get MacPorts 2.0.3
En novembre 2011 vous auriez MacPorts 2.0.3


Maybe you need also to upgrade your ports a bit, then type
Peut-être devriez-vous metre à jourr un peu vos ports, alors tapez


  sudo port upgrade outdated
  sudo port upgrade outdated


=== Télécharger et installer GIT ===
=== Télécharger et installer GIT ===
There are different possibilities to install GIT.  
differentes possibilités pour installer GIT.  
  Option 1: install via MacPorts in Terminal with "sudo port install git-core"
  Option 1: installer via MacPorts dans le Terminal avec "sudo port install git-core"


  Option 2: Download and install GIT for OSX. Grab the latest version from
  Option 2: Télécharger et installer GIT pour OSX. Saisissez la dernière version de
  [http://code.google.com/p/git-osx-installer/ http://code.google.com/p/git-osx-installer/]
  [http://code.google.com/p/git-osx-installer/ http://code.google.com/p/git-osx-installer/]


=== Installer  ''boost'' (1.47.0) avec les Ports Mac ===
=== Installer  ''boost'' (1.47.0) avec les Ports Mac ===
  sudo port install boost +universal
  sudo port install boost +universal
Note: this step can take more than 30 minutes! Boost is made for drinking more tea.
Note: cette étape peut prendre plus de 30 minutes! c'est fait exprès pour prendre une tasse de thé.


=== Installer ''cmake'' (2.8.6) avec les Ports Mac===
=== Installer ''cmake'' (2.8.6) avec les Ports Mac===
Line 56: Line 56:


=== Installer '''plib''' (1.8.5) +universal ===
=== Installer '''plib''' (1.8.5) +universal ===
just install plib via MacPorts
juste installer plib via MacPorts
  sudo port install plib +universal
  sudo port install plib +universal


=== Installer le ALUT.framework ===
=== Installer le ALUT.framework ===
Note: Ce cadre is provided by James T. This is not official! James posted this download link in the develist and the link to the framework can change. Linking to the OpenAL/alut.h header and compilation of official freealut fails on my OSX 10.5.8 with FlightGear, and there is also no port avaiable at the moment. Big thanks to James for providing this framework (universal).
Note: Ce cadre est fourni par James T. Ce n'est pas officiel! James a mis ce lien dans la develist et ce lien au cadre peut changer. Le lien à OpenAL/alut.h titre et compilation de l' official freealut échoue sur mon OSX 10.5.8 avec FlightGear, et en ce moment, il n'y a aucun port valable. Un grand merci à James de fournir  ce cadre (universel).
Download here '''(temporary location!)''': [http://files.goneabitbursar.com/fg/alut-osx-universal.zip]<br />
Téléchargez ici '''(localisation provisoire!)''': [http://files.goneabitbursar.com/fg/alut-osx-universal.zip]<br />
Unzip and move the ALUT.framework folder to /Library/Frameworks
Dé-zippez et mettez le dossier ALUT.framework dans /Library/Frameworks


=== Téléchargez et installez  le tronc OpenSceneGraph ===
=== Téléchargez et installez  le tronc OpenSceneGraph ===


'''Remark 1:''' This is the most complicated part. Be sure you have all deps for OpenSceneGraph installed when you change some cmake settings like cocoa/ioimage (32/64-bit) instead of quicktime/carbon (32-bit only). Maybe you will need ''tiff'', ''jpeg'' and ''libpng'' installed to get some OSG Plug-ins compiled correctly. All this libs are available trough macports i.e. with "sudo port install tiff jpeg libpng" etc. Dont forget to add "+universal" port variant when you want to compile for more than one target ("i386;x86_64").
'''Remarque 1:''' Voici la partie la plus compliquée. Soyez sur d"avoir tous le deps pour OpenSceneGraph installés when you change some cmake settings like cocoa/ioimage (32/64-bit) instead of quicktime/carbon (32-bit only). Maybe you will need ''tiff'', ''jpeg'' and ''libpng'' installed to get some OSG Plug-ins compiled correctly. All this libs are available trough macports i.e. with "sudo port install tiff jpeg libpng" etc. Dont forget to add "+universal" port variant when you want to compile for more than one target ("i386;x86_64").


'''Remark 2:''' Be careful what frameworks you have installed in /Lybrary/Frameworks. I edited some scenery for flightgear and that was the reason I had some geo frameworks installed. I had to move this frameworks to a safe place during OSG compilation, out of path (i.e. GDAL, GEOS, GSL, PROJ and especially UnixImageIO.framework).
'''Remark 2:''' Be careful what frameworks you have installed in /Lybrary/Frameworks. I edited some scenery for flightgear and that was the reason I had some geo frameworks installed. I had to move this frameworks to a safe place during OSG compilation, out of path (i.e. GDAL, GEOS, GSL, PROJ and especially UnixImageIO.framework).
88

edits

Navigation menu