Dec 18, 2007 These notes were made while installing Git for the first time (version 1.5.2.3 is the latest version at the time of writing) on Mac OS X Tiger. The only dependency I had no choice but to install was the Expat library. These notes were made while installing Git for the first time (version 1.5.2.3 is the latest version at the time of writing) on Mac OS X Tiger. The only dependency I had no choice but to install was the Expat library. Beginner's Setup Guide for Git & Github on Mac OS X. There is an updated version of this post for OS X 10.9. While the steps below should still work, I recommend checking out the new guide if you are running 10.9! There are already plenty of guides that explain the particular steps of getting Git and Github going on your mac in detail.
FlightGear Git on: |
---|
Mac OS X |
Please read this, important!
This page is under heavy developement! It shows how you can probably succeed with installing your own FlightGear Developement Version on OSX 10.5 or 10.6, on a Intel-based Mac. This page is experimental and this building should not be used unless you know what you do with your computer. Keep in mind that installing developer versions of software can crash your computer ;-) Please do not start to mail to the FlightGear- or SimGear Devel-Mailinglist with FlightGear OSX installing problems related to this Wiki, ask your questions or report errors in the forum in postings/threads related to this page! --> http://forum.flightgear.org/viewtopic.php?f=21&t=14175
Before you start, move other installs out of system root
The build system for FlightGear changed 2011 to cmake. When you want to follow this wiki and get a new clean install you should remove all former installs of plib, PLIB.Framework, OpenSceneGraph, simgear and flightgear. Depending on location where you installed FlightGear GIT version (NOT MacFlightGear!), you have to remove a lot of stuff i.e. in /usr/include, /usr/lib, /usr/local/lib, /usr/local/include etc. (depends where you installed before, but default is /usr/local/..). It is probably better NOT TO DELETE this stuff, keep the content in a safe place, but out of system root.
Default installing locations
This guide installs the software with default paths on your system, in /usr and /usr/local. 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.
Requirements
System Requirements: OSX 10.5.8 (Leopard) or higher, and an Intel Mac.Other requirements: Basic knowledge of using Terminal on OSX, Xcode Dev Tools
This action will take more than 2 hours!Update December 2014 with newer Macs this now compiles usualy under 1 hour.
Install
Install Xcode Developer Tools
Download and install Xcode Dev Tools for OSX
for OSX 10.5.8 (i386) you can use Tools 3.1.4 How to get older dev tools versions
for OSX 10.6 (i386, x86_64) you can use Dev Tools 3.2.6
Newer Xcode 4.0 is free but is installed with Apple's appstore now. When you want to install flightgear with SDK 10.5 and target 10.5 you need Dev Tools/Xcode <= 3.2.6
Download and Install GIT
Download and install GIT for OSX. Grab the latest version from
Install ICU and boost
Download ICU source from herehttp://site.icu-project.org/downloadthen
Download recent boost from here:
CD into the boost directory , run:
Adobe premiere pro 2 0 mac. Note: this step can take more than 1 hour! Boost is made for drinking more tea.
Install cmake
Adobe premiere pro 2 0 mac. Note: this step can take more than 1 hour! Boost is made for drinking more tea.
Install cmake
Download and install cmake from here:http://www.cmake.org/cmake/resources/software.html
Mac os mavericks release date. When you want to compile against SDK 10.5 and target 10.5 you will need the'Mac OSX 32-bit Universal (for Intel or PPC, Tiger/10.4 or later)' version.
Install plib (1.8.5/trunk)
Checkout plib trunk with:
Then run (for target OSX 10.9/i386 i.e.):
and finally:
Download and install OpenSceneGraph trunk
Checkout OpenSceneGraph trunk with
Install Git Mac Os X32
Make a copy of the 'OpenSceneGraph' folder you get, maybe you need a fresh clone again when it fails.
For compiling with imageio/cocoa, target architecture i386 AND x86_64:
Finally:
Remarks: Compiling OpenSceneGraph often takes more than 30 minutes.
Git SimGear/FlightGear/fgdata
Setup Git On Mac
Create a directory where you want to place your new FlightGear code.
The fgdata is about 4 GB! You can clone this repo once and later you use git pull. There is other page FlightGear and Git about using the FlightGear GIT Repos.
Install SimGear
cd to the simgear directory and type
Install FlightGear
Install Git Bash On Mac
cd to the flightgear directory and type
Using Xcode for compilation
Open the created .xcodeproj files and build it using ⌘ + B or choosing the menu Product=>Build. You may need to set the build target 'ALL_BUILD>My Mac 64-bit' or what ever your target is and the configuration in the menu Product=>'Edit Scheme' where you can set the build configuration to 'Debug' or 'Release' under the 'Run' tab. Once successfully compiled you need to install the build on the terminal since the standard target location of the files need root privileges. So change directory to your osg, simgear or flightgear git directory containing the .xcodeproj file and execute the command 'sudo xcodebuild -target install -configuration Release'. The -configuration depends on what you last built usually Release though. Choose -target uninstall to uninstall all related files. Is fl studio compatible with mac.
NotesCheck that you are using the proper versions of OSG and simgear with flightgear. Use git checkout to get the correct version. You can list them with the 'git tag' command.Some problems occure when compiling speex when you have an installed a version in /opt/local/include/speex that is not compatible with the current used in fg. One solution is to change the to 'speex/..h' to pickup the local files delivered with the fg git repository.
Finish and Testrun
You can use fgfs --fg-root=/path/to/fgdata and --fg-scenery=/path/to/scenery