LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   compiling cairo 1.2.6 on CentOS 4.x (https://www.linuxquestions.org/questions/linux-desktop-74/compiling-cairo-1-2-6-on-centos-4-x-526652/)

primorec 02-08-2007 03:13 AM

compiling cairo 1.2.6 on CentOS 4.x
 
Hi folks,

In order to compile gtk 2.10 I need first to build pango, atk, cairo etc .

When I try to compile cairo 1.2.6 on CentOS 4.x system, I get the following error on the screen:

[jon@localhost cairo-1.2.6]$ ./configure --prefix=/usr/local
......
......
checking for cairo's PNG backend...
./configure: line 24790: --exists: command not found
./configure: line 24790: --exists: command not found
./configure: line 24790: --exists: command not found
configure: WARNING: Could not find libpng in the pkg-config search path
checking whether cairo's PNG backend could be enabled... no
configure: error: requested PNG backend could not be enabled

PKG_CONFIG_PATH variable point to /usr/local/lib/pkgconfig

[jon@localhost cairo-1.2.6]$ echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig/
[jon@localhost cairo-1.2.6]$ ls -la /usr/local/lib/pkgconfig/
....
....
-rw-r--r-- 1 root root 246 Feb 7 22:48 gthread-2.0.pc
-rw-r--r-- 1 root root 238 Feb 7 23:56 libpng12.pc
lrwxrwxrwx 1 root root 11 Feb 7 23:56 libpng.pc -> libpng12.pc
-rw-r--r-- 1 root root 291 Feb 7 23:44 pangoft2.pc


LD_LIBRARY_PATH points to /usr/local/lib

[jon@localhost cairo-1.2.6]$ echo $LD_LIBRARY_PATH
/usr/local/lib

What I am doing wrong ?

Igor

[few hours later]

Solution:

http://mail.gnome.org/archives/gtk-l.../msg00051.html
http://mail.gnome.org/archives/gtk-l.../msg00052.html


All times are GMT -5. The time now is 08:55 AM.