nanogui: Thread: Problems building with recent versions of FreeType 2


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Problems building with recent versions of FreeType 2
From: aLUNZ ####@####.####
Date: 22 Jun 2007 02:14:05 +0100
Message-Id: <467B2226.8010304@tpg.com.au>

G'day,

Anyone else out there trying to build Nano-X with a recent version of 
the FreeType 2 API?  My compile fails with errors of:
src/engine/font_freetype2.c:1529: error: `FTC_ImageTypeRec' has no 
member named `font'

After some poking around it looks like the cache subsystem API has 
changed.  Previously, a FTC_ImageTypeRec was defined as:

  typedef struct  FTC_ImageTypeRec_
  {
    FTC_FontRec <http://www.ibr.cs.tu-bs.de/cgi-bin/dwww?type=file&location=/usr/share/doc/libfreetype6-dev/reference/ft2-cache_subsystem.html#FTC_FontRec>  font;
    FT_Int32     flags;

  } *FTC_ImageTypeRec*;

But in recent versions (FreeType-2.3.4) that data structure has become:

  typedef struct  FTC_ImageTypeRec_
  {
    FTC_FaceID <http://freetype.sourceforge.net/freetype2/docs/reference/ft2-cache_subsystem.html#FTC_FaceID>  face_id;
    FT_Int <http://freetype.sourceforge.net/freetype2/docs/reference/ft2-basic_types.html#FT_Int>      width;
    FT_Int <http://freetype.sourceforge.net/freetype2/docs/reference/ft2-basic_types.html#FT_Int>      height;
    FT_Int32    flags;

  } *FTC_ImageTypeRec*;

Before I try making the appropriate changes, has anyone else ventured 
down this path and already fixed this?

Cheers,
aLUNZ


Subject: Re: [nanogui] Problems building with recent versions of FreeType 2
From: "Kernel Mojo" ####@####.####
Date: 22 Jun 2007 17:53:49 +0100
Message-Id: <1c1bf1150706220953o6565a12cy857af92e841d99@mail.gmail.com>

I believe 2.1.7 is the last version of freetype2 to work with the current
version of nano-x.


On 6/21/07, aLUNZ ####@####.#### wrote:
>
> G'day,
>
> Anyone else out there trying to build Nano-X with a recent version of
> the FreeType 2 API?  My compile fails with errors of:
> src/engine/font_freetype2.c:1529: error: `FTC_ImageTypeRec' has no
> member named `font'
>
> After some poking around it looks like the cache subsystem API has
> changed.  Previously, a FTC_ImageTypeRec was defined as:
>
> typedef struct  FTC_ImageTypeRec_
> {
>    FTC_FontRec <
> http://www.ibr.cs.tu-bs.de/cgi-bin/dwww?type=file&location=/usr/share/doc/libfreetype6-dev/reference/ft2-cache_subsystem.html#FTC_FontRec
> >  font;
>    FT_Int32     flags;
>
> } *FTC_ImageTypeRec*;
>
> But in recent versions (FreeType-2.3.4) that data structure has become:
>
> typedef struct  FTC_ImageTypeRec_
> {
>    FTC_FaceID <
> http://freetype.sourceforge.net/freetype2/docs/reference/ft2-cache_subsystem.html#FTC_FaceID
> >  face_id;
>    FT_Int <
> http://freetype.sourceforge.net/freetype2/docs/reference/ft2-basic_types.html#FT_Int
> >      width;
>    FT_Int <
> http://freetype.sourceforge.net/freetype2/docs/reference/ft2-basic_types.html#FT_Int
> >      height;
>    FT_Int32    flags;
>
> } *FTC_ImageTypeRec*;
>
> Before I try making the appropriate changes, has anyone else ventured
> down this path and already fixed this?
>
> Cheers,
> aLUNZ
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>
>
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.