Xethik
18-09-2013 21:36:48
Hey all, I'm having some trouble getting MyGUI to compile on my Windows 7 64-bit machine with Visual Studios 2010.
I'm running MyGUI 3.20 from SourceForge and I'm running into some... bizarre linker errors. They definitely seem tied to FreeType, but I have the libs linked, so I'm not sure where the problem is.
Here is a clip of the error messages:
the full, lengthy, and unreadable version is here:
So... it definitely appears linked to FreeType due to all the "FT"s. Also, if I delete my FreeType libs from additional dependencies, the error doesn't change. And the __imp_ are kind of weirding me out. As far as I know, that usually means something with DLLs, but I'm using static libs here. Am I supposed to have a DLL, too?
Thanks for the help, lemme know what other info you need.
I'm running MyGUI 3.20 from SourceForge and I'm running into some... bizarre linker errors. They definitely seem tied to FreeType, but I have the libs linked, so I'm not sure where the problem is.
Here is a clip of the error messages:
error LNK1120: 13 unresolved externals D:\Program Files (x86)\MyGUI_3.2.0\build\cmake\bin\Release\MyGUIEngine.dll MyGUIEngine
error LNK2019: unresolved external symbol __imp_FT_Bitmap_Convert referenced in function "private: void __cdecl MyGUI::ResourceTrueTypeFont::renderGlyphs<0,0>... lengthy and most unhelpful linker error stuff follows
the full, lengthy, and unreadable version is here:
Error 29 error LNK1120: 13 unresolved externals D:\Program Files (x86)\MyGUI_3.2.0\build\cmake\bin\Debug\MyGUIEngine_d.dll MyGUIEngine
Error 27 error LNK2019: unresolved external symbol __imp_FT_Bitmap_Convert referenced in function "private: void __cdecl MyGUI::ResourceTrueTypeFont::renderGlyphs<0,0>(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@$0A@$0A@@ResourceTrueTypeFont@MyGUI@@AEAAXAEBV?$map@JV?$map@IPEAUGlyphInfo@MyGUI@@U?$less@I@std@@V?$allocator@U?$pair@$$CBIPEAUGlyphInfo@MyGUI@@@std@@@4@@std@@U?$less@J@2@V?$allocator@U?$pair@$$CBJV?$map@IPEAUGlyphInfo@MyGUI@@U?$less@I@std@@V?$allocator@U?$pair@$$CBIPEAUGlyphInfo@MyGUI@@@std@@@4@@std@@@std@@@2@@std@@AEBQEAUFT_LibraryRec_@@AEBQEAUFT_FaceRec_@@PEAEHH@Z) D:\Program Files (x86)\MyGUI_3.2.0\build\cmake\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj MyGUIEngine
Error 26 error LNK2019: unresolved external symbol __imp_FT_Bitmap_Done referenced in function "private: void __cdecl MyGUI::ResourceTrueTypeFont::renderGlyphs<0,0>(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@$0A@$0A@@ResourceTrueTypeFont@MyGUI@@AEAAXAEBV?$map@JV?$map@IPEAUGlyphInfo@MyGUI@@U?$less@I@std@@V?$allocator@U?$pair@$$CBIPEAUGlyphInfo@MyGUI@@@std@@@4@@std@@U?$less@J@2@V?$allocator@U?$pair@$$CBJV?$map@IPEAUGlyphInfo@MyGUI@@U?$less@I@std@@V?$allocator@U?$pair@$$CBIPEAUGlyphInfo@MyGUI@@@std@@@4@@std@@@std@@@2@@std@@AEBQEAUFT_LibraryRec_@@AEBQEAUFT_FaceRec_@@PEAEHH@Z) D:\Program Files (x86)\MyGUI_3.2.0\build\cmake\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj MyGUIEngine
Error 28 error LNK2019: unresolved external symbol __imp_FT_Bitmap_New referenced in function "private: void __cdecl MyGUI::ResourceTrueTypeFont::renderGlyphs<0,0>(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@$0A@$0A@@ResourceTrueTypeFont@MyGUI@@AEAAXAEBV?$map@JV?$map@IPEAUGlyphInfo@MyGUI@@U?$less@I@std@@V?$allocator@U?$pair@$$CBIPEAUGlyphInfo@MyGUI@@@std@@@4@@std@@U?$less@J@2@V?$allocator@U?$pair@$$CBJV?$map@IPEAUGlyphInfo@MyGUI@@U?$less@I@std@@V?$allocator@U?$pair@$$CBIPEAUGlyphInfo@MyGUI@@@std@@@4@@std@@@std@@@2@@std@@AEBQEAUFT_LibraryRec_@@AEBQEAUFT_FaceRec_@@PEAEHH@Z) D:\Program Files (x86)\MyGUI_3.2.0\build\cmake\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj MyGUIEngine
Error 17 error LNK2019: unresolved external symbol __imp_FT_Done_Face referenced in function "private: struct FT_FaceRec_ * __cdecl MyGUI::ResourceTrueTypeFont::loadFace(struct FT_LibraryRec_ * const &,unsigned char * &)" (?loadFace@ResourceTrueTypeFont@MyGUI@@AEAAPEAUFT_FaceRec_@@AEBQEAUFT_LibraryRec_@@AEAPEAE@Z) D:\Program Files (x86)\MyGUI_3.2.0\build\cmake\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj MyGUIEngine
Error 22 error LNK2019: unresolved external symbol __imp_FT_Done_FreeType referenced in function "private: void __cdecl MyGUI::ResourceTrueTypeFont::initialiseFreeType<0,0>(void)" (??$initialiseFreeType@$0A@$0A@@ResourceTrueTypeFont@MyGUI@@AEAAXXZ) D:\Program Files (x86)\MyGUI_3.2.0\build\cmake\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj MyGUIEngine
Error 23 error LNK2019: unresolved external symbol __imp_FT_Get_Char_Index referenced in function "private: void __cdecl MyGUI::ResourceTrueTypeFont::initialiseFreeType<0,0>(void)" (??$initialiseFreeType@$0A@$0A@@ResourceTrueTypeFont@MyGUI@@AEAAXXZ) D:\Program Files (x86)\MyGUI_3.2.0\build\cmake\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj MyGUIEngine
Error 24 error LNK2019: unresolved external symbol __imp_FT_Get_Sfnt_Table referenced in function "private: void __cdecl MyGUI::ResourceTrueTypeFont::initialiseFreeType<0,0>(void)" (??$initialiseFreeType@$0A@$0A@@ResourceTrueTypeFont@MyGUI@@AEAAXXZ) D:\Program Files (x86)\MyGUI_3.2.0\build\cmake\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj MyGUIEngine
Error 18 error LNK2019: unresolved external symbol __imp_FT_Get_WinFNT_Header referenced in function "private: struct FT_FaceRec_ * __cdecl MyGUI::ResourceTrueTypeFont::loadFace(struct FT_LibraryRec_ * const &,unsigned char * &)" (?loadFace@ResourceTrueTypeFont@MyGUI@@AEAAPEAUFT_FaceRec_@@AEBQEAUFT_LibraryRec_@@AEAPEAE@Z) D:\Program Files (x86)\MyGUI_3.2.0\build\cmake\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj MyGUIEngine
Error 25 error LNK2019: unresolved external symbol __imp_FT_Init_FreeType referenced in function "private: void __cdecl MyGUI::ResourceTrueTypeFont::initialiseFreeType<0,0>(void)" (??$initialiseFreeType@$0A@$0A@@ResourceTrueTypeFont@MyGUI@@AEAAXXZ) D:\Program Files (x86)\MyGUI_3.2.0\build\cmake\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj MyGUIEngine
Error 21 error LNK2019: unresolved external symbol __imp_FT_Load_Glyph referenced in function "private: int __cdecl MyGUI::ResourceTrueTypeFont::createFaceGlyph(unsigned int,unsigned int,int,struct FT_FaceRec_ * const &,class std::map<long,class std::map<unsigned int,struct MyGUI::GlyphInfo *,struct std::less<unsigned int>,class std::allocator<struct std::pair<unsigned intconst ,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 *> > > > > > &)" (?createFaceGlyph@ResourceTrueTypeFont@MyGUI@@AEAAHIIHAEBQEAUFT_FaceRec_@@AEAV?$map@JV?$map@IPEAUGlyphInfo@MyGUI@@U?$less@I@std@@V?$allocator@U?$pair@$$CBIPEAUGlyphInfo@MyGUI@@@std@@@4@@std@@U?$less@J@2@V?$allocator@U?$pair@$$CBJV?$map@IPEAUGlyphInfo@MyGUI@@U?$less@I@std@@V?$allocator@U?$pair@$$CBIPEAUGlyphInfo@MyGUI@@@std@@@4@@std@@@std@@@2@@std@@@Z) D:\Program Files (x86)\MyGUI_3.2.0\build\cmake\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj MyGUIEngine
Error 20 error LNK2019: unresolved external symbol __imp_FT_New_Memory_Face referenced in function "private: struct FT_FaceRec_ * __cdecl MyGUI::ResourceTrueTypeFont::loadFace(struct FT_LibraryRec_ * const &,unsigned char * &)" (?loadFace@ResourceTrueTypeFont@MyGUI@@AEAAPEAUFT_FaceRec_@@AEBQEAUFT_LibraryRec_@@AEAPEAE@Z) D:\Program Files (x86)\MyGUI_3.2.0\build\cmake\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj MyGUIEngine
Error 16 error LNK2019: unresolved external symbol __imp_FT_Select_Size referenced in function "private: struct FT_FaceRec_ * __cdecl MyGUI::ResourceTrueTypeFont::loadFace(struct FT_LibraryRec_ * const &,unsigned char * &)" (?loadFace@ResourceTrueTypeFont@MyGUI@@AEAAPEAUFT_FaceRec_@@AEBQEAUFT_LibraryRec_@@AEAPEAE@Z) D:\Program Files (x86)\MyGUI_3.2.0\build\cmake\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj MyGUIEngine
Error 19 error LNK2019: unresolved external symbol __imp_FT_Set_Char_Size referenced in function "private: struct FT_FaceRec_ * __cdecl MyGUI::ResourceTrueTypeFont::loadFace(struct FT_LibraryRec_ * const &,unsigned char * &)" (?loadFace@ResourceTrueTypeFont@MyGUI@@AEAAPEAUFT_FaceRec_@@AEBQEAUFT_LibraryRec_@@AEAPEAE@Z) D:\Program Files (x86)\MyGUI_3.2.0\build\cmake\MyGUIEngine\MyGUI_ResourceTrueTypeFont.obj MyGUIEngine
So... it definitely appears linked to FreeType due to all the "FT"s. Also, if I delete my FreeType libs from additional dependencies, the error doesn't change. And the __imp_ are kind of weirding me out. As far as I know, that usually means something with DLLs, but I'm using static libs here. Am I supposed to have a DLL, too?
Thanks for the help, lemme know what other info you need.