It is currently Wed Sep 08, 2010 6:09 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: SDL_TTF on ubuntu
PostPosted: Fri Jul 02, 2010 11:42 pm 
Joined: Thu Mar 11, 2010 8:58 am
Posts: 9

So, I'm trying to make SDL_TTF work on Ubuntu. I think I got all of the right SDL_TTF and freetype packages, but I'm not exactly sure how I should go about linking against freetype. It has lots of different headers that point every which way. Thanks for any help in advance.


Offline
 Profile  
 Post subject: Re: SDL_TTF on ubuntu
PostPosted: Sun Jul 04, 2010 12:08 am 
Joined: Thu Jun 18, 2009 11:47 pm
Posts: 33

Hello EMR. I'm pretty sure Ubuntu's package manager already have sdl_ttf ready for install. You might need its development version, which would be called sdl_ttf-dev or something like that. I couldn't understand very well what you're trying to do, but you need not to compile it from source.

Then you must link your project against SDL_ttf (-lSDL_ttf)

Good luck.


Offline
 Profile  
 Post subject: Re: SDL_TTF on ubuntu
PostPosted: Tue Jul 06, 2010 5:20 pm 
Joined: Thu Mar 11, 2010 8:58 am
Posts: 9

I successfully linked (statically) SDL_TTF, but apparently SDL_TTF won't work on Linux unless one also links to it's font engine, freetype. Except freetype is kind of opaque in explaining what headers need to be linked to to use it for SDL_TTF. I'm not compiling it from source (at least I don't think I am), just trying to link statically.


Offline
 Profile  
 Post subject: Re: SDL_TTF on ubuntu
PostPosted: Wed Jul 07, 2010 1:44 pm 
Joined: Thu Jun 18, 2009 11:47 pm
Posts: 33

EMR, I had no trouble linking against SDL_ttf on linux, i hadn't to link against freetype also. Which command you're using to compile and link your program?

This page gives more info on compiling and linking against SDL_ttf:
http://jcatki.no-ip.org:8080/SDL_ttf/SD ... .html#SEC4

Post any doubts here i'll try to help you.


Offline
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


 Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: