Unresolved externals when adding mygui.

mkultra333

26-12-2010 10:27:46

Have compiled mygui, now following http://www.ogre3d.org/tikiwiki/MyGUI+quickstart

Won't compile, get the following errors.

1>Linking...
1>MyGUIEngineStatic.lib(MyGUI_ResourceTrueTypeFont.obj) : error LNK2001: unresolved external symbol _FT_Done_FreeType
1>MyGUIEngineStatic.lib(MyGUI_ResourceTrueTypeFont.obj) : error LNK2001: unresolved external symbol _FT_Load_Char
1>MyGUIEngineStatic.lib(MyGUI_ResourceTrueTypeFont.obj) : error LNK2001: unresolved external symbol _FT_Set_Char_Size
1>MyGUIEngineStatic.lib(MyGUI_ResourceTrueTypeFont.obj) : error LNK2001: unresolved external symbol _FT_New_Memory_Face
1>MyGUIEngineStatic.lib(MyGUI_ResourceTrueTypeFont.obj) : error LNK2001: unresolved external symbol _FT_Init_FreeType
1>../../BZN\BZN_Engine.exe : fatal error LNK1120: 5 unresolved externals

Altren

26-12-2010 22:14:31

You also need to link freetype lib if you use static version of MyGUI.

mkultra333

27-12-2010 07:06:18

Thanks. I linked to freetype2311.lib from the Ogre dependencies and it compiled. Does it matter that maybe ogre is linking to it already?

It compiled, but I get the following weird warnings.


1>------ Build started: Project: BasicOgreFramework, Configuration: Release Win32 ------
1>Linking...
1>Generating code
1>Finished generating code
1>OgreFramework.obj : warning LNK4049: locally defined symbol ??0Gui@MyGUI@@QAE@XZ (public: __thiscall MyGUI::Gui::Gui(void)) imported
1>OgreFramework.obj : warning LNK4049: locally defined symbol ?initialise@Gui@MyGUI@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z (public: void __thiscall MyGUI::Gui::initialise(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 &)) imported
1>OgreFramework.obj : warning LNK4049: locally defined symbol ??1Gui@MyGUI@@UAE@XZ (public: virtual __thiscall MyGUI::Gui::~Gui(void)) imported
1>OgreFramework.obj : warning LNK4049: locally defined symbol ?_unlinkWidget@Gui@MyGUI@@EAEXPAVWidget@2@@Z (private: virtual void __thiscall MyGUI::Gui::_unlinkWidget(class MyGUI::Widget *)) imported
1>OgreFramework.obj : warning LNK4049: locally defined symbol ??0LogManager@MyGUI@@QAE@XZ (public: __thiscall MyGUI::LogManager::LogManager(void)) imported
1>OgreFramework.obj : warning LNK4049: locally defined symbol ?getInstance@LogManager@MyGUI@@SAAAV12@XZ (public: static class MyGUI::LogManager & __cdecl MyGUI::LogManager::getInstance(void)) imported
1>OgreFramework.obj : warning LNK4049: locally defined symbol ?createDefaultSource@LogManager@MyGUI@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z (public: void __thiscall MyGUI::LogManager::createDefaultSource(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)) imported
1>OgreFramework.obj : warning LNK4049: locally defined symbol ?shutdown@Gui@MyGUI@@QAEXXZ (public: void __thiscall MyGUI::Gui::shutdown(void)) imported
1>OgreFramework.obj : warning LNK4049: locally defined symbol ??1LogManager@MyGUI@@QAE@XZ (public: __thiscall MyGUI::LogManager::~LogManager(void)) imported
1>Embedding manifest...
1>Build log was saved at "file://c:\Ogre\BSP\BZNBSP_101226aMyGuiExp\BasicOgreFramework\obj\BasicOgreFramework\BuildLog.htm"
1>BasicOgreFramework - 0 error(s), 9 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========


Is that normal or a problem?

mkultra333

01-01-2011 20:18:33

I guess no one knows or everyones on holidays.