Beginner question about after exporting...

Cliffius

02-12-2006 17:14:39

I'm new to Ogre and I'm just trying to export a simple scene of a table to practice loading it in. I get the files exported, but then I don't know where to put them in my directory.

I downloaded the demo dagon and attempted to compile that, but it didn't work. I'm on a windows machine and I use VC++ 2005. I have also used the Ogre AppWizard to set up my code.

I can get the tutorials on the wiki to compile fine, so I don't know if the appwizard changes the directories around or not because it's different from the setup in the dagon demo.

Any help would be appreciated. Let me know if you need more information about my setup.

Cliffius

02-12-2006 18:56:31

Ok, I've fiddled around with the folders and I believe I've set them up right. However, when I try to build the demo, I get this error:


Compiling...
oSceneLibDemo.cpp
OgreOSMScene.cpp
Generating Code...
Compiling manifest to resources...
Linking...
OgreOSMScene.obj : error LNK2019: unresolved external symbol "public: char const * __thiscall TiXmlElement::Attribute(class std::basic_string,class std::allocator > const &)const " (?Attribute@TiXmlElement@@QBEPBDABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: bool __thiscall OSMScene::initialise(char const *,class OSMSceneCallbacks *)" (?initialise@OSMScene@@QAE_NPBDPAVOSMSceneCallbacks@@@Z)
OgreOSMScene.obj : error LNK2019: unresolved external symbol "public: class TiXmlElement * __thiscall TiXmlNode::NextSiblingElement(void)const " (?NextSiblingElement@TiXmlNode@@QBEPAVTiXmlElement@@XZ) referenced in function "public: bool __thiscall OSMScene::initialise(char const *,class OSMSceneCallbacks *)" (?initialise@OSMScene@@QAE_NPBDPAVOSMSceneCallbacks@@@Z)
OgreOSMScene.obj : error LNK2019: unresolved external symbol "public: class TiXmlElement * __thiscall TiXmlNode::FirstChildElement(void)const " (?FirstChildElement@TiXmlNode@@QBEPAVTiXmlElement@@XZ) referenced in function "public: bool __thiscall OSMScene::initialise(char const *,class OSMSceneCallbacks *)" (?initialise@OSMScene@@QAE_NPBDPAVOSMSceneCallbacks@@@Z)
OgreOSMScene.obj : error LNK2019: unresolved external symbol "public: class TiXmlElement * __thiscall TiXmlNode::FirstChildElement(char const *)const " (?FirstChildElement@TiXmlNode@@QBEPAVTiXmlElement@@PBD@Z) referenced in function "public: bool __thiscall OSMScene::initialise(char const *,class OSMSceneCallbacks *)" (?initialise@OSMScene@@QAE_NPBDPAVOSMSceneCallbacks@@@Z)
OgreOSMScene.obj : error LNK2019: unresolved external symbol "public: __thiscall TiXmlDocument::TiXmlDocument(void)" (??0TiXmlDocument@@QAE@XZ) referenced in function "public: bool __thiscall OSMScene::initialise(char const *,class OSMSceneCallbacks *)" (?initialise@OSMScene@@QAE_NPBDPAVOSMSceneCallbacks@@@Z)
bin\Debug\ofTest.exe : fatal error LNK1120: 5 unresolved externals



Any ideas?

Lioric

04-12-2006 20:15:10

Add the TinyXml cpp files to your project

Cliffius

05-12-2006 19:20:14

I did. But I must have it in the wrong spot. I tried a few other things, but I still can't get the demo to build. I am using the Ogre AppWizard, so after setting up my directories i have this:


  1. +dagon

    1. +dagon
      1. dagon (VC++ Project)[/list:u]
        1. OgreOSMScene[/list:u]
          1. oSceneLibDemo[/list:u]

            1. +include
              1. OgreOSMScne.h[/list:u]
                1. etc...[/list:u]
                  [/list:u]
                  1. +obj[/list:u]
                    1. +TinyXML[/list:u]
                      [/list:u]
                      [/list:u]

                      i can get all the tutorials from the ogrewiki to compile with the same setup. Is my TinyXML folder in the wrong place?