FlightGear Git on Mac OS X: Difference between revisions

Jump to navigation Jump to search
Line 66: Line 66:
=== Download and install OpenSceneGraph 3.0.1 ===
=== Download and install OpenSceneGraph 3.0.1 ===


'''Remark:''' This is the most complicated part. Be sure you have all deps for OpenSceneGraph installed
'''Remark:''' This is the most complicated part. Be sure you have all deps for OpenSceneGraph installed when you change some cmake settings like cocoa/ioimage instead of quicktime/carbon etc., then you will probably need ''tiff'', ''jpeg'' and ''libpng'' to get some OSG Plug-ins installed correctly. All this libs are available trough macports i.e. with "sudo port install tiff jpeg libpng" etc. Dont forget to add "+universal" when you want to compile for target "i386;x86_64".
when you change some cmake settings like ioimage instead of quicktime etc., then you will probably need  
''libtiff'', ''libjpeg, libpng'', ''freetype'' to get some OSG Plug-ins installed  
correctly. All this libs are available trough macports i.e. with "sudo port install tiff" etc.


After checking deps of OSG ...


Checkout OpenSceneGraph 3.0.1 source with
Checkout OpenSceneGraph trunk with
  svn co http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-3.0.1 OpenSceneGraph<br />
  git clone https://github.com/openscenegraph/osg.git OpenSceneGraph


Make a copy of the "OpenSceneGraph" folder you get, maybe you need a fresh "clone" again.
Make a copy of the "OpenSceneGraph" folder you get, maybe you need a fresh clone again when it fails.


  cd OpenSceneGraph
  cd OpenSceneGraph


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=/Developer/SDKs/MacOSX10.5.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.5 -DCMAKE_MINSIZEREL_POSTFIX= -DBUILD_OSG_APPLICATIONS=OFF \
  -DCMAKE_RELWITHDEBINFO_wPOSTFIX= -DOSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX=imageio \
  -DCMAKE_RELWITHDEBINFO_POSTFIX= -DOSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX=imageio \
  -DOSG_WINDOWING_SYSTEM=Cocoa
  -DOSG_WINDOWING_SYSTEM=Cocoa
   
 
Alternate for compiling with imageio/carbon, target architecture '''i386/32-bit only''':
  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_DEPLOYMENT_TARGET=10.5 -DCMAKE_MINSIZEREL_POSTFIX= -DBUILD_OSG_APPLICATIONS=OFF \
-DCMAKE_RELWITHDEBINFO_POSTFIX= -DOSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX=imageio \
-DOSG_WINDOWING_SYSTEM=Carbon
 
Finally:
  make
  make
  sudo make install
  sudo make install
271

edits

Navigation menu