Re: [Chicken-users] error when building freetype egg

2019-04-09 Thread kooda
Vasilij Schneidermann  wrote:
> Hey Kristian,
> 
> > When I chicken-install freetype, I get this:
> > 
> > /home/klm/.chicken-install/cache/freetype/freetype.c: In function
> > ‘stub2714’:
> > /home/klm/.chicken-install/cache/freetype/freetype.c:820:6: error:
> > ‘FT_GlyphSlotRec’ {aka ‘struct FT_GlyphSlotRec_’} has no member named
> > ‘reserved’
> >  g2615->reserved = g2616;
> 
> I can reproduce this.  It's a breaking change in freetype.h:
> 
> FT_UInt glyph_index; /* new in 2.10; was reserved previously */
> 
> > Maybe someone can look into a proper fix for this. Thanks,

Fixed in the 0.3 release of the egg.

I just removed the code that generated accessors and setters to that
struct slot. They probably aren’t used by anyone.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] error when building freetype egg

2019-04-09 Thread Vasilij Schneidermann
Hey Kristian,

> When I chicken-install freetype, I get this:
> 
> /home/klm/.chicken-install/cache/freetype/freetype.c: In function
> ‘stub2714’:
> /home/klm/.chicken-install/cache/freetype/freetype.c:820:6: error:
> ‘FT_GlyphSlotRec’ {aka ‘struct FT_GlyphSlotRec_’} has no member named
> ‘reserved’
>  g2615->reserved = g2616;

I can reproduce this.  It's a breaking change in freetype.h:

FT_UInt glyph_index; /* new in 2.10; was reserved previously */

> Maybe someone can look into a proper fix for this. Thanks,

I suspect you'd have to do some ugly preprocessor/cond-expand tricks.
Help with the latter is welcome :)  Freetype2 gives us the
FREETYPE_MAJOR/_MINOR/_PATCH macros (useful at build time) and the
FT_Library_Version function (useful at run time) to determine the
current version.


signature.asc
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users