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!