I see the same problem in the latest download of mono 2.4 on mac. Adding
/Library/Frameworks/Mono.framework/Versions/2.4/bin to PATH seems to resolve
the issue for me
Raj
On Fri, Apr 24, 2009 at 7:47 AM, Gert Driesen <gert.drie...@telenet.be>wrote:
> Hi Ron,
>
> From the error it's clear that NAnt cannot start pkg-config.
> Perhaps you should try to create a small test app that launches pkg-config
> using the System.Diagnostics.Process class, to rule out a mono related bug.
> If you have any problem creating this app, then just let me know.
>
> Gert
>
> *From:* Ron Grove <ron.gr...@me.com>
> *Sent:* Friday, April 24, 2009 5:58 AM
> *To:* nant-users@lists.sourceforge.net
> *Subject:* Re: [NAnt-users] Problem with pkg-config finding mono
>
> I'm on a different OS X computer now (my wife's iMac) and I downloaded Mono
> and Monobjc and get the same error from Nant. I tried the small test build
> file in this post:
> http://www.mail-archive.com/nant-users@lists.sourceforge.net/msg04071.html
>
> That recommends a small test build file containing:
>
> <project name="pkg-config-test">
> <echo message="mono prefix: ${pkg-config::get-variable('mono', 'prefix')}" />
> <echo message="exists mono: ${pkg-config::exists('mono')}" />
> <echo message="modversion mono: ${pkg-config::get-mod-version('mono')}" />
>
> </project>
>
> But get the same error. Both computers seem to see that mono is there.
> --exists mono doesn't give an error. It's in the --list-all output, etc.
> The mono version seems fine:
>
> debora:bin Ron$ ./pkg-config --modversion mono
> 2.4
>
> I tried running nant with --debug and it doesn't really tell me anything
> more. I'm lost.
>
> Thank you,
> Ron
>
>
> On Apr 23, 2009, at 4:52 PM, Ron Grove wrote:
>
> I'm having trouble with pkg-config when I run nant on the monobjc
> project's package, but others have it working fine. The email below details
> what I've done so far from a different mailing list. I really don't
> understand why pkg-config says it can't find mono. When I run the command
> on its own with --list-all it does list mono. I'm not sure how the --exists
> switch is to be used, though. Just putting mono after it doesn't give me
> anything, but when I run it with --debug it says the value of --print-errors
> is 0. I expect that's good. When I use the --libs switch it gives me
> plenty of info. The mono.pc file is in the
> /Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig
> folder. Any ideas about why it keeps failing on me with the error:
> Expression: ${not pkg-config::exists('mono')}
> Thank you,
> Ron
>
>
> Begin forwarded message:
>
> *From: *Ron Grove <ron.gr...@me.com>
> *Date: *April 23, 2009 4:16:07 PM PDT
> *To: *us...@lists.monobjc.net
> *Subject: **Re: [us...@lists.monobjc.net] Problem building samples*
> *Reply-To: *us...@lists.monobjc.net
>
> Interestingly I can run and run the command
>
> /Library/Frameworks/Mono.framework/Commands/pkg-config --list-all
>
> and mono is in the list it outputs. Man that's irritating...
>
>
> On Apr 23, 2009, at 4:04 PM, Ron Grove wrote:
>
> I'm not completely sure what you mean by cleaning up my setup. The XCode
> 3.1 tools are installed and work fine for Objective-C projects. I need
> those tools so uninstalling them isn't really something I want to do unless
> there's a reason. nant seems to be installed correctly:
>
>
> ron:~ ron$ nant -help
>
> NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007)
>
>
> ron:~ ron$ whereis nant
>
> /usr/bin/nant
>
>
> ron:~ ron$ ls -l /usr/bin/nant
>
> lrwxr-xr-x 1 root wheel 48 Apr 10 15:11 /usr/bin/nant ->
> /Library/Frameworks/Mono.framework/Commands/nant
>
>
> Still not sure why, but it's this pkg-config::exists function that's
> failing to find mono. But I can run it fine from the command line and it's
> in my path. Suppose I'll have to sign up on their mailing list and ask. I
> was just hoping someone else may have run into it here.
>
>
> -Ron
>
>
>
> 2009/4/17 Ron Grove <ron.gr...@me.com>:
>
> I've tried to built the samples using nant and get this error message
> below.
>
> I've never used it before and not sure what to do. This page doesn't
> tell
>
> me much:
>
>
>
> http://nant.sourceforge.net/release/0.85-rc1/help/functions/pkg-config.exists.html
>
>
> Where is it looking for the package? I have the latest download for OS X
>
> installed on the system. All the old versions are gone so far as I can
> see.
>
> Somewhere I read to set $PKG_CONFIG_PATH
>
> to /Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig
> which
>
> I've done, but that didn't help. Any ideas?
>
>
> Thank you,
>
> Ron
>
>
> -------------------------------------------
>
>
> BUILD FAILED
>
>
> Failed to initialize the 'Mono 3.5 Profile' (mono-3.5) target framework.
>
>
> Function call failed.
>
> Expression: ${not pkg-config::exists('mono')}
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^
>
>
> 'pkg-config' failed to start.
>
>
> ApplicationName='pkg-config', CommandLine='--exists mono',
>
>
> CurrentDirectory='/Library/Frameworks/Mono.framework/Versions/2.4/share/NAnt/bin/'
>
>
> For more information regarding the cause of the build failure, run the
> build
>
> again in debug mode.
>
>
>
>
>
>
>
> ------------------------------
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensign option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
>
> ------------------------------
>
> _______________________________________________
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
>
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensign option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
>
>
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users