LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing gtk+ 2.10.2 pango problems (https://www.linuxquestions.org/questions/linux-software-2/installing-gtk-2-10-2-pango-problems-477565/)

LeonardTeo 08-26-2006 10:40 AM

Installing gtk+ 2.10.2 pango problems
 
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

bathory 08-26-2006 10:56 AM

Quote:

where <my_pango_dir> is the directory where pango lives
<my_pango_dir> should be the directory where pango.pc lives. In your case it's /usr/lib/pkgconfig.

Regards

LeonardTeo 08-26-2006 05:35 PM

Quote:

Originally Posted by bathory
<my_pango_dir> should be the directory where pango.pc lives. In your case it's /usr/lib/pkgconfig.

Regards

Thanks but that's already set correctly. pango.pc lives in /usr/lib/pkgconfig and even when this is explicitly set in export PKG_CONFIG_PATH=/usr/lib/pkgconfig, the ./configure fails with a "Can't link to Pango".

Problem still not solved...


All times are GMT -5. The time now is 01:49 PM.