nanogui: Problems building with recent versions of FreeType 2


Previous by date: 22 Jun 2007 02:14:05 +0100 Re: compile errors, Laine Walker-Avina
Next by date: 22 Jun 2007 02:14:05 +0100 problem while compiling, abhishek desai
Previous in thread:
Next in thread: 22 Jun 2007 02:14:05 +0100 Re: Problems building with recent versions of FreeType 2, Kernel Mojo

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



Previous by date: 22 Jun 2007 02:14:05 +0100 Re: compile errors, Laine Walker-Avina
Next by date: 22 Jun 2007 02:14:05 +0100 problem while compiling, abhishek desai
Previous in thread:
Next in thread: 22 Jun 2007 02:14:05 +0100 Re: Problems building with recent versions of FreeType 2, Kernel Mojo


Powered by ezmlm-browse 0.20.