Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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 *') #26

Open
1ADZX opened this issue Jun 12, 2020 · 2 comments

Comments

@1ADZX
Copy link

1ADZX commented Jun 12, 2020

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

@planthaber
Copy link
Member

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?

@1ADZX
Copy link
Author

1ADZX commented Jun 14, 2020

Is there possibly a source-build install of openscenegraph somewhere in your system?

I built rock on Ubuntu 16.04. First, I installed OSG separately. The path of the corresponding library file is usr / local / lib4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants