pkg-config

Tollef Fog Heen tfheen at err.no
Mon Dec 12 10:51:47 PST 2005


* Rick Sivernell 

| I ran pkg-config --libs gtk+-2.0 and libpng12.pc is in /usr/local/lib/pkgconfig
|
| RSivernell:/opt/downloads/xfce4/xfce-4.2.3.2/src # pkg-config --libs gtk+-2.0
| Package libpng12 was not found in the pkg-config search path.
| Perhaps you should add the directory containing `libpng12.pc'
| to the PKG_CONFIG_PATH environment variable
| Package 'libpng12', required by 'cairo', not found
| RSivernell:/opt/downloads/xfce4/xfce-4.2.3.2/src #

It needs to find the libpng12.pc, as you have listed below.

I believe you might want to reconfigure pkg-config with
--with-pc-path=/usr/local/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/pkgconfig
as a parameter to configure.  make; make install

This will fix the problem permanently, or you can just add
/usr/lib64/pkgconfig to PKG_CONFIG_PATH.

-- 
Tollef Fog Heen                                                        ,''`.
UNIX is user friendly, it's just picky about who its friends are      : :' :
                                                                      `. `' 
                                                                        `-  


More information about the pkg-config mailing list