Hi all,
I'm trying to install gtk+ 2.10.2 on my Linux box (RedHat Enterprise 4).
As far as I can tell, I've installed all the dependencies required, including Pango and Cairo (installed in the order of Cairo then Pango, everything looks ok there). This is the error I'm getting when I run "./configure --prefix=/usr" :
Code:
checking Pango flags... -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lfreetype -lfontconfig -lpng12 -lz -lm
configure: error:
*** Can't link to Pango. Pango is required to build
When I run "pkg-config --cflags pango", here's the output:
Code:
[root@server1 gtk+-2.10.2]# pkg-config --cflags pango
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
As far as I'm concerned, Pango is installed. That directory "/usr/include/pango-1.0" does exist.
I managed to get the above to configure (but the "make" fails) by doing the following:
"export PKG_CONFIG_PATH=<my_pango_dir>:$PKG_CONFIG_PATH" (where <my_pango_dir> is the directory where pango lives).
WHen I do this, the ./configure actually works, the build fails. The error message is that it cannot find pango/pango.h.
Any ideas?
Leonard