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.
By clicking “Sign up for GitHub”, you agree to our
terms of service
and
privacy statement
. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
libosgViz.so : undefined reference to 'non virtual thunk to osgga:: EventHandler:: event (OSG:: nodevisitor *, OSG:: drawable *')
libosgViz.so : undefined reference to 'non virtual thunk to osgga:: EventHandler:: event (OSG:: nodevisitor *, OSG:: drawable *')
1ADZX
opened this issue
Jun 12, 2020
· 2 comments
Scanning dependencies of target osgViz_bin
[ 89%] Building CXX object src/CMakeFiles/osgViz_bin.dir/Main.cpp.o
[ 92%] Linking CXX executable osgViz_bin
libosgViz.so:对‘non-virtual thunk to osgGA::EventHandler::event(osg::NodeVisitor*, osg::Drawable*)’未定义的引用
libosgViz.so:对‘osg::NodeCallback::run(osg::Object*, osg::Object*)’未定义的引用
libosgViz.so:对‘osgGA::EventHandler::event(osg::NodeVisitor*, osg::Drawable*)’未定义的引用
libosgViz.so:对‘virtual thunk to osg::NodeCallback::run(osg::Object*, osg::Object*)’未定义的引用
libosgViz.so:对‘typeinfo for osgGA::EventHandler’未定义的引用
libosgViz.so:对‘osg::Callback::traverse(osg::Object*, osg::Object*)’未定义的引用
libosgViz.so:对‘osgGA::GUIEventHandler::handle(osgGA::Event*, osg::Object*, osg::NodeVisitor*)’未定义的引用
libosgViz.so:对‘osgViewer::View::addEventHandler(osgGA::EventHandler*)’未定义的引用
libosgViz.so:对‘non-virtual thunk to osgViewer::View::computeIntersections(osgGA::GUIEventAdapter const&, std::multiset<osgUtil::LineSegmentIntersector::Intersection, std::lessosgUtil::LineSegmentIntersector::Intersection, std::allocatorosgUtil::LineSegmentIntersector::Intersection >&, unsigned int)’未定义的引用
libosgViz.so:对‘osgGA::EventHandler::operator()(osg::Node*, osg::NodeVisitor*)’未定义的引用
libosgViz.so:对‘non-virtual thunk to osgViewer::View::computeIntersections(osgGA::GUIEventAdapter const&, std::vector<osg::Node*, std::allocatorosg::Node* > const&, std::multiset<osgUtil::LineSegmentIntersector::Intersection, std::lessosgUtil::LineSegmentIntersector::Intersection, std::allocatorosgUtil::LineSegmentIntersector::Intersection >&, unsigned int)’未定义的引用
libosgViz.so:对‘osgGA::EventHandler::handle(osgGA::Event*, osg::Object*, osg::NodeVisitor*)’未定义的引用
libPrimitivesFactory.so:对‘osg::Group::removeChild(osg::Node*)’未定义的引用
libosgViz.so:对‘vtable for osgGA::EventHandler’未定义的引用
libosgViz.so:对‘osg::Drawable::EventCallback::run(osg::Object*, osg::Object*)’未定义的引用
libosgViz.so:对‘virtual thunk to osg::Drawable::EventCallback::run(osg::Object*, osg::Object*)’未定义的引用
libosgViz.so:对‘VTT for osgGA::EventHandler’未定义的引用
libosgViz.so:对‘osgViewer::View::removeEventHandler(osgGA::EventHandler*)’未定义的引用
libPrimitivesFactory.so:对‘osg::Group::getNumChildren() const’未定义的引用
collect2: error: ld returned 1 exit status
src/CMakeFiles/osgViz_bin.dir/build.make:210: recipe for target 'src/osgViz_bin' failed
make[2]: *** [src/osgViz_bin] Error 1
CMakeFiles/Makefile2:202: recipe for target 'src/CMakeFiles/osgViz_bin.dir/all' failed
make[1]: *** [src/CMakeFiles/osgViz_bin.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
I cannot reproduce this error.
I tried it in a docker container with ubuntu 18.04 where i installed build-essential, libopenscenegraph-dev, and base-cmake (
https://github.com/rock-core/base-cmake
)
Can you give me some context on which system you are trying to build?
Is there possibly a source-build install of openscenegraph somewhere in your system?