OS4 DepotLogo by Alessandro Bacchia 
(anonymous IP: 18.116.52.43,2258) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (602)
   o Document (24)
   o Driver (97)
   o Emulation (149)
   o Game (1011)
   o Graphics (500)
   o Library (118)
   o Network (234)
   o Office (66)
   o Utility (932)
   o Video (69)

Total files: 4399

Full index file
Recent index file

 Links

  Amigans.net
  OpenAmiga
  Aminet
  IntuitionBase


Support the site


 Readme for:  Development » Library » Graphics » sdl_ttf.so.lha

Sdl_ttf

Description: SDL_ttf shared object for TrueType font in SDL
Download: sdl_ttf.so.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 20kb
Version: 2.0.9
Date: 11 Jul 2009
Author: Sam Lantinga
Submitter: Mathias 'Corto' Parnaudeau
Homepage: http://www.libsdl.org/projects/SDL_ttf/
Requirements: libSDL-1.2.so, libfreetype.so
Category: development/library/graphics
Replaces: development/library/graphics/sdl_ttf.so.lha
License: LGPL
Distribute: yes
Min OS Version: 4.1
FileID: 4956
 
Comments: 0
Snapshots: 0
Videos: 0
Downloads: 550  (Current version)
611  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
The goal of this archive is to provide libSDL_ttf as a shared object because it
was not available at that time and both SDL and freetype shared object exist.
More, I was confused with static libraries libfreetype and libft2.

Warning ! The previous release was broken ! As programming with shared objects
is quite new for me, I made a mistake. The error is fixed now.


Installation

Copy "libSDL_ttf.so" to SOBJS:
Make eventually a link on it from "SDK:Local/newlib/lib/", it will make the
finding the shared object before an existing static library "libSDL_ttf.a"
Copy "SDL_ttf.h" to "SDK:Local/common/include/SDL/"


How to use it

I added an example named ... "example.c" that can be compiled with the line :

gcc -Wall -L/SOBJS -ISDK:local/newlib/include/SDL -ISDK:local/common/include/SDL
-Wl,--verbose -use-dynld -o example example.c -lSDL-1.2 -lSDL_ttf -lfreetype -lz

Each shared object must have its dependent libraries as shared object too.

When you compile and executable and you want to check which shared objects
are dependent, run : readelf -d example


Compilation to build the shared object

It is very easy to create a shared object, here is how I compiled it :
SDL_ttf-2.0.9> gcc -O2 -I/SDK/Local/newlib/include/SDL -fPIC -c SDL_ttf.c 
SDL_ttf-2.0.9> gcc -L/SOBJS/ -use-dynld -shared -o libSDL_ttf.so SDL_ttf.o
-lfreetype

I added the tag to get the version with the command of the same name.


File Version Size Date OS Dls Readme
sdl_blitpool.lhaRelease2408kb19 Oct 20064.0210¤ Sdl_blitpool - Blit/Fill operation pool with optimizer
sdl_gfx.lha2.0.24264kb22 Dec 20124.0347¤ Sdl_gfx - libSDL_gfx
sdl_image.so.lha1.2.6257kb02 Jun 20084.0614¤ Sdl_image - SDL_image shared object for SDL image loading
sdl_oglblit.lha0.5891kb03 Sep 20084.0185¤ Sdl_oglblit - Do fast HW accelerated 2D operations.
sdl_sprite.lha1.2b35kb08 Oct 20064.0276¤ Sdl_sprite - SDLSprite - Display animated sprites
sdllayer.lha0.164Mb06 Aug 20084.0169¤ Sdllayer - Layered display mechanism for SDL, with examples.
sdltty.lha0.0.1820kb02 Jul 20084.0161¤ Sdltty - SDL_TTY
Copyright © 2004-2024 by Björn Hagström All Rights Reserved