[Mono-list] Building mono/mcs

Hervé Poussineau poussine@freesurf.fr
Tue, 22 Jul 2003 08:47:09 +0200


-----Message d'origine-----
De : "John BouAntoun" <jbouantoun@rogen.com.au>

>Okay Guys,
>
>Sorry to send this apparent newbie-ish email, but I feel this needs to be
>asked....
>
>With all the changes flying around and talk about the new build system I
>find myself confused as to which >README/README.building/README.* file I
>need to read to get mono (or mcs) to build on my cygwin install. But to be
>honest I'm >so confused right now, I'd probably stuff up a mono build on
>linux also.
>
>So my question is this:
>
>
>a) Does the new build system make the old README files invalid now (or at
>least change some of them)?
>
>b) Would it be possible to make 1 penultimate building instructions file
>that is constantly kept up to date. (I would be quite happy to >organise
>this into a fluently read English document if someone could provide me with
>all the relevant instructions and caveats in the >right order).

I wrote some instructions (for me) to build mono on Cygwin, but I can't
build mcs.
(sorry for my English)

1) Install SDK .NET (http://www.microsoft.com/net) (is it really needed?)
2) Download Cygwin installer at : http://www.cygwin.com/setup.exe
3) Do a default install, and add some packages :
- autoconf (3)
- automake (3)
- bison
- cvs
- gcc
- libiconv
- libtool (3)
- make
- unzip
- wget
4) Copy Cygwin/usr/autotool/devel/bin/autoconf into Cygwin/bin (erase
existing file autoconf 2.13 with autoconf 2.57)
5) Start Cygwin
6) Download install script at http://www.go-mono.org/mono-build-w32.sh into
Cygwin/home/%USERNAME%
7) Under Cygwin, write command ./mono-build-win32.sh

8) But I have a problem during compilation:
[...]
Making all in runtime
make[2]: Entering directory `/home/hpoussin/mono/runtime'
cp ../../mcs/class/lib/Accessibility.dll . || cp
C:/cygwin/home/hpoussin/install/lib/Accessibility.dll .
cp: cannot stat `../../mcs/class/lib/Accessibility.dll': No such file or
directory
cp: cannot stat `C:/cygwin/home/hpoussin/install/lib/Accessibility.dll': No
such file or directory
make[2]: [Accessibility.dll] Error 1 (ignored)
cp ../../mcs/class/lib/ByteFX.Data.dll . || cp
C:/cygwin/home/hpoussin/install/lib/ByteFX.Data.dll .
cp: cannot stat `../../mcs/class/lib/ByteFX.Data.dll': No such file or
directory
[...]

Is the mcs checkout automatic or not ?
- if it should be automatic, it doesn't work
- if not, how can I continue the compilation without these warnings ?

Later on compilation, I have quite the same messages :
[...]
Making install in runtime
make[1]: Entering directory `/home/hpoussin/mono/runtime'
cp ../../mcs/class/lib/Accessibility.dll . || cp
C:/cygwin/home/hpoussin/install/lib/Accessibility.dll .
cp: cannot stat `../../mcs/class/lib/Accessibility.dll': No such file or
directory
cp: cannot stat `C:/cygwin/home/hpoussin/install/lib/Accessibility.dll': No
such file or directory
make[1]: [Accessibility.dll] Error 1 (ignored)
cp ../../mcs/class/lib/ByteFX.Data.dll . || cp
C:/cygwin/home/hpoussin/install/lib/ByteFX.Data.dll .
cp: cannot stat `../../mcs/class/lib/ByteFX.Data.dll': No such file or
directory
[...]

At the end, I have the message :
Add /home/hpoussin/install/bin and /home/hpoussin/install/lib to $PATH
Don't forget to copy the class libraries to /home/hpoussin/install/lib

mono.exe is compiled, but ut I can't find anywhere mcs.exe, System.dll, and
the other ones.
=>How can I compile the class library?

Hervé