SDL_ttf

Legie
Unregistered
 
Post: #1
hei,
I would like to use the Ttf package to display text. I have a freetype2 folder under sw->lib with a lot of stuff in it and I downloaded SDL-ttf-2.0.7. I am not sure now how to bring it together. Is the freetype2 in the right place? Do I have to tell XCode where to find that folder...if so how do I do that? And where to put the SDL-ttf folder?

Thanks
Huh
Quote this message in a reply
Legie
Unregistered
 
Post: #2
Ok, I was worried to early. I finally convinced XCode that the search paths I set are right, and all headers are found now.
Quote this message in a reply
Legie
Unregistered
 
Post: #3
but what is to do with the following error:

project6:0: Undefined symbols: _TTF_Init

?
Quote this message in a reply
Apprentice
Posts: 8
Joined: 2004.07
Post: #4
Legie Wrote:but what is to do with the following error:

project6:0: Undefined symbols: _TTF_Init

?
I think XCode can see the freetype2 headers, but not the lib. You have to include libfreetype.a to your poject.

Fisk
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #5
SDL_ttf uses FreeType 1, not FreeType 2 (unless it's been updated recently?)
Quote this message in a reply
Legie
Unregistered
 
Post: #6
hey,
thanks for your suggestions, but
"This library is a wrapper around the excellent FreeType 2.0 library" (quote of the SDL_ttf readme file) and I included the path to the freetype2 lib file in my project. So it must be something else.

...any ideas?
Quote this message in a reply
scriabin
Unregistered
 
Post: #7
have you added the header and lib paths at:
project->edit active target ->search paths
and -lfreetype to the linker settings at:
project->edit active target ->linker settings
?
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  SDL_TTF Problems (Can't display text) pb2ya 4 5,381 Sep 18, 2008 06:50 PM
Last Post: Raptor007
  SDL_ttf Jonas 3 2,745 Jun 5, 2008 06:43 AM
Last Post: Jonas
  Added SDL_ttf framework to project - can't include headers matticus 3 4,291 Oct 15, 2004 01:14 PM
Last Post: OneSadCookie