Hello,

I am new to Open Scene Graph and have some installing problems. First I tried 
the 3.0.1 version from homebrew with some custom fixes to make it compile 
(https://github.com/mxcl/homebrew/issues/11391). However, the 
osgDB::readNodeFile function got stuck in an infinite loop when loading files. 
Since the 3.0.1 version is quite outdated on Lion I decided to use the latest 
version from the repository. 

So much for the background. I wanted to compile the latest version. 

1. Download 
http://www.openscenegraph.org/downloads/developer_releases/OpenSceneGraph-3.1.1.zip

2. extract it

3. 
cmake -D BUILD_OSG_APPLICATIONS:BOOL=OFF \
      -D CMAKE_OSX_ARCHITECTURES:STRING=x86_64 \
      -D OSG_WINDOWING_SYSTEM:STRING=Cocoa \
      -D OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX:STRING=imageio \
      -D OSG_COMPILE_FRAMEWORKS:BOOL=ON \
      OSG_COMPILE_FRAMEWORKS \
      .

And then I get the following error message:

-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is Clang 3.1.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework  
-- Looking for XOpenDisplay in 
/usr/X11R6/lib/libX11.dylib;/usr/X11R6/lib/libXext.dylib
-- Looking for XOpenDisplay in 
/usr/X11R6/lib/libX11.dylib;/usr/X11R6/lib/libXext.dylib - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/X11R6/lib/libX11.dylib
-- Found LibXml2: /usr/lib/libxml2.dylib (found version "2.7.3") 
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.25") 
-- Found CURL: /usr/lib/libcurl.dylib (found version "7.21.4") 
-- Found OpenAL: /System/Library/Frameworks/OpenAL.framework  
-- Found SDL: 
/usr/local/lib/libSDLmain.a;/usr/local/lib/libSDL.dylib;-framework Cocoa  
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4: /usr/bin/qmake (found version "4.8.1") 
-- Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS
-- Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS - Success
-- Performing Test _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS
-- Performing Test _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS - Failed
-- Performing Test _OPENTHREADS_ATOMIC_USE_SUN
-- Performing Test _OPENTHREADS_ATOMIC_USE_SUN - Failed
-- Performing Test _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED
-- Performing Test _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED - Failed
-- Performing Test _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC
-- Performing Test _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC - Success
-- Looking for pthread_yield
-- Looking for pthread_yield - not found
-- Looking for sched_yield
-- Looking for sched_yield - found
-- Looking for pthread_setconcurrency
-- Looking for pthread_setconcurrency - found
-- Looking for pthread_getconcurrency
-- Looking for pthread_getconcurrency - found
-- Looking for pthread_setaffinity_np
-- Looking for pthread_setaffinity_np - not found
-- Performing Test HAVE_THREE_PARAM_SCHED_SETAFFINITY
-- Performing Test HAVE_THREE_PARAM_SCHED_SETAFFINITY - Failed
-- Performing Test HAVE_TWO_PARAM_SCHED_SETAFFINITY
-- Performing Test HAVE_TWO_PARAM_SCHED_SETAFFINITY - Failed
Will compile OpenThreads.framework!

The build system is configured to install libraries to /usr/local/lib
Your applications may not be able to find your installed libraries unless you:
    set your LD_LIBRARY_PATH (user specific) or
    update your ld.so configuration (system wide)
CMake Error: The following variables are used in this project, but they are set 
to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake 
files:
COLLADA_BOOST_FILESYSTEM_LIBRARY
    linked by target "osgdb_dae" in directory 
/Users/dominik/Ramsch/OpenSceneGraph-SVN/src/osgPlugins/dae


I installed collada-dom and boost via homebrew and already set the 
COLLADA_BOOST_FILESYSTEM_LIBRARY variable to /usr/local/Cellar/boost/1.49.0/lib.

What am I missing?

Thank you very much.


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to