Problem with compiling MyGUI 3.0 with Ogre 1.7

SilentDRagon

26-03-2010 21:06:13

Hi all,

i tried to compile:
http://www.ogre3d.org/wiki/index.php?ti ... ldid=20713

in my Ogre code, but i get this error:

1>MyGUI.OgrePlatform_d.lib(MyGUI_OgreDataManager.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: class Ogre::SharedPtr<class std::vector<struct Ogre::FileInfo,class std::allocator<struct Ogre::FileInfo> > > __thiscall Ogre::ResourceGroupManager::findResourceFileInfo(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (__imp_?findResourceFileInfo@ResourceGroupManager@Ogre@@QAE?AV?$SharedPtr@V?$vector@UFileInfo@Ogre@@V?$allocator@UFileInfo@Ogre@@@std@@@std@@@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0_N@Z)" in Funktion ""private: class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > const & __thiscall MyGUI::OgreDataManager::getDataListNames(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (?getDataListNames@OgreDataManager@MyGUI@@AAEABV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@_N@Z)".
1>MyGUI.OgrePlatform_d.lib(MyGUI_OgreDataManager.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: static void __cdecl Ogre::NedAllocPolicy::deallocateBytes(void *)" (__imp_?deallocateBytes@NedAllocPolicy@Ogre@@SAXPAX@Z)" in Funktion ""protected: virtual void __thiscall Ogre::SharedPtr<class Ogre::DataStream>::destroy(void)" (?destroy@?$SharedPtr@VDataStream@Ogre@@@Ogre@@MAEXXZ)".
1>MyGUI.OgrePlatform_d.lib(MyGUI_OgreRenderManager.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: static void __cdecl Ogre::NedAllocPolicy::deallocateBytes(void *)" (__imp_?deallocateBytes@NedAllocPolicy@Ogre@@SAXPAX@Z)".
1>MyGUI.OgrePlatform_d.lib(MyGUI_OgreDataStream.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: static void __cdecl Ogre::NedAllocPolicy::deallocateBytes(void *)" (__imp_?deallocateBytes@NedAllocPolicy@Ogre@@SAXPAX@Z)".
1>MyGUI.OgrePlatform_d.lib(MyGUI_OgreTexture.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: static void __cdecl Ogre::NedAllocPolicy::deallocateBytes(void *)" (__imp_?deallocateBytes@NedAllocPolicy@Ogre@@SAXPAX@Z)".
1>MyGUI.OgrePlatform_d.lib(MyGUI_OgreVertexBuffer.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall Ogre::VertexData::VertexData(void)" (__imp_??0VertexData@Ogre@@QAE@XZ)" in Funktion ""private: void __thiscall MyGUI::OgreVertexBuffer::createVertexBuffer(void)" (?createVertexBuffer@OgreVertexBuffer@MyGUI@@AAEXXZ)".
1>MyGUI.OgrePlatform_d.lib(MyGUI_OgreTexture.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: class Ogre::TexturePtr __thiscall Ogre::TextureManager::createManual(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,enum Ogre::TextureType,unsigned int,unsigned int,int,enum Ogre::PixelFormat,int,class Ogre::ManualResourceLoader *,bool,unsigned int)" (__imp_?createManual@TextureManager@Ogre@@QAE?AVTexturePtr@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0W4TextureType@2@IIHW4PixelFormat@2@HPAVManualResourceLoader@2@_NI@Z)" in Funktion ""public: virtual void __thiscall MyGUI::OgreTexture::createManual(int,int,struct MyGUI::TextureUsage,struct MyGUI::PixelFormat)" (?createManual@OgreTexture@MyGUI@@UAEXHHUTextureUsage@2@UPixelFormat@2@@Z)".
1>C:\Programmieren\C++\Proggs\OgreTest\Debug\OgreTest.exe : fatal error LNK1120: 4 nicht aufgelöste externe Verweise.


I use VC++ 2008 EE, MyGUI3.0(created with CMake) and Ogre 1.7...

I hope you can help me,

SD

Altren

26-03-2010 21:33:35

Why you used older wiki page that was written for MyGUI 2.2? You should use latest one for 3.0.
Looks like you haven't linked MyGUI.OgrePlatform.lib to your application.

SilentDRagon

27-03-2010 10:26:57

I thought I have linked MyGUI.OgrePlatform_d.lib oO and where do I find the new Wiki page ? ^^

Altren

27-03-2010 14:27:18

Simply open MyGUI_Quickstart wiki page. Looks like someone gave you that wrong link that is used for 2.2 users.
You used http://www.ogre3d.org/wiki/index.php?ti ... ldid=20713 and you need http://www.ogre3d.org/wiki/index.php?ti ... quickstart (without "&oldid=20713" at the end).

SilentDRagon

27-03-2010 17:00:54

I used this page, but still get the same error :/ in which folder can i find the lib files like: MyGUI.OgrePlatform(_d).lib ? On the page u posted are only the paths to the Include dictionaries, but not where i can find the lib files :/ (actually i use the MyGUIEngine_d.lib created with CMake...)