MyGUI failed build FreeType Linker Errors

revots

19-03-2014 23:53:29

While building MyGUI in Visual Studio 2013 I receive a linker errors relating to Freetype. In CMake I configured everything, passing all the appropriate paths to CMake, including the paths to the compiled copy of Freetype that Ogre is using. I added the path of the Freetype lib files to CMAKE_EXE_LINKER_FLAGS as suggested by another post to no avail. Could there be any other reason the linker is failing to find these files?

I also tried building with Freetype turned off, though this led to its own set of seemingly worse problems.

The build is not static.
MyGUI ver: 3.2.0 .
Ogre ver: 1.8.1
Compiler: MSVC 12 CL

Error 1 error LNK2019: unresolved external symbol _FT_Init_FreeType referenced in function "private: void __thiscall MyGUI::ResourceTrueTypeFont::initialiseFreeType<1,1>(void)" (??$initialiseFreeType@$00$00@ResourceTrueTypeFont@MyGUI@@AAEXXZ) C:\cpp_libs\MyGUI_3.2.0\build\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj
Error 2 error LNK2019: unresolved external symbol _FT_Done_FreeType referenced in function "private: void __thiscall MyGUI::ResourceTrueTypeFont::initialiseFreeType<1,1>(void)" (??$initialiseFreeType@$00$00@ResourceTrueTypeFont@MyGUI@@AAEXXZ) C:\cpp_libs\MyGUI_3.2.0\build\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj
Error 3 error LNK2019: unresolved external symbol _FT_New_Memory_Face referenced in function "private: struct FT_FaceRec_ * __thiscall MyGUI::ResourceTrueTypeFont::loadFace(struct FT_LibraryRec_ * const &,unsigned char * &)" (?loadFace@ResourceTrueTypeFont@MyGUI@@AAEPAUFT_FaceRec_@@ABQAUFT_LibraryRec_@@AAPAE@Z) C:\cpp_libs\MyGUI_3.2.0\build\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj
Error 4 error LNK2019: unresolved external symbol _FT_Done_Face referenced in function "private: void __thiscall MyGUI::ResourceTrueTypeFont::initialiseFreeType<1,1>(void)" (??$initialiseFreeType@$00$00@ResourceTrueTypeFont@MyGUI@@AAEXXZ) C:\cpp_libs\MyGUI_3.2.0\build\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj
Error 5 error LNK2019: unresolved external symbol _FT_Select_Size referenced in function "private: struct FT_FaceRec_ * __thiscall MyGUI::ResourceTrueTypeFont::loadFace(struct FT_LibraryRec_ * const &,unsigned char * &)" (?loadFace@ResourceTrueTypeFont@MyGUI@@AAEPAUFT_FaceRec_@@ABQAUFT_LibraryRec_@@AAPAE@Z) C:\cpp_libs\MyGUI_3.2.0\build\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj
Error 6 error LNK2019: unresolved external symbol _FT_Set_Char_Size referenced in function "private: struct FT_FaceRec_ * __thiscall MyGUI::ResourceTrueTypeFont::loadFace(struct FT_LibraryRec_ * const &,unsigned char * &)" (?loadFace@ResourceTrueTypeFont@MyGUI@@AAEPAUFT_FaceRec_@@ABQAUFT_LibraryRec_@@AAPAE@Z) C:\cpp_libs\MyGUI_3.2.0\build\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj
Error 7 error LNK2019: unresolved external symbol _FT_Load_Glyph referenced in function "private: void __thiscall MyGUI::ResourceTrueTypeFont::initialiseFreeType<1,1>(void)" (??$initialiseFreeType@$00$00@ResourceTrueTypeFont@MyGUI@@AAEXXZ) C:\cpp_libs\MyGUI_3.2.0\build\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj
Error 8 error LNK2019: unresolved external symbol _FT_Get_Char_Index referenced in function "private: void __thiscall MyGUI::ResourceTrueTypeFont::initialiseFreeType<1,1>(void)" (??$initialiseFreeType@$00$00@ResourceTrueTypeFont@MyGUI@@AAEXXZ) C:\cpp_libs\MyGUI_3.2.0\build\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj
Error 9 error LNK2019: unresolved external symbol _FT_Get_Sfnt_Table referenced in function "private: void __thiscall MyGUI::ResourceTrueTypeFont::initialiseFreeType<1,1>(void)" (??$initialiseFreeType@$00$00@ResourceTrueTypeFont@MyGUI@@AAEXXZ) C:\cpp_libs\MyGUI_3.2.0\build\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj
Error 10 error LNK2019: unresolved external symbol _FT_Bitmap_New referenced in function "private: void __thiscall MyGUI::ResourceTrueTypeFont::renderGlyphs<1,1>(class std::map<long,class std::map<unsigned int,struct MyGUI::GlyphInfo *,struct std::less<unsigned int>,class std::allocator<struct std::pair<unsigned int const ,struct MyGUI::GlyphInfo *> > >,struct std::less<long>,class std::allocator<struct std::pair<long const ,class std::map<unsigned int,struct MyGUI::GlyphInfo *,struct std::less<unsigned int>,class std::allocator<struct std::pair<unsigned int const ,struct MyGUI::GlyphInfo *> > > > > > const &,struct FT_LibraryRec_ * const &,struct FT_FaceRec_ * const &,unsigned char *,int,int)" (??$renderGlyphs@$00$00@ResourceTrueTypeFont@MyGUI@@AAEXABV?$map@JV?$map@IPAUGlyphInfo@MyGUI@@U?$less@I@std@@V?$allocator@U?$pair@$$CBIPAUGlyphInfo@MyGUI@@@std@@@4@@std@@U?$less@J@2@V?$allocator@U?$pair@$$CBJV?$map@IPAUGlyphInfo@MyGUI@@U?$less@I@std@@V?$allocator@U?$pair@$$CBIPAUGlyphInfo@MyGUI@@@std@@@4@@std@@@std@@@2@@std@@ABQAUFT_LibraryRec_@@ABQAUFT_FaceRec_@@PAEHH@Z) C:\cpp_libs\MyGUI_3.2.0\build\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj
Error 11 error LNK2019: unresolved external symbol _FT_Bitmap_Convert referenced in function "private: void __thiscall MyGUI::ResourceTrueTypeFont::renderGlyphs<1,1>(class std::map<long,class std::map<unsigned int,struct MyGUI::GlyphInfo *,struct std::less<unsigned int>,class std::allocator<struct std::pair<unsigned int const ,struct MyGUI::GlyphInfo *> > >,struct std::less<long>,class std::allocator<struct std::pair<long const ,class std::map<unsigned int,struct MyGUI::GlyphInfo *,struct std::less<unsigned int>,class std::allocator<struct std::pair<unsigned int const ,struct MyGUI::GlyphInfo *> > > > > > const &,struct FT_LibraryRec_ * const &,struct FT_FaceRec_ * const &,unsigned char *,int,int)" (??$renderGlyphs@$00$00@ResourceTrueTypeFont@MyGUI@@AAEXABV?$map@JV?$map@IPAUGlyphInfo@MyGUI@@U?$less@I@std@@V?$allocator@U?$pair@$$CBIPAUGlyphInfo@MyGUI@@@std@@@4@@std@@U?$less@J@2@V?$allocator@U?$pair@$$CBJV?$map@IPAUGlyphInfo@MyGUI@@U?$less@I@std@@V?$allocator@U?$pair@$$CBIPAUGlyphInfo@MyGUI@@@std@@@4@@std@@@std@@@2@@std@@ABQAUFT_LibraryRec_@@ABQAUFT_FaceRec_@@PAEHH@Z) C:\cpp_libs\MyGUI_3.2.0\build\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj
Error 12 error LNK2019: unresolved external symbol _FT_Bitmap_Done referenced in function "private: void __thiscall MyGUI::ResourceTrueTypeFont::renderGlyphs<1,1>(class std::map<long,class std::map<unsigned int,struct MyGUI::GlyphInfo *,struct std::less<unsigned int>,class std::allocator<struct std::pair<unsigned int const ,struct MyGUI::GlyphInfo *> > >,struct std::less<long>,class std::allocator<struct std::pair<long const ,class std::map<unsigned int,struct MyGUI::GlyphInfo *,struct std::less<unsigned int>,class std::allocator<struct std::pair<unsigned int const ,struct MyGUI::GlyphInfo *> > > > > > const &,struct FT_LibraryRec_ * const &,struct FT_FaceRec_ * const &,unsigned char *,int,int)" (??$renderGlyphs@$00$00@ResourceTrueTypeFont@MyGUI@@AAEXABV?$map@JV?$map@IPAUGlyphInfo@MyGUI@@U?$less@I@std@@V?$allocator@U?$pair@$$CBIPAUGlyphInfo@MyGUI@@@std@@@4@@std@@U?$less@J@2@V?$allocator@U?$pair@$$CBJV?$map@IPAUGlyphInfo@MyGUI@@U?$less@I@std@@V?$allocator@U?$pair@$$CBIPAUGlyphInfo@MyGUI@@@std@@@4@@std@@@std@@@2@@std@@ABQAUFT_LibraryRec_@@ABQAUFT_FaceRec_@@PAEHH@Z) C:\cpp_libs\MyGUI_3.2.0\build\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj
Error 13 error LNK2019: unresolved external symbol _FT_Get_WinFNT_Header referenced in function "private: struct FT_FaceRec_ * __thiscall MyGUI::ResourceTrueTypeFont::loadFace(struct FT_LibraryRec_ * const &,unsigned char * &)" (?loadFace@ResourceTrueTypeFont@MyGUI@@AAEPAUFT_FaceRec_@@ABQAUFT_LibraryRec_@@AAPAE@Z) C:\cpp_libs\MyGUI_3.2.0\build\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj
Error 14 error LNK1120: 13 unresolved externals C:\cpp_libs\MyGUI_3.2.0\build\bin\Release\MyGUIEngine.dll