[Mono-osx] nant and pkg-config

Baker, GJ (Gareth) gareth.baker at stfc.ac.uk
Fri Jul 31 06:38:12 EDT 2009


I have been getting the same error. I've spent the past few days
googling the problem and may have found the root of the problem.

1) as below using nant on any of the Monobjc samples gives the error.

2) pkg-config --list-all will list mono (especially if PKG_CONFIG_PATH
is set)

3) HOWEVER pkg-config --modversion mono FAILS telling us it cant find
glib-2.0.pc (glib-2.0 is one of the required libraries in the mono.pc
file.

4) As a test I commented out the Requires line in the mono.pc file and
nant now runs and compiles the Monobjc samples!!

I'm wondering if nant is failing because the pkg-config:exists function
is failing to find mono because an error is being generated as (3)
above?

Should the glib-2.0 and gthread-2.0 .pc files be in the mono.framework
pkgconfig folder (as mono.pc refers to them)?

Hope this helps someone fix the problem
Gareth Baker

> -----Original Message-----
> From: mono-osx-bounces at lists.ximian.com [mailto:mono-osx-
> bounces at lists.ximian.com] On Behalf Of Ben Martin
> Sent: 22 July 2009 04:54
> To: mono-osx at lists.ximian.com
> Subject: [Mono-osx] nant and pkg-config
> 
> 
> I am trying to use nant to build my project but it is reporting that
> pkg-config can not locate the mono module.
> 
> I am using Mono 2.4.2.2.
> --
> View this message in context: http://www.nabble.com/nant-and-pkg-
> config-tp24599686p24599686.html
> Sent from the Mono - OSX mailing list archive at Nabble.com.
> 
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
-- 
Scanned by iCritical.


More information about the Mono-osx mailing list