On Feb 16, 2007, at 6:05 PM, Curt Arnold wrote:


I have Mac OS/X boxes (both Intel and PowerPC). Have never fired up Mono on them, but could give it a shot. However it would not be until Monday. I'll move any more NAnt on Mono discussion to the NAnt-dev mailing list.


I'm a very sick man. Went ahead and installed MonoFramework-1.2.3.1 on Mac OS/X and got NAnt to build but not run self-test, but that should be a start.

1. Download Mono 1.2.3.1_0 Framework - Universal (Stable) from http:// www.mono-project.com/Downloads

2. Install framework

3. Modify /Library/Frameworks/Mono.framework/Versions/1.2.3.1/bin/nant

Mono comes with a prebuilt NAnt 0.85, but on Mac OS/X, it needs to have the export PKG_CONFIG_PATH statement added to the nant file.

#!/bin/sh
export PKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/Versions/ Current/lib/pkgconfig /Library/Frameworks/Mono.framework/Versions/1.2.3.1/lib/ pkgconfig/../../bin/mono /Library/Frameworks/Mono.framework/Versions/ 1.2.3.1/lib/NAnt/NAnt.exe "$@"

See http://www.bleepsoft.com/tyler/index.php?itemid=82 and http:// bugzilla.ximian.com/show_bug.cgi?id=79671. Bug should be fixed in next release of Mono.

At this point, you should have a usable NAnt 0.85 and all the Mono compilers on the execute path. If you check out NAnt from the source code repository, you can successfully do:

nant build

However, if you try to do "nant" or "nant test", you will get a failure that <exec> doesn't support the managed attribute. It appears that the build file for NAnt requires features that are not in NAnt 0.85. Removing the managed="true" replaces that error with another when it tries to run the generated nant.exe as a Mac OS/X executable.

I'd recommend, update Mono on Clarus and changing the NAnt gump descriptor to run "nant build" for now. I'd recommend adding a "gump" target to NAnt.build in the NAnt CVS and then changing the NAnt gump descriptor to run that.

NAnt uses log4net which uses NAnt, so we have a little cyclical dependency. Ideally, we would get Gump to build NAnt with its embedded log4net using the framework NAnt, use the built NAnt to build log4net and then build NAnt again using the previously built NAnt and log4net. One step at a time however.







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to