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

Re: gEDA-user: freetype.h



On Fri, Jan 14, 2005 at 02:46:23PM -0500, Daniel Nilsson wrote:
> On Fri, Jan 14, 2005 at 06:13:27PM +0000, Karel Kulhavy wrote:
> > Hello
> > 
> > Freetype regularly generates problems:
> > 
> >  gcc -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/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include -O2 -march=athlon-xp -fomit-frame-pointer -fstrength-reduce -fschedule-insns -Wall -MT gdkasync.lo -MD -MP -MF .deps/gdkasync.Tpo -c gdkasync.c  -fPIC -DPIC -o .libs/gdkasync.o
> > In file included from ../../gdk/x11/gdkdrawable-x11.h:35,
> >                  from ../../gdk/x11/gdkwindow-x11.h:30,
> >                  from gdkprivate-x11.h:36,
> >                  from gdkx.h:78,
> >                  from gdkasync.c:49:
> > /usr/X11R6/include/X11/Xft/Xft.h:35:31: freetype/freetype.h: No such file or directory
> > 
> > If anyone has these problems, find the freetype.h and do export CFLAGS=
> > "-Ithe_directory $CFLAGS" and the same with CXXFLAGS.
> 
> Do you have a correct PKG_CONFIG_PATH setup ? It looks like you have
> installed freetype2 in a non-system location (/usr/local maybe ?) and
> not pointed pkg-config to use this location.

I got PKG_CONFIG_PATH correct.

But friend's Fedora Core has it wrong (omitted from /etc/profile at all,
although some distro-driven packages are installed in non-default prefix) :)
(distros rulzz0r ;-P )

Cl<