I've been learning SDL recently by using
Lazy Foo's tutorials, and I can't get get SDL_ttf to work. I'm using the Sept 10 build of Code Blocks for openSUSE 10.2.
I went to the SDL website, and downloaded the development rpm file, and when I did that it got installed with openSUSEs Install Software program, and it said it installed successfully, so I thought everything was fine. Then I tried to use it in my current program I'm making, and it doesn't work. In the Build Options then linker settings, I added 'SDL_ttf' ( no quotes), and added #include <SDL_ttf.h> to the top and it doesn't work. When I installed SDL_image, all I did was install the rpm and add 'SDL_image' to the linker options, and #include <SDL_image.h>, and that works fine. So how exactly do I get it to work? I even copy and pasted Lazy Foo's whole program and tried to compile it, but it didn't work either.
When I try to compile it, I get this error:
:: === Pong, Debug ===
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `TTF_Quit':
(.text+0x269):: undefined reference to `FT_Done_FreeType'
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `Find_Glyph':
(.text+0x3af):: undefined reference to `FT_Load_Glyph'
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `Find_Glyph':
(.text+0x4ed):: undefined reference to `FT_Render_Glyph'
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `Find_Glyph':
(.text+0x727):: undefined reference to `FT_Get_Char_Index'
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `Find_Glyph':
(.text+0x745):: undefined reference to `FT_Render_Glyph'
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `Find_Glyph':
(.text+0x7a1):: undefined reference to `FT_Outline_Transform'
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `TTF_SizeUNICODE':
(.text+0x1252):: undefined reference to `FT_Get_Kerning'
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `TTF_RenderUNICODE_Blended':
(.text+0x15f5):: undefined reference to `FT_Get_Kerning'
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `TTF_RenderUNICODE_Shaded':
(.text+0x19d1):: undefined reference to `FT_Get_Kerning'
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `TTF_RenderUNICODE_Solid':
(.text+0x2077):: undefined reference to `FT_Get_Kerning'
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `TTF_CloseFont':
(.text+0x21bf):: undefined reference to `FT_Done_Face'
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `TTF_OpenFontIndexRW':
(.text+0x2349):: undefined reference to `FT_Open_Face'
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `TTF_OpenFontIndexRW':
(.text+0x2399):: undefined reference to `FT_Set_Pixel_Sizes'
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `TTF_OpenFontIndexRW':
(.text+0x2457):: undefined reference to `FT_Set_Char_Size'
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `TTF_OpenFontIndexRW':
(.text+0x2475):: undefined reference to `FT_MulFix'
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `TTF_OpenFontIndexRW':
(.text+0x2491):: undefined reference to `FT_MulFix'
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `TTF_OpenFontIndexRW':
(.text+0x24b8):: undefined reference to `FT_MulFix'
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `TTF_OpenFontIndexRW':
(.text+0x24d4):: undefined reference to `FT_MulFix'
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `TTF_OpenFontIndexRW':
(.text+0x24ed):: undefined reference to `FT_MulFix'
/usr/lib/libSDL_ttf.a(SDL_ttf.o):: In function `TTF_Init':
(.text+0x2698):: undefined reference to `FT_Init_FreeType'
:: === Build finished: 20 errors, 0 warnings ===