Skip to content

Instantly share code, notes, and snippets.

@marchelbling
Created September 25, 2013 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marchelbling/6699516 to your computer and use it in GitHub Desktop.
Save marchelbling/6699516 to your computer and use it in GitHub Desktop.
script to build osg
#!/bin/bash
CXXFLAGS="-pipe" cmake ../ -DCMAKE_BUILD_TYPE=Debug -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_INSTALL_PREFIX=`pwd`/build -DCMAKE_DEBUG_POSTFIX='' -DBUILD_OSG_ANIMATIONTEST=NO -DOSG_WINDOWING_SYSTEM=Cocoa -DBUILD_OSG_EXAMPLES=NO -DwxWidgets_CONFIG_EXECUTABLE=wxWidgets_CONFIG_EXECUTABLE-NOTFOUND -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
make
source debug_env.sh
#!/bin/bash
export OSG_ROOT=`pwd`
export OSG_LIBRARY_PATH=$OSG_ROOT/lib/
export LD_LIBRARY_PATH=$OSG_ROOT/lib/:/usr/local/lib/:$LD_LIBRARY_PATH
export PATH=$OSG_ROOT/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment