271
edits
Line 77: | Line 77: | ||
cd OpenSceneGraph | cd OpenSceneGraph | ||
mkdir build && cd build | |||
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 \ | ||
Line 96: | Line 98: | ||
sudo make install | sudo make install | ||
'''Remarks:''' Compiling OpenSceneGraph often takes more than 30 minutes. | |||
You need to alter the '''10.5''' above to your SDK version. | You need to alter the '''10.5''' above to your SDK version. | ||
Also the path to the /Developer directory has changed since xcode 4.2 to be in the /Application/Xcode.app/Contents directory. | Also the path to the /Developer directory has changed since xcode 4.2 to be in the /Application/Xcode.app/Contents directory. |
edits