nant and pkg-config

View: New views
10 Messages — Rating Filter:   Alert me  

nant and pkg-config

by Ben Martin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

Re: nant and pkg-config

by Zaiden :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ben Martin wrote:
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.
I'm having the same problem trying to build the Monobjc samples with nant, using all the 2.4.x mono versions (I haven't tried with older versions).

Re: nant and pkg-config

by Baker, GJ (Gareth) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@... [mailto:mono-osx-
> bounces@...] On Behalf Of Ben Martin
> Sent: 22 July 2009 04:54
> To: mono-osx@...
> 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@...
> http://lists.ximian.com/mailman/listinfo/mono-osx
--
Scanned by iCritical.
_______________________________________________
Mono-osx mailing list
Mono-osx@...
http://lists.ximian.com/mailman/listinfo/mono-osx

Re: nant and pkg-config

by Uncle Nic () :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I get the same problem - with all 2.x versions on  Mac OS X (10.5.8). My last working version (with
the .Net - environment in Eclipse) is 1.9.1.
I am puzzled that this happens even with a clean install - so I am wondering: does this happen with all
Mac installations - or just a few? Since this problem seems to be persistent over such a long time (from 2.0.1 to the current version) I would hope for the latter, since otherwise this is not a recommendation for the use of mono on the Mac, especially since using a provided installer should never quietly result in a non-working installation. Or is just hardly anybody using mono under Mac OS X and the releases were not properly tested either?

Re: nant and pkg-config

by Kevin Heeney :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Not sure if this is your issue, but to get these working I ran the following in Terminal.

export PATH=/Library/Frameworks/Mono.framework/Versions/2.4/bin:$PATH


Good luck,

Kevin


On Sat, Aug 22, 2009 at 12:58 AM, Uncle Nic <Uncle.Niccolo@...> wrote:

I get the same problem - with all 2.x versions on  Mac OS X (10.5.8). My last
working version (with
the .Net - environment in Eclipse) is 1.9.1.
I am puzzled that this happens even with a clean install - so I am
wondering: does this happen with all
Mac installations - or just a few? Since this problem seems to be persistent
over such a long time (from 2.0.1 to the current version) I would hope for
the latter, since otherwise this is not a recommendation for the use of mono
on the Mac, especially since using a provided installer should never quietly
result in a non-working installation. Or is just hardly anybody using mono
under Mac OS X and the releases were not properly tested either?
--
View this message in context: http://www.nabble.com/nant-and-pkg-config-tp24599686p25087232.html
Sent from the Mono - OSX mailing list archive at Nabble.com.

_______________________________________________
Mono-osx mailing list
Mono-osx@...
http://lists.ximian.com/mailman/listinfo/mono-osx


_______________________________________________
Mono-osx mailing list
Mono-osx@...
http://lists.ximian.com/mailman/listinfo/mono-osx

Re: nant and pkg-config

by Chuck Esterbrook :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Aug 21, 2009 at 11:09 PM, Kevin Heeney<koheeney@...> wrote:
> Not sure if this is your issue, but to get these working I ran the following
> in Terminal.
>
> export PATH=/Library/Frameworks/Mono.framework/Versions/2.4/bin:$PATH
>
> Good luck,
>
> Kevin

Just a note that my pkg-config for Mono broke after installing
MacPorts, since it has its own pkg-config. I had to fix my PATH as
Kevin did above.

-Chuck
_______________________________________________
Mono-osx mailing list
Mono-osx@...
http://lists.ximian.com/mailman/listinfo/mono-osx

Re: nant and pkg-config

by Laurent Etiemble :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I have posted a quick summary on the issues you can encounter with
NAnt and pkg-config, and of course some solutions.

http://www.mail-archive.com/users@.../msg00235.html

Regards, Laurent Etiemble.

2009/7/25 Zaiden <zaiden@...>:

>
>
> Ben Martin wrote:
>>
>> 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.
>>
>
> I'm having the same problem trying to build the Monobjc samples with nant,
> using all the 2.4.x mono versions (I haven't tried with older versions).
> --
> View this message in context: http://www.nabble.com/nant-and-pkg-config-tp24599686p24658545.html
> Sent from the Mono - OSX mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-osx mailing list
> Mono-osx@...
> http://lists.ximian.com/mailman/listinfo/mono-osx
>
_______________________________________________
Mono-osx mailing list
Mono-osx@...
http://lists.ximian.com/mailman/listinfo/mono-osx

Re: nant and pkg-config

by Zaiden :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is what I do on a freshly installed Mac to get nant working:

- Create a SymLink from "/Library/Frameworks/Mono.framework/Versions/Current/bin/pkg-config" to "/usr/bin/pkg-config"

- Edit the file: "/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig/mono.pc" and comment the line starting with "Requires"

That should do it. Worked on every mac I tried it, using Mono 2.4.x

More info about this in my blog (spanish): http://zPod.com.ar

Re: nant and pkg-config

by Tom Philpot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Couldn't you also just
export
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/Library/Frameworks/Mono.framework/Versions
/Current/bin/pkg-config

On 9/12/09 10:56 AM, "Zaiden" <zaiden@...> wrote:

>
> This is what I do on a freshly installed Mac to get nant working:
>
> - Create a SymLink from
> "/Library/Frameworks/Mono.framework/Versions/Current/bin/pkg-config" to
> "/usr/bin/pkg-config"
>
> - Edit the file:
> "/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig/mono.pc"
> and comment the line starting with "Requires"
>
> That should do it. Worked on every mac I tried it, using Mono 2.4.x
>
> More info about this in my blog (spanish): http://zPod.com.ar

_______________________________________________
Mono-osx mailing list
Mono-osx@...
http://lists.ximian.com/mailman/listinfo/mono-osx

Re: nant and pkg-config

by Alexander Shulgin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tom Philpot wrote:
> Couldn't you also just
> export
> PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/Library/Frameworks/Mono.framework/Versions
> /Current/bin/pkg-config

Did you mean

export
PKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig:$PKG_CONFIG_PATH

?

--
Alex


> On 9/12/09 10:56 AM, "Zaiden" <zaiden@...> wrote:
>
>> This is what I do on a freshly installed Mac to get nant working:
>>
>> - Create a SymLink from
>> "/Library/Frameworks/Mono.framework/Versions/Current/bin/pkg-config" to
>> "/usr/bin/pkg-config"
>>
>> - Edit the file:
>> "/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig/mono.pc"
>> and comment the line starting with "Requires"
>>
>> That should do it. Worked on every mac I tried it, using Mono 2.4.x
>>
>> More info about this in my blog (spanish): http://zPod.com.ar

_______________________________________________
Mono-osx mailing list
Mono-osx@...
http://lists.ximian.com/mailman/listinfo/mono-osx