GNOME Bugzilla – Bug 313417
gtk needs to check for libxft and fontconfig seperately to normal x libraries
Last modified: 2005-08-15 19:05:11 UTC
Please describe the problem: I'm tinderboxing gnome on a fairly minimal install of Debian sarge. libxft and fontconfig are not installed via debian, they're built by jhbuild in the prefix. gtk+ assumes xft and fontconfig headers and shared libraries are in the same place as the system's X libraries and headers. Steps to reproduce: 1. Install minimal debian 2. jhbuild gtk+, installing only the absolute minimal dependencies from apt Actual results: The build fails trying to find fontconfig/fontconfig.h and X11/Xft/Xft.h, both of which have been installed in the prefix Expected results: gtk+ should have autoconf foo to detect where fontconfig and libxft are Does this happen every time? yes Other information: http://trs80.ucc.asn.au/gnometinderbox/mudhead-200508130437/gtk+.html#build is the build log.
I think the checks were OK, but it doesn't actually matter. Xft isn't a dependency of GTK+-2.8.0 and the configure scripts were rewritten accordingly.
So what about fontconfig then? FWIW, these errors are coming from pango includes: n file included from /scratch/gnometinderbox/microtinder/build-output/include/pango-1.0/pango/pango-ot.h:25, from /scratch/gnometinderbox/microtinder/build-output/include/pango-1.0/pango/pangoxft.h:27, from gdkdrawable-x11.c:32: /scratch/gnometinderbox/microtinder/build-output/include/pango-1.0/pango/pangofc-font.h:27:35: fontconfig/fontconfig.h: No such file or directory In file included from /scratch/gnometinderbox/microtinder/build-output/include/pango-1.0/pango/pangoxft.h:30, from gdkdrawable-x11.c:32: /scratch/gnometinderbox/microtinder/build-output/include/pango-1.0/pango/pangoxft-render.h:32:25: X11/Xft/Xft.h: No such file or directory /scratch/gnometinderbox/microtinder/build-output/include/pango-1.0/pango/pangoxft-render.h:35:2: #error "must have Xft version 2 or newer"
Hmm, that include is spurious and needs to be removed, *but*: $ find . -name '*.[ch]' | xargs grep Fc ./gdk/x11/gdkxftdefaults.c: if (FcNameConstant ((FcChar8 *) v, value)) So GDK does need to depend on fontconfig on X11. 2005-08-15 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkdrawable-x11.c gtk/gtksettings.c: Remove panoxft.h includes. (#313417, James Andrewartha) * configure.in: Add fontconfig to X_PACKAGES, since we use it for FcNameConstant(). (More of #313417)