|
本帖最后由 tiantangtl 于 2012-7-30 17:19 编辑
在freetype库编译过程中,出现以下错误,原因是什么呢?求解VS2008+OSG- Linking...
- FreeTypeFont.obj : error LNK2019: unresolved external symbol __imp__FT_Set_Pixel_Sizes referenced in function "protected: void __thiscall FreeTypeFont::init(void)" (?init@FreeTypeFont@@IAEXXZ)
- FreeTypeFont.obj : error LNK2019: unresolved external symbol __imp__FT_Load_Char referenced in function "public: virtual class osgText::Glyph * __thiscall FreeTypeFont::getGlyph(struct std::pair<unsigned int,unsigned int> const &,unsigned int)" (?getGlyph@FreeTypeFont@@UAEPAVGlyph@osgText@@ABU?$pair@II@std@@I@Z)
- FreeTypeFont.obj : error LNK2019: unresolved external symbol __imp__FT_Get_Kerning referenced in function "public: virtual class osg::Vec2f __thiscall FreeTypeFont::getKerning(unsigned int,unsigned int,enum osgText::KerningType)" (?getKerning@FreeTypeFont@@UAE?AVVec2f@osg@@IIW4KerningType@osgText@@@Z)
- FreeTypeFont.obj : error LNK2019: unresolved external symbol __imp__FT_Get_Char_Index referenced in function "public: virtual class osg::Vec2f __thiscall FreeTypeFont::getKerning(unsigned int,unsigned int,enum osgText::KerningType)" (?getKerning@FreeTypeFont@@UAE?AVVec2f@osg@@IIW4KerningType@osgText@@@Z)
- FreeTypeFont.obj : error LNK2019: unresolved external symbol __imp__FT_Done_Face referenced in function "public: virtual __thiscall FreeTypeFont::~FreeTypeFont(void)" (??1FreeTypeFont@@UAE@XZ)
- FreeTypeFont.obj : error LNK2019: unresolved external symbol __imp__FT_Outline_Get_BBox referenced in function "public: virtual class osgText::Glyph3D * __thiscall FreeTypeFont::getGlyph3D(unsigned int)" (?getGlyph3D@FreeTypeFont@@UAEPAVGlyph3D@osgText@@I@Z)
- FreeTypeFont.obj : error LNK2019: unresolved external symbol __imp__FT_Outline_Decompose referenced in function "public: virtual class osgText::Glyph3D * __thiscall FreeTypeFont::getGlyph3D(unsigned int)" (?getGlyph3D@FreeTypeFont@@UAEPAVGlyph3D@osgText@@I@Z)
- FreeTypeLibrary.obj : error LNK2019: unresolved external symbol __imp__FT_Set_Charmap referenced in function "protected: void __thiscall FreeTypeLibrary::verifyCharacterMap(struct FT_FaceRec_ *)" (?verifyCharacterMap@FreeTypeLibrary@@IAEXPAUFT_FaceRec_@@@Z)
- FreeTypeLibrary.obj : error LNK2019: unresolved external symbol __imp__FT_New_Face referenced in function "protected: bool __thiscall FreeTypeLibrary::getFace(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,struct FT_FaceRec_ * &)" (?getFace@FreeTypeLibrary@@IAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAAPAUFT_FaceRec_@@@Z)
- FreeTypeLibrary.obj : error LNK2019: unresolved external symbol __imp__FT_Open_Face referenced in function "protected: unsigned char * __thiscall FreeTypeLibrary::getFace(class std::basic_istream<char,struct std::char_traits<char> > &,unsigned int,struct FT_FaceRec_ * &)" (?getFace@FreeTypeLibrary@@IAEPAEAAV?$basic_istream@DU?$char_traits@D@std@@@std@@IAAPAUFT_FaceRec_@@@Z)
- FreeTypeLibrary.obj : error LNK2019: unresolved external symbol __imp__FT_Done_FreeType referenced in function "public: virtual __thiscall FreeTypeLibrary::~FreeTypeLibrary(void)" (??1FreeTypeLibrary@@UAE@XZ)
- FreeTypeLibrary.obj : error LNK2019: unresolved external symbol __imp__FT_Init_FreeType referenced in function "protected: __thiscall FreeTypeLibrary::FreeTypeLibrary(void)" (??0FreeTypeLibrary@@IAE@XZ)
复制代码 CMake项中填写如下:
上面目录中有如下编译好的文件:
请高手指导一下,谢谢 |
|