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.
Did you run "make install" as root? It wouldn't hurt to do an "ldconfig" while you're at it.
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.
Do you have the proper TTF dev libraries installed? Check the CMake log to see what it reported.
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...
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.
EDIT: ignore this post
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.