Re: [gtk-osx-users] gtk2 failing to build + no pangoft2





On Jan 11, 2020, at 1:39 PM, David Cooke <djcooke wintree plus com> wrote:

Hi,
 
I am trying to build, using Gtk-OSX under High Sierra, a gtk2 program which has previously been built 
successfully using Gtk-OSX on an earlier macOS installation and currently builds OK on Fedora 29.  Although 
I have used Gtk-OSX before, that was some time ago.
 
Initially I successfully ran ./gtk-osx-setup.sh, jhbuild bootstrap-gtk-osx and jhbuild build 
meta-gtk-osx-bootstrap meta-gtk-osx-gtk3; then jhbuild build meta-gtk-osx-core, also successful, and 
subsequently jhbuild build meta-gtk-osx-freetype – under the impression that freetype and fontconfig had 
not been installed.
 
Attempting to build the program, it failed on missing pango headers, notably pangofc-font.h.
 
In the attempt to get pangoft2 installed I have tried jhbuild build –f pango, tried adding lines to 
jhbuildrc-custom such as module_mesonargs[“pango”]=”use_fontconfig=true”, and finally ran: jhbuild build –f 
meta-gtk-osx-bootstrap meta-gtk-osx-freetype meta-gtk-osx-core.
 
The outcome is that pangoft2 has still not been installed – even though pango has been reinstalled - and 
gtk2 has now failed to build, reporting errors for gtkaliasdef.c, aliases not supported on darwin.
 
Any advice on how best to recover from this situation and how to get pangoft2 installed would be 
appreciated.  Inspection of the pango package suggests pangoft2 will not be built on macOS unless the 
option ”use_fontconfig=true” is supplied.

If your program uses gtk2 then you want meta-gtk-osx, not meta-gtk-osx-gtk3. 

You have to build freetype before pango if you want pangoft2. The easy way to make that happen is to tell 
unbuild everything you need all at once:
  jhbuild build meta-gtk-osx-bootstrap meta-gtk-osx meta-gtk-osx-freetype
So that it can see everything you want and put it in the right order.

To recover without starting over you can run
  jhbuild buildone -f pango
and since you probably need cairoft2 as well
  jhbuild buildone -f cairo

Configure will notice that freetype2 is now available and build the extra libraries.

Regards,
John Ralls




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]