FlightGear Git on Mac OS X: Difference between revisions

Jump to navigation Jump to search
m
Line 119: Line 119:
=== Install FlightGear ===
=== Install FlightGear ===
cd to the flightgear directory and type
cd to the flightgear directory and type
   export CFLAGS="-g -O2 -fPIC -arch i386 -arch x86_64"
   mkdir build && cd build
   export CXXFLAGS="-g -O2 -fPIC -arch i386 -arch x86_64"
 
   cmake . -DJPEG_FACTORY=1 -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_FGADMIN=OFF -DWITH_FGPANEL=OFF
  cmake ../. -G "Unix Makefiles" ../. \
  make
  -DENABLE_TESTS=1 \
  -DENABLE_RTI=0 \
  -DCMAKE_OSX_ARCHITECTURES="i386" \
   -DCMAKE_OSX_DEPLOYMENT_TARGET=10.5 \
  -DCMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.5.sdk \
   -DJPEG_FACTORY=0 \
  -DCMAKE_INSTALL_PREFIX=/usr/local
 
   sudo make install
   sudo make install
As of november 2011 fgadmin and fgpanel won’t compile here on OSX. Set -DENABLE_FGADMIN=OFF -DWITH_FGPANEL=OFF  to ON when you want to give it a try ...


=== Using Xcode for compilation ===
=== Using Xcode for compilation ===
271

edits

Navigation menu