[cairo] problem building cairo 1.2.6

David Turner david at freetype.org
Fri Feb 2 12:19:18 PST 2007


Apparently, the configure script didn't find the kg-config program.
Is it in your path ? Did you export PKG_CONFIG_PATH ?

What does the output of:

  pkg-config --cflags libpng12

does ?

do you have a "libpng-config" program in your path ?

another possibility is that Cairo might require a more recent version
of libpng, but the configure script would complain with a human
readable message then. It seems there is something fishy with your
pkg-config installation.


- David

On Fri, 02 Feb 2007 15:07:35 -0500, "tj" <999alfred at comcast.net> said:
> Thanks for the advice, but alas it didn't work.
> With the folowing
> 
> cairo-1.2.6$ echo $PKG_CONFIG
> /usr/lib/pkgconfig
> 
> cairo-1.2.6$ echo $PKG_CONFIG_PATH
> /usr/lib/pkgconfig
> 
> I still get the same error as below.
> 
> The question is, why is it giving a "command not found error" ?
> And the error line number is a blank line?
> 
> tj
> 
> David Turner wrote:
> 
> >I believe you must define PKG_CONGIG_PATH, not PKG_CONFIG
> >
> >Once your configuration is ok, pkg-config --cflags libpng should dump something useful
> >
> >Hope this helps,
> >
> >- David
> >
> >
> >On Thu, 01 Feb 2007 17:39:53 -0500, "tj" <999alfred at comcast.net> said:
> >  
> >
> >>When I try to configure cairo 1.2.6 I get this...
> >>
> >>$./configure
> >>.
> >>.
> >>.
> >>checking for cairo's PNG backend...
> >>./configure: line 24784: --exists: command not found
> >>./configure: line 24784: --exists: command not found
> >>./configure: line 24784: --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
> >>
> >>My PKG_CONFIG is set correctly to
> >>$ echo $PKG_CONFIG
> >>/usr/lib/pkgconfig
> >>
> >>And:
> >>
> >>$ ls -l /usr/lib/pkgconfig/libpng*
> >>lrwxrwxrwx    1 root     root           11 Feb  7  2004 
> >>/usr/lib/pkgconfig/libpng.pc -> libpng12.pc
> >>-rw-r--r--    1 root     root          232 Oct 13  2002 
> >>/usr/lib/pkgconfig/libpng12.pc
> >>
> >>I looked at line 24784 in configure and it is a blank line.
> >>
> >>So, can a kind soul tell me what my problem is?
> >>
> >>tj
> >>
> >>
> >>_______________________________________________
> >>cairo mailing list
> >>cairo at cairographics.org
> >>http://cairographics.org/cgi-bin/mailman/listinfo/cairo
> >>    
> >>
> >
> >  
> >
> 


More information about the cairo mailing list