🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Freetype & SDL_ttf

Started by
2 comments, last by Jarski 23 years, 3 months ago
I installed freetype (freetype-2.0.1.tar.gz) like this: make setup make su PASSWORD make install after that I tried to install SDL_ttf (needed by paraGUI) (SDL_ttf-1.2.2.tar.gz): ./configure ->ERROR: -lttf not found What should I do?
Advertisement
Try running /sbin/ldconfig after the make install, just to be sure. Apart from that, make sure the libttf.* is installed in directories where it''ll be found. By default, ld looks into /lib, /usr/lib and some other directories which can be set in /etc/ld.conf (depending on distributions).

cu,
Prefect

Resist Windows XP''s Invasive Production Activation Technology!
Sanity is the trademark of a weak mind.
Widelands - laid back, free software strategy
You might want to double check where the ttf library was
installed, libttf may have been installed in /usr/local/lib.
To double check type ls -al /usr/local/lib/*libttf*.

Most configure scripts by default install to /usr/local
instead of /usr to avoid certain distributions that
may cause existing installed packages records to be contaminated.

Tara Milana - WP Entertainmenthttp://wolfpack.twu.net/Comp graphics artist and programmer.
Doh! still not working.

ls -al /usr/lib/*libttf*:

-rwxr-xr-x 1 root root 634 Feb 17 2000 /usr/lib/libttf.la
lrwxrwxrwx 1 root root 15 Dec 3 19:28 /usr/lib/libttf.so.2 -> libttf.so.2.2.0
-rwxr-xr-x 1 root root 184187 Feb 17 2000 /usr/lib/libttf.so.2.2.0


(SDL_ttf)config.log:
...
configure:2306: checking for TT_Init_FreeType in -lttf
configure:2325: gcc -o conftest -g -O2 -I/usr/include/SDL -D_REENTRANT conftest.c -lttf -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread 1>&5
/usr/bin/ld: cannot find -lttf
collect2: ld returned 1 exit status
configure: failed program was:
#line 2314 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char TT_Init_FreeType();

int main() {
TT_Init_FreeType()
; return 0; }

This topic is closed to new replies.

Advertisement