Sign in to follow this  

Font Libraries

This topic is 4685 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've spent the past 2 hours trying to get this ftgl working in my project. I compiled the library, so I have ftgl_static_MT.lib. I included this into my project. I included all the headers,
#include "gl\\ftgl\\FTGLOutlineFont.h"
#include "gl\\ftgl\\FTGLPolygonFont.h"
#include "gl\\ftgl\\FTGLBitmapFont.h"
#include "gl\\ftgl\\FTGLTextureFont.h"
#include "gl\\ftgl\\FTGLPixmapFont.h"
I go to compile the example program,
FTGLPixmapFont font( "Fonts:Arial" );
font.FaceSize( 72 );
font.Render( "Hello World!" );
And I get a ton of link errors, and I have no clue what is the problem.
Linking...
LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
ftgl_static_MT.lib(FTPixmapGlyph.obj) : error LNK2019: unresolved external symbol _FT_Render_Glyph referenced in function "public: __thiscall FTPixmapGlyph::FTPixmapGlyph(struct FT_GlyphSlotRec_ *)" (??0FTPixmapGlyph@@QAE@PAUFT_GlyphSlotRec_@@@Z)
ftgl_static_MT.lib(FTFace.obj) : error LNK2019: unresolved external symbol _FT_Done_Face referenced in function "public: virtual __thiscall FTFace::~FTFace(void)" (??1FTFace@@UAE@XZ)
ftgl_static_MT.lib(FTFace.obj) : error LNK2019: unresolved external symbol _FT_Attach_File referenced in function "public: bool __thiscall FTFace::Attach(char const *)" (?Attach@FTFace@@QAE_NPBD@Z)
ftgl_static_MT.lib(FTFace.obj) : error LNK2019: unresolved external symbol _FT_Attach_Stream referenced in function "public: bool __thiscall FTFace::Attach(unsigned char const *,unsigned int)" (?Attach@FTFace@@QAE_NPBEI@Z)
ftgl_static_MT.lib(FTFace.obj) : error LNK2019: unresolved external symbol _FT_Load_Glyph referenced in function "public: struct FT_GlyphSlotRec_ * __thiscall FTFace::Glyph(unsigned int,int)" (?Glyph@FTFace@@QAEPAUFT_GlyphSlotRec_@@IH@Z)
ftgl_static_MT.lib(FTFace.obj) : error LNK2019: unresolved external symbol _FT_New_Face referenced in function "public: __thiscall FTFace::FTFace(char const *)" (??0FTFace@@QAE@PBD@Z)
ftgl_static_MT.lib(FTFace.obj) : error LNK2019: unresolved external symbol _FT_New_Memory_Face referenced in function "public: __thiscall FTFace::FTFace(unsigned char const *,unsigned int)" (??0FTFace@@QAE@PBEI@Z)
ftgl_static_MT.lib(FTFace.obj) : error LNK2019: unresolved external symbol _FT_Get_Kerning referenced in function "public: class FTPoint __thiscall FTFace::KernAdvance(unsigned int,unsigned int)" (?KernAdvance@FTFace@@QAE?AVFTPoint@@II@Z)
ftgl_static_MT.lib(FTSize.obj) : error LNK2019: unresolved external symbol _FT_Set_Char_Size referenced in function "public: bool __thiscall FTSize::CharSize(struct FT_FaceRec_ * *,unsigned int,unsigned int,unsigned int)" (?CharSize@FTSize@@QAE_NPAPAUFT_FaceRec_@@III@Z)
ftgl_static_MT.lib(FTGlyph.obj) : error LNK2019: unresolved external symbol _FT_Outline_Get_CBox referenced in function "public: __thiscall FTBBox::FTBBox(struct FT_GlyphSlotRec_ *)" (??0FTBBox@@QAE@PAUFT_GlyphSlotRec_@@@Z)
ftgl_static_MT.lib(FTLibrary.obj) : error LNK2019: unresolved external symbol _FT_Done_FreeType referenced in function "public: __thiscall FTLibrary::~FTLibrary(void)" (??1FTLibrary@@QAE@XZ)
ftgl_static_MT.lib(FTLibrary.obj) : error LNK2019: unresolved external symbol _FT_Init_FreeType referenced in function "private: bool __thiscall FTLibrary::Initialise(void)" (?Initialise@FTLibrary@@AAE_NXZ)
ftgl_static_MT.lib(FTCharmap.obj) : error LNK2019: unresolved external symbol _FT_Get_Char_Index referenced in function "public: unsigned int __thiscall FTCharmap::FontIndex(unsigned int)" (?FontIndex@FTCharmap@@QAEII@Z)
ftgl_static_MT.lib(FTCharmap.obj) : error LNK2019: unresolved external symbol _FT_Select_Charmap referenced in function "public: bool __thiscall FTCharmap::CharMap(enum FT_Encoding_)" (?CharMap@FTCharmap@@QAE_NW4FT_Encoding_@@@Z)
ftgl_static_MT.lib(FTCharmap.obj) : error LNK2019: unresolved external symbol _FT_Set_Charmap referenced in function "public: __thiscall FTCharmap::FTCharmap(class FTFace *)" (??0FTCharmap@@QAE@PAVFTFace@@@Z)
Compiled\Debug/Engine.exe : fatal error LNK1120: 15 unresolved externals

Either the documentation for this library stinks, or my brain isn't working (probably the latter). Is there some other font library you all use in your applications, that is easier to set up and has better documentation? I've been using some basic custom texture manager (like in NeHe's tutorial), but I need a lot more functionality now, and I don't really feel like spending my time writing all the code.

Share this post


Link to post
Share on other sites
I don't know much about using libraries besides OpenGL itself. I usually code or recode stuff myself. For text, I just windows fonts like the NEHE tutorials either 2d or 3d fonts depending on the application. Bitmap fonts(using a texture) are another way, but I like my way better.

Share this post


Link to post
Share on other sites

This topic is 4685 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this