Re: build problem

"Charlie Poole" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <00a501c81bcf$c1272f10$6501a8c0@FERRARI>
Hi,

Sorry, I can't help with building NAnt (never having done it myself).

What platform are you running on - can you use the version of NAnt
that comes with your distro?

As I mentionned earlier, I think the key is in the config file,
no matter what version of NAnt you use or build. If NAnt is not
told - through the config - that a certain framework exists, it
won't know about it.

Since NAnt is a managed application, you should be able to simply
download a binary version - even one built for Windows.

Charlie 

> -----Original Message-----
> From: naruto canada [mailto:[email protected]] 
> Sent: Wednesday, October 31, 2007 3:05 AM
> To: Charlie Poole
> Cc: [email protected]
> Subject: Re: [Nunit-users] build problem
> 
> On 10/31/07, Charlie Poole <[email protected]> wrote:
> > Hi,
> >
> > This is a bit confusing. Of course, if you are on linux, 
> net-1.1 does 
> > not exist, so the function should return false. I build on 
> Linux using 
> > NAnt 0.85 and that's what it does for me. AFAIK, the 
> validity of the 
> > framework identifier is determined by the contents of the 
> > nant.exe.config file that is installed with your version of 
> NAnt. Is 
> > this a version which has had the windows clr identifiers removed?
> 
> I could not get 0.85 to compile, so I use the latest NAnt source.
> The is the error I get from 0.85:
> 
> root@localhost: /build/nant-0.85  make install prefix=/usr || 
> sleep 99999999 mkdir -p bootstrap cp -R lib/ bootstrap/lib # 
> Mono loads log4net before privatebinpath is set-up, so we 
> need this in the same directory # as NAnt.exe cp 
> lib/log4net.dll bootstrap cp src/NAnt.Console/App.config 
> bootstrap/NAnt.exe.config mono bootstrap/NAnt.exe 
> -f:NAnt.build install -D:install.prefix="/usr"
> NAnt 0.85 (Build 0.85.2478.0; release; 10/14/2006) Copyright 
> (C) 2001-2006 Gerry Shaw http://nant.sourceforge.net
> Buildfile: file:///build/nant-0.85/NAnt.build
> Target framework: Mono 2.0 Profile
> Target(s) specified: install
>    [tstamp] Wednesday, 31 October 2007 18:02:38.
> init:
> debug:
> set-framework-configuration:
> set-mono-2.0-framework-configuration:
> build:
>      [echo] Build Directory is
> /build/nant-0.85/build/mono-2.0.unix/nant-0.85-debug
>      [nant] /build/nant-0.85/src/NAnt.Core/NAnt.Core.build build
>             Buildfile: 
> file:///build/nant-0.85/src/NAnt.Core/NAnt.Core.build
>             Target framework: Mono 2.0 Profile
>             Target(s) specified: build
>             build:
>                   [csc] Compiling 154 files to 
> '/build/nant-0.85/build/mono-2.0.unix/nant-0.85-debug/bin/NAnt
> .Core.dll'.
>                            [resgen] Read in 200 resources 
> from '/build/nant-0.85/src/NAnt.Core/Resources/Strings.resx'
>                            [resgen] Writing resource file...  Done.
>                   [csc]
> /build/nant-0.85/src/NAnt.Core/Task.cs(404,33): error CS0809: 
> Obsolete member `NAnt.Core.Task.InitializeElement(System.Xml.XmlNode)'
> overrides non-obsolete member
> `NAnt.Core.Element.InitializeElement(System.Xml.XmlNode)'
>                   [csc] Compilation failed: 1 error(s), 0 warnings
>             BUILD FAILED - 0 non-fatal error(s), 1 warning(s)
>             /build/nant-0.85/src/NAnt.Core/NAnt.Core.build(11,10):
>             External Program Failed:
> /usr/lib/pkgconfig/../../lib/mono/2.0/gmcs.exe (return code was 1)
>             Total time: 2.3 seconds.
> BUILD FAILED
> Nested build failed.  Refer to build log for exact reason.
> Total time: 2.6 seconds.
> make: *** [install] Error 1
> 
> >
> > Charlie
> >
> > > -----Original Message-----
> > > From: [email protected]
> > > [mailto:[email protected]] On Behalf Of 
> > > naruto canada
> > > Sent: Tuesday, October 30, 2007 10:12 AM
> > > To: [email protected]
> > > Subject: [Nunit-users] build problem
> > >
> > > hi
> > >
> > > I have build problem with mono:
> > >
> > > MY_UNPACK mono-1.2.5.1.tar.bz2
> > > ./configure --prefix=/usr
> > > make clean ; make || sleep 99999999
> > > make install
> > > MY_UNPACK libgdiplus-1.2.5.tar.bz2
> > > ./configure --prefix=/usr
> > > make clean ; make || sleep 99999999
> > > make install
> > > MY_UNPACK nant-src.tar.gz
> > > cd nant-0.86-nightly-2007-10-07
> > > make install prefix=/usr || sleep 99999999 MY_UNPACK 
> > > NUnit-2.4.3-src.zip cd src nant build-all
> > >
> > > NAnt 0.86 (Build 0.86.2860.0; dev; 10/31/2007) Copyright (C)
> > > 2001-2007 Gerry Shaw http://nant.sourceforge.net
> > >
> > > Buildfile: file:///build/NUnit-2.4.3-src/src/nunit.build
> > > Target framework: Mono 2.0 Profile
> > > Target(s) specified: build-all
> > >
> > >
> > > BUILD FAILED
> > >
> > > /build/NUnit-2.4.3-src/src/nunit.build.include(118,6):
> > > Function call failed.
> > > Expression: ${framework::sdk-exists( framework )}
> > >               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > >     "net-1.1" is not a valid framework identifier.
> > >
> > > Total time: 0.3 seconds.
> > >
> > > --------------------------------------------------------------
> > > -----------
> > > This SF.net email is sponsored by: Splunk Inc.
> > > Still grepping through log files to find problems?  Stop.
> > > Now Search log events and configuration files using AJAX and a 
> > > browser.
> > > Download your FREE copy of Splunk now >> http://get.splunk.com/ 
> > > _______________________________________________
> > > Nunit-users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/nunit-users
> > >
> >
> >
> >
> 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.