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

Bojan Rajkovic severedcross at gmail.com
Mon Oct 18 12:22:05 EDT 2010


On Oct 18, 2010, at 10:58 AM, Jackson Harper 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/'
> 
> Or is there something better I can do?
> 
> 
> Jackson

IIRC, pkg-config is hard-coded to look into /usr/lib/pkgconfig and /usr/local/lib/pkgconfig—I don't know if this holds true on OS X or if it's appropriate for libev-sharp, but it may be worth a shot.

—Bojan


More information about the Mono-devel-list mailing list