[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compilation error, due to changes in pango
From: |
Masamichi Hosoda |
Subject: |
Re: Compilation error, due to changes in pango |
Date: |
Sun, 04 Aug 2019 16:43:08 +0900 (JST) |
> The question is now what exactly causes this:
>
> error: invalid conversion from 'gpointer' {aka 'void*'}
> to 'FT_Face' {aka 'FT_FaceRec_*'}
>
> during the lilypond compilation? Is this really caused by pango? Or
> is this a glib issue? Could you investigate?
Pango 1.44 seems to have changed
the return type of pango_fc_font_lock_face () from FT_Face to gpointer.
https://gitlab.gnome.org/GNOME/pango/commit/fe3294ccf5a0b37c8a0950cc994ee0dfdd1dd909#594159b337483b122645586e446206f28d553b6e_56_52
LilyPond's lily/pango-font.cc has
```
FT_Face face = pango_fc_font_lock_face (fcfont);
```
If you use Pango 1.44,
the return type of pango_fc_font_lock_face () is different
from the variable type of face.
Here's a quick hack but I have not tried.
```
FT_Face face = static_cast<FT_Face>(pango_fc_font_lock_face (fcfont));
```
- Re: Compilation error, due to changes in pango, foxfanfare, 2019/08/03
- Re: Compilation error, due to changes in pango, Werner LEMBERG, 2019/08/03
- Re: Compilation error, due to changes in pango, foxfanfare, 2019/08/03
- Re: Compilation error, due to changes in pango, haawda, 2019/08/03
- Re: Compilation error, due to changes in pango, Werner LEMBERG, 2019/08/04
- Re: Compilation error, due to changes in pango,
Masamichi Hosoda <=
- Re: Compilation error, due to changes in pango, foxfanfare, 2019/08/04
- Re: Compilation error, due to changes in pango, Werner LEMBERG, 2019/08/04
- Re: Compilation error, due to changes in pango, Knut Petersen, 2019/08/06
- Re: Compilation error, due to changes in pango, t.sefzick, 2019/08/06
- Re: Compilation error, due to changes in pango, foxfanfare, 2019/08/14