FlightGear Git on Mac OS X: Difference between revisions

Jump to navigation Jump to search
Changed to reflect newer OSX (10.9) versions and Xcode beyond 4.2
m (cat: Core developer documentation)
(Changed to reflect newer OSX (10.9) versions and Xcode beyond 4.2)
Line 18: Line 18:


'''This action will take more than 2 hours!'''
'''This action will take more than 2 hours!'''
Update December 2014 with newer Macs this now compiles usualy under 1 hour.


== Install ==
== Install ==
Line 63: Line 64:
  ./autogen
  ./autogen
  ./configure --disable-pw --disable-sl --disable-psl --disable-ssg --disable-ssgaux \
  ./configure --disable-pw --disable-sl --disable-psl --disable-ssg --disable-ssgaux \
  --prefix=/usr/local CXXFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk \
  --prefix=/usr/local CXXFLAGS="-arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/ \
  -mmacosx-version-min=10.5" CFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk \
  -mmacosx-version-min=10.5" CFLAGS="-arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/ \
  -mmacosx-version-min=10.5"
  -mmacosx-version-min=10.5"
and finally:
and finally:
Line 82: Line 83:
For compiling with imageio/'''cocoa''', target architecture '''i386 AND x86_64''':
For compiling with imageio/'''cocoa''', target architecture '''i386 AND x86_64''':
  cmake ../.  -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release \
  cmake ../.  -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_OSX_SYSROOT='''/Developer/SDKs/MacOSX10.5.sdk''' -DCMAKE_OSX_ARCHITECTURES="i386;x86_64" \
  -DCMAKE_OSX_SYSROOT='''/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/''' -DCMAKE_OSX_ARCHITECTURES="i386;x86_64" \
  -DCMAKE_OSX_DEPLOYMENT_TARGET='''10.5''' -DCMAKE_MINSIZEREL_POSTFIX= -DBUILD_OSG_APPLICATIONS=OFF \
  -DCMAKE_OSX_DEPLOYMENT_TARGET='''10.9''' -DCMAKE_MINSIZEREL_POSTFIX= -DBUILD_OSG_APPLICATIONS=OFF \
  -DCMAKE_RELWITHDEBINFO_POSTFIX= -DOSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX=imageio \
  -DCMAKE_RELWITHDEBINFO_POSTFIX= -DOSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX=imageio \
  -DOSG_WINDOWING_SYSTEM=Cocoa -DJASPER_LIBRARY= -DOSG_USE_QT=0 -Wno-dev
  -DOSG_WINDOWING_SYSTEM=Cocoa -DJASPER_LIBRARY= -DOSG_USE_QT=0 -Wno-dev
Line 92: Line 93:
   
   
'''Remarks:''' Compiling OpenSceneGraph often takes more than 30 minutes.
'''Remarks:''' Compiling OpenSceneGraph often takes more than 30 minutes.
  You need to alter the '''10.5''' above to your SDK version.
  Also the path to the /Developer directory has changed since xcode 4.2 to be in the /Application/Xcode.app/Contents directory.


=== Git SimGear/FlightGear/fgdata ===
=== Git SimGear/FlightGear/fgdata ===
Line 111: Line 110:
   -DENABLE_RTI=0 \
   -DENABLE_RTI=0 \
   -DCMAKE_OSX_ARCHITECTURES="i386" \
   -DCMAKE_OSX_ARCHITECTURES="i386" \
   -DCMAKE_OSX_DEPLOYMENT_TARGET=10.5 \
   -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \
   -DCMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.5.sdk \
   -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/ \
   -DJPEG_FACTORY=0 \
   -DJPEG_FACTORY=0 \
   -DCMAKE_INSTALL_PREFIX=/usr/local
   -DCMAKE_INSTALL_PREFIX=/usr/local
Line 126: Line 125:
   -DENABLE_RTI=0 \
   -DENABLE_RTI=0 \
   -DCMAKE_OSX_ARCHITECTURES="i386" \
   -DCMAKE_OSX_ARCHITECTURES="i386" \
   -DCMAKE_OSX_DEPLOYMENT_TARGET=10.5 \
   -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \
   -DCMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.5.sdk \
   -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/ \
   -DJPEG_FACTORY=0 \
   -DJPEG_FACTORY=0 \
   -DCMAKE_INSTALL_PREFIX=/usr/local
   -DCMAKE_INSTALL_PREFIX=/usr/local
23

edits

Navigation menu