Hi Christian, You are right. Right now it is not really convenient to test this manipulator. And as pointed by other fellows, it would be easier to have a complete example. I'm working on it (but have encountered a few problems).
About the linking problem you had, I think that you didn't compile the FirstPersonManipulator.cpp and link against it. If you want to only use an include, you would have to embed the code of FPM.cpp inside the FPM.h and make those functions inline. cheers Loïc Simon On Sat, May 30, 2009 at 12:18 AM, Christian Sam <[email protected]> wrote: > Hi, > > i included the following lines in my applicationcode: > #include "../include/FirstPersonManipulator.h" > viewer.setCameraManipulator(new osgGA::FirstPersonManipulator); > > and got: > 1> Creating library D:\workspace\test-osg\sln\graz\Debug\graz.lib and > object D:\workspace\test-osg\sln\graz\Debug\graz.exp > 1>graz5.obj : warning LNK4217: locally defined symbol > ??0firstpersonmanipula...@osgga@@q...@_n@Z (public: __thiscall > osgGA::FirstPersonManipulator::FirstPersonManipulator(bool)) imported in > function _main > 1>graz5.obj : warning LNK4217: locally defined symbol > ?classn...@firstpersonmanipulator@osgGA@@UBEPBDXZ (public: virtual char > const * __thiscall osgGA::FirstPersonManipulator::className(void)const ) > imported in function "[thunk]:public: virtual char const * __thiscall > osgGA::FirstPersonManipulator::className`vtordisp{4294967292,0}' (void)const > " (?classn...@firstpersonmanipulator@osgGA@@$4ppppp...@a@BEPBDXZ) > 1>graz5.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) protected: void __thiscall > osgGA::FirstPersonManipulator::`vbase destructor'(void)" > (__imp_??_dfirstpersonmanipula...@osgga@@IAEXXZ) referenced in function > "protected: virtual void * __thiscall osgGA::FirstPersonManipulator::`scalar > deleting destructor'(unsigned int)" (??_gfirstpersonmanipula...@osgga > @@maep...@z) > 1>FirstPersonManipulator.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) const osgGA::FirstPersonManipulator::`vftable'{for > `osg::Object'}" (__imp_??_7firstpersonmanipula...@osgga@@6bobj...@osg@@@) > referenced in function "public: __thiscall > osgGA::FirstPersonManipulator::FirstPersonManipulator(bool)" > (??0firstpersonmanipula...@osgga@@q...@_n@Z) > 1>FirstPersonManipulator.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) const osgGA::FirstPersonManipulator::`vftable'{for > `osg::Drawable::EventCallback'}" (__imp_??_7firstpersonmanipula...@osgga > @@6beventcallb...@drawable@osg@@@) referenced in function "public: > __thiscall osgGA::FirstPersonManipulator::FirstPersonManipulator(bool)" > (??0firstpersonmanipula...@osgga@@q...@_n@Z) > 1>FirstPersonManipulator.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) const osgGA::FirstPersonManipulator::`vftable'{for > `osg::NodeCallback'}" (__imp_??_7firstpersonmanipula...@osgga > @@6bnodecallb...@osg@@@) referenced in function "public: __thiscall > osgGA::FirstPersonManipulator::FirstPersonManipulator(bool)" > (??0firstpersonmanipula...@osgga@@q...@_n@Z) > 1>FirstPersonManipulator.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) const osgGA::FirstPersonManipulator::`vbtable'{for > `osg::Drawable::EventCallback'}" (__imp_??_8firstpersonmanipula...@osgga > @@7beventcallb...@drawable@osg@@@) referenced in function "public: > __thiscall osgGA::FirstPersonManipulator::FirstPersonManipulator(bool)" > (??0firstpersonmanipula...@osgga@@q...@_n@Z) > 1>FirstPersonManipulator.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) const osgGA::FirstPersonManipulator::`vbtable'{for > `osg::NodeCallback'}" (__imp_??_8firstpersonmanipula...@osgga > @@7bnodecallb...@osg@@@) referenced in function "public: __thiscall > osgGA::FirstPersonManipulator::FirstPersonManipulator(bool)" > (??0firstpersonmanipula...@osgga@@q...@_n@Z) > 1>D:\workspace\test-osg\sln\graz\Debug\graz.exe : fatal error LNK1120: 6 > unresolved externals > > > is it possible to try this manipulator without building a new osgViewer? > > > Thank you! > > Cheers, > Christian > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=13200#13200 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

