This post describe the problem when compiled the OSG in mac lion, a simple step by step to compile osg is here.
1. download the latest OSG code by svn:
svn checkout http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk OpenSceneGraph-SVN
2. change to OSG directory
cd OpenSceneGraph-SVN
3. prepare jasper library by a tricky
sudo ln -s /opt/local/include/jasper /Library/Frameworks/UnixImageIO.framework/Headers/jasper
4. change the cmake
cmake -D BUILD_OSG_APPLICATIONS:BOOL=OFF \
-D CMAKE_OSX_ARCHITECTURES:STRING=x86_64 \
-D OSG_WINDOWING_SYSTEM:STRING=macosx10.7 \
-D OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX:STRING=imageio \
-D OPENTHREADS_ATOMIC_USE_MUTEX:BOOL=ON \
.
5. make & install
make
sudo make install
发表回复