FlightGear Git on Mac OS X: Difference between revisions

Jump to navigation Jump to search
xcodebuild default. Added some notes on speex include path.
No edit summary
(xcodebuild default. Added some notes on speex include path.)
Line 110: Line 110:
    
    
   xcodebuild -target ALL_BUILD -configuration Release
   xcodebuild -target ALL_BUILD -configuration Release
   xcodebuild -target install -configuration Release
   sudo xcodebuild -target install -configuration Release


=== Install FlightGear ===
=== Install FlightGear ===
Line 120: Line 120:
    
    
   xcodebuild -target ALL_BUILD -configuration Release
   xcodebuild -target ALL_BUILD -configuration Release
   xcodebuild -target install -configuration Release
   sudo xcodebuild -target install -configuration Release




=== Using Xcode for compilation ===
=== Using Xcode for compilation ===
You can add -G Xcode to above cmake statements to let cmake create the needed xcode project files. 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.  
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.


=== Notes
Check 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 <speex/...h> to \"speex/...h\" to pickup the local files delivered with the fg git repository.
=== Finish and Testrun ===
=== Finish and Testrun ===


23

edits

Navigation menu