XFree 4.3, glib2, pango 1.2, gtk+2.2 and freetype

From: Doug Nichols (doug_x_nichols_at_yahoo.com)
Date: 08/14/03


Date: 14 Aug 2003 03:43:28 -0700

I have the above situation,

I compiled X4.3 and install- all is working well

I then read found that fontconfig, freeetype and Xft where out of date
to compile some software

So I upgraded fontconfig to 2.2, freetype 1.3 and freetype2 2.0.9- All
is well. But X had it's own installed so I removed them from X and all
my freetype stuff is in /usr/local/...

Now I wanted to install sawfish and check it out, I use fluxbox
currently. To do this I needed to update my glib, gtk and thus also
gtk and pango and atk.

glib installed fine, atk went fine too. But when I got to pango, I had
to hide freetype 1.3 otherwise it wouldn't compile- I think it got
confused as to what header files.

So I got pango to compile nicely, now I want to compile gtk and it
wont go:
cc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\"
-DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk
-DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED
-DGDK_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/pango-1.0 -I/usr/local/include
-I/usr/include/freetype2 -I/usr/X11R6/include -g -O2 -Wall -c
gdkcolor-x11.c -fPIC -DPIC -o .libs/gdkcolor-x11.o
In file included from ../../gdk/x11/gdkdrawable-x11.h:37,
                 from ../../gdk/x11/gdkwindow-x11.h:30,
                 from gdkprivate-x11.h:36,
                 from gdkx.h:78,
                 from gdkcolor-x11.c:31:
/usr/local/include/X11/Xft/Xft.h:35:31: freetype/freetype.h: No such
file or directory
make[3]: *** [gdkcolor-x11.lo] Error 1
make[3]: Leaving directory `/usr/local/src/gtk+-2.2.2/gdk/x11'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/gtk+-2.2.2/gdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/gtk+-2.2.2'
make: *** [all-recursive-am] Error 2

I see in the usr/local/include/X11/Xft/Xft.h header there is a
reference to freetype that isn't there!

So my big question is should I tweak the header file? by changing the
reference to freetype to
/usr/local.include/freetype2/freetype/freetype.h or should I recompile
freetype to put it in the X11 directory structure?

Not that I know how to do any of this, but they seem reasonable ideas.



Relevant Pages

  • FreeType 2.2.1 released
    ... The latter site also holds older versions of the FreeType library. ... Vertical metrics for SFNT fonts were incorrect sometimes. ... compile without modification. ... Rudimentary support for Adobe's new `SING Glyphlet' format. ...
    (comp.fonts)
  • Re: Unable to compile Pango 1.4.x
    ... I am trying to compile the GTK+ v2.4 libraries on my rapidly becoming ... obsolete Linux installation at work. ... but Pango is giving me errors I don't know how to fix. ... Yes, I have freetype. ...
    (GNOME)
  • Re: [SLE] freetype/freetype2
    ... >>compile various programs (not rpms) I have come up with freetype and ... >>see if you have freetype and freetype2. ... hard coded paths for freetype), or maybe you need to pass the path at ... >>to compile now. ...
    (SuSE)
  • Re: GD TrueType empty output
    ... > freetype 2.1.5 ... > GD perl module without success: ... a problem with the font files. ... Compile, run, check with ...
    (comp.lang.perl.misc)
  • Re: Problem with reading an int with operator>>
    ... Stephen Howe wrote: ... Now I know there were a few flaws in the header files for Visual Studio ... So that if I did want to use dynamic linking, the VC6 standard library would be defective. ... But as Tom pointed out, there are only two common instantiations of much of the standard library, i.e. those for char and wchar_t, and MS has chosen to compile those into the C++ RTL DLL. ...
    (microsoft.public.vc.stl)