Logo by Alessandro Bacchia (anonymous IP: 18.116.52.43,2258) | ||||||||||||||
| ||||||||||||||
Audio (343) Datatype (51) Demo (203) Development (602) Document (24) Driver (97) Emulation (149) Game (1011) Graphics (500) Library (118) Network (234) Office (66) Utility (932) Video (69) Total files: 4399 Full index file Recent index file
Amigans.net OpenAmiga Aminet IntuitionBase
Support the site
|
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.
|
Copyright © 2004-2024 by Björn Hagström All Rights Reserved |