Parsing .osm* scene in program

looko

14-11-2008 16:10:43

Hey I have problem with parsing my osm scene to program

Code:


OSMScene* oScene = new OSMScene();
OSMSceneCallbacks *Callback = new OSMSceneCallbacks;


mSceneMgr->setAmbientLight(ColourValue(0,0,0));
mSceneMgr->setShadowTechnique( SHADOWTYPE_STENCIL_ADDITIVE );

oScene->initialise("scena.osm", Callback);
oScene->createScene();


And the linker errors
1
OGRE.obj : error LNK2019: unresolved external symbol "public: bool __thiscall OSMScene::createScene(class Ogre::SceneNode *)" (?createScene@OSMScene@@QAE_NPAVSceneNode@Ogre@@@Z) referenced in function "protected: virtual void __thiscall MyApp::createScene(void)" (?createScene@MyApp@@MAEXXZ)
OGRE.obj : error LNK2019: unresolved external symbol "public: bool __thiscall OSMScene::initialise(char const *,class OSMSceneCallbacks *)" (?initialise@OSMScene@@QAE_NPBDPAVOSMSceneCallbacks@@@Z) referenced in function "protected: virtual void __thiscall MyApp::createScene(void)" (?createScene@MyApp@@MAEXXZ)


2
OGRE.obj : error LNK2019: unresolved external symbol "public: __thiscall OSMScene::OSMScene(class Ogre::SceneManager *,class Ogre::RenderWindow *)" (??0OSMScene@@QAE@PAVSceneManager@Ogre@@PAVRenderWindow@2@@Z) referenced in function "protected: virtual void __thiscall MyApp::createScene(void)" (?createScene@MyApp@@MAEXXZ)

3
D:\aplikacje\aplikejszyn.exe : fatal error LNK1120: 3 unresolved externals


I done this with manual, and help from ofusion support but it doesnt working. Maybe do you know some tutorials about parsing scene in program?

Best regards

looko

17-11-2008 14:00:10

nobody knows?

Evak

17-11-2008 17:32:45

I'm not a programmer but it looks like the usual linking errors I'd get when I try and link libraries incorrectly in visual studio. When I was trying to get ofusion to work one time, I had probs with tinyXML.

Luckily I don't have to touch any of that stuff anymore :)

Lioric

18-11-2008 00:20:09

Yes, you need to include the .cpp files (and compile them) in your project solution

See the documentation, "Integrating in your Application" page of the "Scene Loader" chapter for more details

From the documentation:

"To integrate the oScene loader library in your application you need to include the 'OgreOSMScene.cpp' and the TinyXML source files in your project/solution.

See the Demo_oSceneLoader project for an example of the oScene loader lib use."

looko

18-11-2008 19:51:59

i did it.