Problem with pkgconfig on Mac
Daniel Macks
dmacks at netspace.org
Thu Feb 15 06:23:34 PST 2007
On Wed, Feb 14, 2007 at 06:58:19PM +0100, p.ten wrote:
> I've installed pkg-config via DarwinPorts, in /opt/local/bin (version 0.21).
> Then i set my profile file (in my home directory) with these parameters:
>
> export
> PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:opt/local/lib/pkgconfig:usr/X11R6/lib/pkgconfig:$PKG_CONFIG_PATH
>
> It seems to be correct, and I get it correctly running "env", BUT, when I
> write in Terminal (bash):
>
> pkg-config --modversion filename
>
> it works only with file.pc stored in first path directory
> (usr/local/lib/pkgconfig), and does NOT work with, for instance, fontconfig,
> that stays in usr/X11R6/lib/pkgconfig.
> To get it found by pkg config I have to put "usr/X11R6/lib/pkgconfig at the
> first place.
> Where did I wrong?
A complete (absolute) pathname begins with a slash. In your definition
of PKG_CONFIG_PATH, the first / after the = is part of the first
pathname, not part of the syntax for the variable definition. A
directory usr/X11R6/lib/pkgconfig probably doesn't exist, whereas
/usr/X11R6/lib/pkgconfig probably exists and contains .pc files. You
need leading slashes on every path in PKG_CONFIG_PATH, not just the
first one.
dan
--
Daniel Macks
dmacks at netspace.org
http://www.netspace.org/~dmacks
More information about the pkg-config
mailing list