271
edits
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 | |||
'' | |||
correctly. All this libs are available trough macports i.e. with "sudo port install tiff" etc. | |||
Checkout OpenSceneGraph | Checkout OpenSceneGraph trunk with | ||
git clone https://github.com/openscenegraph/osg.git OpenSceneGraph | |||
Make a copy of the "OpenSceneGraph" folder you get, maybe you need a fresh | 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 | 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_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 |
edits