[Mono-dev] Where should I install my pkg-config files on OS X?

Michael Hutchinson m.j.hutchinson at gmail.com
Mon Oct 18 18:04:06 EDT 2010

On Mon, Oct 18, 2010 at 10:58 AM, Jackson Harper <jackson at novell.com> wrote:
> For libev-sharp I'm trying to follow the developer guidelines for
> unstable API.  Basically I create install my dll in
> <prefix>/lib/libev-sharp/
> Then to use libev-sharp projects should do:
> cp `pkg-config --variable=Libraries Thing` build/.
> The problem is on OS X I have no idea where libev-sharp should install
> the libev-sharp.pc file. Using
> pkg-config --variable=pc_path pkg-config |  awk -F":" '{print $1}'
> doesn't really help, I get a garbage directory like /tmp/pkg-config
> Should I just hardcode it to
> '/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig/'

Beware that this whole directory will get replaced when you upgrade Mono.

For this reason, MonoDevelop 2.4.1 (and master) looks in
/Library/Frameworks/Mono.framework/External/pkgconfig and I'd like to
fix a future version of Mono to have its pkgconfig look there too.
I've added similar directories for MSBuild  extensions and MonoDoc
docs called "xbuild" and "monodoc", unsurprisingly. A "gac" would
probably be useful too.

Michael Hutchinson

More information about the Mono-devel-list mailing list