Re: [AD] Build failure (OS X) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Wed, 2008-12-24 at 17:38 +0000, Peter Hull wrote:
> /Users/peterhull/Projects/allegro/4.9/addons/ttf/ttf.c: In function
> 'al_ttf_load_font':
> /Users/peterhull/Projects/allegro/4.9/addons/ttf/ttf.c:299: error:
> 'FT_Size_RequestRec' undeclared (first use in this function)
> /Users/peterhull/Projects/allegro/4.9/addons/ttf/ttf.c:299: error:
> (Each undeclared identifier is reported only once
> /Users/peterhull/Projects/allegro/4.9/addons/ttf/ttf.c:299: error: for
> each function it appears in.)
> /Users/peterhull/Projects/allegro/4.9/addons/ttf/ttf.c:299: error:
> parse error before 'req'
> /Users/peterhull/Projects/allegro/4.9/addons/ttf/ttf.c:300: error:
> 'req' undeclared (first use in this function)
> /Users/peterhull/Projects/allegro/4.9/addons/ttf/ttf.c:300: error:
> 'FT_SIZE_REQUEST_TYPE_REAL_DIM' undeclared (first use in this
> function)
> /Users/peterhull/Projects/allegro/4.9/addons/ttf/ttf.c:305: warning:
> implicit declaration of function 'FT_Request_Size'
> ** BUILD FAILED **
>
> This is from the latest revision 11354.
>
> freetype-config --ftversion gives 2.3.7
>
Well, here's the API reference for 2.3.7:
http://freetype.sourceforge.net/freetype2/docs/reference/ft2-base_interface.html
And it says:
"""
FT_Size_RequestRec
Defined in FT_FREETYPE_H (freetype/freetype.h).
"""
So not sure what's going on. Can you check if your freetype.h is the
right version? Mine has this in it:
"""
#define FREETYPE_MAJOR 2
#define FREETYPE_MINOR 3
#define FREETYPE_PATCH 7
"""
And also this:
"""
typedef struct FT_Size_RequestRec_
{
FT_Size_Request_Type type;
FT_Long width;
FT_Long height;
FT_UInt horiResolution;
FT_UInt vertResolution;
} FT_Size_RequestRec;
"""
The only use I added it for is that with it you can specify the font
size by giving the actual pixel size (instead of the usual font size in
points), so it's nothing important, we could just remove it again.
However, at least FT_Request_Size is in the oldest freetype versions I
could find, so likely there's some other kind of problem.
--
Elias Pschernig <elias@xxxxxxxxxx>