On Fri, Jan 14, 2005 at 09:50:05PM +0000, Karel Kulhavy wrote: > 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 )
Not sure I follow you here... PKG_CONFIG_PATH is only used when you have multiple location on your system where you have installed libraries (like /usr for stuff from you distro and /usr/local for your own compiles). Then you need to point pkg-config to which directory containing .pc files to use in order to give the correct compiler and linker flags. PKG_CONFIG_PATH shouldn't be set in /etc/profile ... Look at the pkg-config man page for more info, try commands like pkg-config --cflags freetype2 to see what compiler flags pkg-config picks up for a specific library (freetype2 in this case). -- Daniel Nilsson
