FlightGear Git on Mac OS X: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Changed to reflect newer OSX (10.9) versions and Xcode beyond 4.2)
No edit summary
Line 61: Line 61:
Checkout plib trunk with:
Checkout plib trunk with:
  svn checkout https://plib.svn.sourceforge.net/svnroot/plib/trunk
  svn checkout https://plib.svn.sourceforge.net/svnroot/plib/trunk
Then run (for target OSX 10.5/i386 i.e.):
Then run (for target OSX 10.9/i386 i.e.):
  ./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 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.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 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/ \
  -mmacosx-version-min=10.9" 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.9"
and finally:
and finally:
  sudo make install
  sudo make install
Line 104: Line 104:
=== Install SimGear ===
=== Install SimGear ===
cd to the simgear directory and type
cd to the simgear directory and type
  mkdir build && cd build


   cmake ../. -G "Unix Makefiles" ../. \
   cmake . -G Xcode -DENABLE_TESTS=1 -DENABLE_RTI=0 -DCMAKE_OSX_ARCHITECTURES="i386" -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \
  -DENABLE_TESTS=1 \
  -DENABLE_RTI=0 \
  -DCMAKE_OSX_ARCHITECTURES="i386" \
  -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \
   -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.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
 
 
   xcodebuild -target ALL_BUILD -configuration Release
   sudo make install
  xcodebuild -target install -configuration Release


=== Install FlightGear ===
=== Install FlightGear ===
cd to the flightgear directory and type
cd to the flightgear directory and type
  mkdir build && cd build


   cmake ../. -G "Unix Makefiles" ../. \
   cmake . -G Xcode -DENABLE_TESTS=1 -DENABLE_RTI=0 -DCMAKE_OSX_ARCHITECTURES="i386" -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \
  -DENABLE_TESTS=1 \
  -DENABLE_RTI=0 \
  -DCMAKE_OSX_ARCHITECTURES="i386" \
  -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \
   -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.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
 
  xcodebuild -target ALL_BUILD -configuration Release
  xcodebuild -target install -configuration Release


  sudo make install


=== Using Xcode for compilation ===
=== Using Xcode for compilation ===
23

edits

Navigation menu