[osg-users] osgmovie error
Joshua Robinson
shooki.robinson at gmail.com
Wed May 27 06:30:11 PDT 2015
Howdy,
I have 4 things to say:
1) I compared OSG to OpenInventor or OpenCV and it is a toy.
2) I download osgmovie.cpp (attached a copy) and add it to my cmake file
that works fine on other downloaded sample code.
osgmovie.cpp, Line #150 + 151
view->computeIntersections takes x,y and not ea as parameters.
3) ==== the error ====
/home/shooki/swdev/osg-eval/build> make
Scanning dependencies of target hci571-hw01
[100%] Building CXX object CMakeFiles/hci571-hw01.dir/osgmovie.c++.o
/home/shooki/swdev/osg-eval/osgmovie.c++: In member function ‘virtual bool
MovieEventHandler::handle(const osgGA::GUIEventAdapter&,
osgGA::GUIActionAdapter&, osg::Object*, osg::NodeVisitor*)’:
/home/shooki/swdev/osg-eval/osgmovie.c++:151:70: error: no matching
function for call to ‘osgViewer::View::computeIntersections(const
osgGA::GUIEventAdapter&, osgUtil::LineSegmentIntersector::Intersections&)’
intersections) :
view->computeIntersections(ea, nv->getNodePath(), intersections));
^
/home/shooki/swdev/osg-eval/osgmovie.c++:151:70: note: candidates are:
In file included from /usr/include/osgViewer/Viewer:21:0,
from /home/shooki/swdev/osg-eval/osgmovie.c++:19:
/usr/include/osgViewer/View:225:14: note: bool
osgViewer::View::computeIntersections(float, float,
osgUtil::LineSegmentIntersector::Intersections&, osg::Node::NodeMask)
bool computeIntersections(float x,float y,
osgUtil::LineSegmentIntersector::Intersections&
intersections,osg::Node::NodeMask traversalMask = 0xffffffff);
^
/usr/include/osgViewer/View:225:14: note: candidate expects 4 arguments,
2 provided
/usr/include/osgViewer/View:228:14: note: bool
osgViewer::View::computeIntersections(float, float, const NodePath&,
osgUtil::LineSegmentIntersector::Intersections&, osg::Node::NodeMask)
bool computeIntersections(float x,float y, const osg::NodePath&
nodePath, osgUtil::LineSegmentIntersector::Intersections&
intersections,osg::Node::NodeMask traversalMask = 0xffffffff);
^
/usr/include/osgViewer/View:228:14: note: candidate expects 5 arguments,
2 provided
/home/shooki/swdev/osg-eval/osgmovie.c++:151:138: error: no matching
function for call to ‘osgViewer::View::computeIntersections(const
osgGA::GUIEventAdapter&, osg::NodePath&,
osgUtil::LineSegmentIntersector::Intersections&)’
intersections) :
view->computeIntersections(ea, nv->getNodePath(), intersections));
^
/home/shooki/swdev/osg-eval/osgmovie.c++:151:138: note: candidates are:
In file included from /usr/include/osgViewer/Viewer:21:0,
from /home/shooki/swdev/osg-eval/osgmovie.c++:19:
/usr/include/osgViewer/View:225:14: note: bool
osgViewer::View::computeIntersections(float, float,
osgUtil::LineSegmentIntersector::Intersections&, osg::Node::NodeMask)
bool computeIntersections(float x,float y,
osgUtil::LineSegmentIntersector::Intersections&
intersections,osg::Node::NodeMask traversalMask = 0xffffffff);
^
/usr/include/osgViewer/View:225:14: note: no known conversion for
argument 1 from ‘const osgGA::GUIEventAdapter’ to ‘float’
/usr/include/osgViewer/View:228:14: note: bool
osgViewer::View::computeIntersections(float, float, const NodePath&,
osgUtil::LineSegmentIntersector::Intersections&, osg::Node::NodeMask)
bool computeIntersections(float x,float y, const osg::NodePath&
nodePath, osgUtil::LineSegmentIntersector::Intersections&
intersections,osg::Node::NodeMask traversalMask = 0xffffffff);
^
/usr/include/osgViewer/View:228:14: note: candidate expects 5 arguments,
3 provided
make[2]: *** [CMakeFiles/hci571-hw01.dir/osgmovie.c++.o] Error 1
make[1]: *** [CMakeFiles/hci571-hw01.dir/all] Error 2
make: *** [all] Error 2
*** Failure: Exit code 2 ***
4) Cheers :),
-Joshua Robinson
"Live long and prosper"
On Wed, May 27, 2015 at 8:27 AM, Sebastian Messerschmidt <
sebastian.messerschmidt at gmx.de> wrote:
> Am 27.05.2015 um 13:54 schrieb Joshua Robinson:
>
>
> Howdy,
>
> Newbie to OSG.
>
> Downloaded osgmovie.c++ to learn, But can't compile: first look show
> wrong coding.
>
> What exactly did not compile?
> The example is part of the osg-source package and builds fine with the
> rest. So please point to where you downloaded which version etc.
>
>
> Q: I wonder how uncompiled code end up as a sample for newbies ?
>
> This doesn't make sense at all. Compiled coded is usually an executable or
> library, so it won't serve as a sample how to do things.
> And the example code, even if not the nicest at some point due to #defines
> etc, compiles just fine and shows how to load and display a video and audio
> stream.
> So what else would be anyone's expectation?
>
>
> So far my personal impression from OSG that it is a toy, not ready for
> ...
>
> I've been using OSG in a professional environment and industry
> applications for years, so this is really silly to say.
> Please elaborate where you need help and where others can point you into
> the right direction
>
>
> Cheers,
> -Joshua Robinson
> "Live long and prosper"
>
>
> _______________________________________________
> osg-users mailing listosg-users at lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150527/aef946d1/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osgmovie.cpp
Type: text/x-c++src
Size: 27799 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150527/aef946d1/attachment-0003.cpp>
More information about the osg-users
mailing list