Development osg

LinuxJohannes edited this page Jan 25, 2014 · 1 revision
Clone this wiki locally

Building OSG on OSX

These instructions will install osg and osgEarth to /usr/local and were tested on OSX 10.8 on Aug 19th, 2012, and on OSX 10.7 on Sept. 24th, 2012.

OSG Core

  • Create a directory for this whole installation process
  • Checkout osg: git clone https://github.com/peabody124/osg.git
  • Make a build directory: mkdir osg-build; cd osg-build
  • Install cmake using Homebrew: ** If cmake is currently uninstalled (i.e. if you've never done this before): brew install cmake ** If cmake is already installed, and is version <2.8.9: brew update; brew unlink cmake; brew install cmake
  • Configure osg: ccmake ../osg
  • Press "c" to generate the configuration
  • If after the configuration there is a warning about library install paths, simple press "e" to exit the help screen ** On 10.7 and 10.8, we had to force it to use just x86_64, so find the CMAKE_OSX_ARCHITECTURES and hit to edit and remove the i386 option ** On 10.6, similar to the above except remove the ppc and i386 option, and add x86_64.
  • Press "g" to generate and quit
  • cmake .
  • make
  • sudo make install

OSGEarth

  • Install dependencies: brew install gdal
  • Get osgearth: git clone https://github.com/gwaldron/osgearth.git
  • Make a build directory: mkdir osgearth-build; cd osgearth-build
  • cmake ../osgearth
  • make -j4
  • sudo make install