Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » A5 on Linux - ttf addon problem

This thread is locked; no one can reply to it. rss feed Print
A5 on Linux - ttf addon problem
KeithS
Member #11,950
May 2010

Hi all,

I ran into a small problem while attempting to use the ttf addon. It does not work.

The allegro_ttf.h file is present in the source/allegro5.0.0/addon/ttf/allegro5/ directory, but never transferred to the usr/local/include/allegro5/ directory during the build.

This, despite verifying in the CMakeLists.txt that this line existed unaltered...

option(WANT_TTF "Enable TTF addon" on)

I would be happy to transfer the header manually to the appropriate directory, BUT, there is also NO liballegro_ttf file, or anything like it in the usr/local/lib directory, and no evidence of it in the source directory, either.

How can I fix this, please?

For info, I am running allegro 5 on Ubuntu 10.04, gcc/g++, CL and Code::Blocks.

* * * * * * * * * * *

My Noobish Blog

Arthur Kalliokoski
Second in Command
February 2005
avatar

Did you run "make install" as root? It wouldn't hurt to do an "ldconfig" while you're at it.

They all watch too much MSNBC... they get ideas.

KeithS
Member #11,950
May 2010

Thanks. Yes, I did both. So far, A5 is working fine, except ttf. As mentioned, the respective ttf libraries do not appear to have installed, and the header never left the source directory.

* * * * * * * * * * *

My Noobish Blog

Matthew Leverton
Supreme Loser
January 1999
avatar

Do you have the proper TTF dev libraries installed? Check the CMake log to see what it reported.

KeithS
Member #11,950
May 2010

Thanks, Matthew.

Yes, that does seem to be the problem. Also there is missing OpenAL dev, and a couple of (non-essential) X11 dependencies, by the looks of it. However, the only ttf dev I seem to be able to pull up on apt-cache search is an SDL ttf dev. Any ideas what I should search for, please?

I am currently solving the other omissions.

This means a rebuild, I imagine?

Thanks again.

EDIT:

Okay, got it. FreeType...

Useful link for anyone who has dependency problems with A5...

Install Allegro 5 Linux

With thanks to someone on the IRC a couple of nights ago (Tomasu, me thinks to recall) for providing the link, found it again in my browser history.

:)

* * * * * * * * * * *

My Noobish Blog

Havacore
Member #12,591
February 2011
avatar

EDIT: ignore this post

Matthew Leverton
Supreme Loser
January 1999
avatar

Don't hijack other people's threads with your own problems.

Your problem is that the font is NULL. It's not being loaded. Create a thread and post your code.

Go to: