osgBullet build error with osg::Node::asCamera

26 views
Skip to first unread message

goesm...@hotmail.com

unread,
May 26, 2017, 7:49:31 AM5/26/17
to omegalib
Hi Alessandro:
   I build omegalib 16 with omegaOsg on windows with vs2013, when it build osgBullet, the errors is as bloew:

错误 1 error LNK2001: 无法解析的外部符号 "public: virtual class osg::Camera * __thiscall osg::Node::asCamera(void)" (?asCamera@Node@osg@@UAEPAVCamera@2@XZ) E:\github\omegalib_alessandro-build\3rdparty\osgBullet\build\src\osgbCollision\osgwToolsd.lib(Shapes.obj)
错误 2 error LNK2001: 无法解析的外部符号 "public: virtual class osg::Camera * __thiscall osg::Node::asCamera(void)" (?asCamera@Node@osg@@UAEPAVCamera@2@XZ) E:\github\omegalib_alessandro-build\3rdparty\osgBullet\build\src\osgbCollision\Chart.obj
错误 3 error LNK2001: 无法解析的外部符号 "public: virtual class osg::Camera * __thiscall osg::Node::asCamera(void)" (?asCamera@Node@osg@@UAEPAVCamera@2@XZ) E:\github\omegalib_alessandro-build\3rdparty\osgBullet\build\src\osgbCollision\CollisionShapes.obj
错误 4 error LNK2001: 无法解析的外部符号 "public: virtual class osg::Camera * __thiscall osg::Node::asCamera(void)" (?asCamera@Node@osg@@UAEPAVCamera@2@XZ) E:\github\omegalib_alessandro-build\3rdparty\osgBullet\build\src\osgbCollision\ComputeShapeVisitor.obj
错误 5 error LNK2001: 无法解析的外部符号 "public: virtual class osg::Camera * __thiscall osg::Node::asCamera(void)" (?asCamera@Node@osg@@UAEPAVCamera@2@XZ) E:\github\omegalib_alessandro-build\3rdparty\osgBullet\build\src\osgbCollision\GLDebugDrawer.obj
错误 6 error LNK2001: 无法解析的外部符号 "public: virtual class osg::Camera const * __thiscall osg::Node::asCamera(void)const " (?asCamera@Node@osg@@UBEPBVCamera@2@XZ) E:\github\omegalib_alessandro-build\3rdparty\osgBullet\build\src\osgbCollision\osgwToolsd.lib(Shapes.obj)
错误 7 error LNK2001: 无法解析的外部符号 "public: virtual class osg::Camera const * __thiscall osg::Node::asCamera(void)const " (?asCamera@Node@osg@@UBEPBVCamera@2@XZ) E:\github\omegalib_alessandro-build\3rdparty\osgBullet\build\src\osgbCollision\Chart.obj
错误 8 error LNK2001: 无法解析的外部符号 "public: virtual class osg::Camera const * __thiscall osg::Node::asCamera(void)const " (?asCamera@Node@osg@@UBEPBVCamera@2@XZ) E:\github\omegalib_alessandro-build\3rdparty\osgBullet\build\src\osgbCollision\CollisionShapes.obj
错误 9 error LNK2001: 无法解析的外部符号 "public: virtual class osg::Camera const * __thiscall osg::Node::asCamera(void)const " (?asCamera@Node@osg@@UBEPBVCamera@2@XZ) E:\github\omegalib_alessandro-build\3rdparty\osgBullet\build\src\osgbCollision\ComputeShapeVisitor.obj
错误 10 error LNK2001: 无法解析的外部符号 "public: virtual class osg::Camera const * __thiscall osg::Node::asCamera(void)const " (?asCamera@Node@osg@@UBEPBVCamera@2@XZ) E:\github\omegalib_alessandro-build\3rdparty\osgBullet\build\src\osgbCollision\GLDebugDrawer.obj
错误 11 error LNK1120: 2 个无法解析的外部命令 E:\github\omegalib_alessandro-build\bin\debug\osgbCollisiond.dll


It like that vs can't find osg::Node::asCamera(void) and osg::Node::asCamera(void)const's definition。
But in osg::Node header file:

        virtual Camera* asCamera() { return 0; }
        virtual const Camera* asCamera() const { return 0; }

the definition is in header file.

And when I build omegaOsg whit osg3.4.0, OsgDebugOverlay.cpp:125
foreach(osgUtil::RenderStage::RenderStageOrderPair rsop, stage->getPreRenderList())
osgUtil::RenderStage not have member getPreRenderList.

Help Help Help.
Thank you!

goesm...@hotmail.com

unread,
May 27, 2017, 1:12:46 AM5/27/17
to omegalib
Hi Alessandro:
   Today I rebuild all omega with osg, and no errors anymore.

And is there any omega with osgearth demoes?
Thank you!

Alessandro Febretti

unread,
Jun 12, 2017, 6:13:21 PM6/12/17
to omegalib
There is a python example here: https://github.com/omega-hub/omegaOsgEarth/tree/master/examples (you need to install the omegaOsgEarth module)

Note that this code is pretty old and afaik nobody is maintaining osgEarth support at this time.. it might still work but can't say for sure.
Reply all
Reply to author
Forward
0 new messages