|
|
Line 51: |
Line 51: |
|
| |
|
| === Download and install OpenSceneGraph trunk === | | === Download and install OpenSceneGraph trunk === |
|
| |
| '''Remark 1:''' This is the most complicated part. Be sure you have all deps for OpenSceneGraph installed when you change some cmake settings like cocoa/ioimage (32/64-bit) instead of quicktime/carbon (32-bit only). Maybe you will need ''tiff'', ''jpeg'' and ''libpng'' installed to get some OSG Plug-ins compiled correctly. All this libs are available trough macports i.e. with "sudo port install tiff jpeg libpng" etc. Dont forget to add "+universal" port variant when you want to compile for more than one target ("i386;x86_64").
| |
|
| |
| '''Remark 2:''' Be careful what frameworks you have installed in /Lybrary/Frameworks. I edited some scenery for flightgear and that was the reason I had some geo frameworks installed. I had to move this frameworks to a safe place during OSG compilation, out of path (i.e. GDAL, GEOS, GSL, PROJ and especially UnixImageIO.framework).
| |
|
| |
|
| |
|
| Checkout OpenSceneGraph trunk with | | Checkout OpenSceneGraph trunk with |
Line 71: |
Line 66: |
| -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 \ | | -DCMAKE_RELWITHDEBINFO_POSTFIX= -DOSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX=imageio \ |
| -DOSG_WINDOWING_SYSTEM=Cocoa -Wno-dev | | -DOSG_WINDOWING_SYSTEM=Cocoa -DJASPER_LIBRARY= -DOSG_USE_QT=0 -Wno-dev |
| | |
| 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 -Wno-dev
| |
|
| |
|
| Finally: | | Finally: |