You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Checkout and build current OpenSceneGraph (2014-08-20 16:15:36)
2. Checkout and try to build osgephemeris
What is the expected output? What do you see instead?
Compilation should work but error occurs:
osgEphemeris/src/osgEphemerisLib/SkyDome.cpp: In member function ‘void
SkyDomeUpdateCallback::_callDrawableCallbacks(osg::Geode*,
osg::NodeVisitor*)’:
osgEphemeris/src/osgEphemerisLib/SkyDome.cpp:71:92: error: invalid conversion
from ‘osg::Callback*’ to ‘osg::Drawable::UpdateCallback*’ [-fpermissive]
osg::Drawable::UpdateCallback *updateCallback = dbl->getUpdateCallback();
^
osgEphemeris/src/osgEphemerisLib/SkyDome.cpp:71:92: error: cannot convert from
base ‘osg::Callback’ to derived type ‘osg::Drawable::UpdateCallback’
via virtual base ‘osg::Callback’
What version of the product are you using? On what operating system?
Current SVN Rev 33 on Debian Jessie. Compiled with g++ 4.8.3 and CMake 2.8.12.2.
Please provide any additional information below.
In SkyDome.cpp line 71 replace:
osg::Drawable::UpdateCallback *updateCallback = dbl->getUpdateCallback();
with
osg::Drawable::UpdateCallback *updateCallback =
dynamic_cast<osg::Drawable::UpdateCallback*>(dbl->getUpdateCallback());
Original issue reported on code.google.com by [email protected] on 27 Aug 2014 at 1:05
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 27 Aug 2014 at 1:05The text was updated successfully, but these errors were encountered: