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

Michael Hutchinson m.j.hutchinson at gmail.com
Tue Oct 19 14:34:42 EDT 2010


On Tue, Oct 19, 2010 at 11:31 AM, Jackson Harper <jackson at novell.com> wrote:
> On Mon, 2010-10-18 at 18:04 -0400, Michael Hutchinson wrote:
>> 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.
>>
>
> Awesome! But just so I am clear, xbuild in mono 2.8 does not support
> this feature yet, right?

Correct, not unless you do as MD does:
export PKG_CONFIG_PATH="/Library/Frameworks/Mono.framework/External/pkgconfig:$PKG_CONFIG_PATH"

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Mono-devel-list mailing list