Most likely you are using incompatible versions of osgWorks and OSG. Check the compatibility matrix:
http://code.google.com/p/osgworks/wiki/CompatibilityMatrix

It looks like you are using osgWorks 1.1, so you should have OSG version <= 2.8.4 (well, okay, <= 2.8.5 actually -- the page is slightly out of date).

osgWorks trunk HEAD has support for OSG 2.9.x and 3.0.0, but osgWorks is under development at this point and really isn't close to being in a taggable release form, so it's hard to say when a formal release compatible with OSG v3.0.0 will be available.
   -Paul



On 7/1/2011 1:32 PM, Scott Wasinger wrote:
I tried to build osgWorks 1.1 and encountered a compile error

Scanning dependencies of target osgwTools
[  2%] Building CXX object 
src/osgwTools/CMakeFiles/osgwTools.dir/CameraConfigObject.cpp.o
~/osgWorks_01_01_00/src/osgwTools/CameraConfigObject.cpp: In member function 
~/osgWorks_01_01_00/src/osgwTools/CameraConfigObject.cpp:104:77: error: operands to 
?: have different types ‘osg::DisplaySettings*’ and 
‘osg::ref_ptr<osg::DisplaySettings>’
make[2]: *** [src/osgwTools/CMakeFiles/osgwTools.dir/CameraConfigObject.cpp.o] 
Error 1
make[1]: *** [src/osgwTools/CMakeFiles/osgwTools.dir/all] Error 2
make: *** [all] Error 2

CameraConfigObject::store

original:

Code:

osg::DisplaySettings* ds = masterCamera->getDisplaySettings() != NULL ?
masterCamera->getDisplaySettings() : osg::DisplaySettings::instance();




my mod:

Code:

osg::DisplaySettings* ds = masterCamera->getDisplaySettings();
if(ds == NULL)
ds = osg::DisplaySettings::instance();




Everything worked after this mod

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41111#41111





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


--
  -Paul Martz      Skew Matrix Software
                   http://www.skew-matrix.com/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to