[Mono-list] My experiments with MONO and Win32 (fixes needed !)

Pierre Arnaud pierre.arnaud@opac.ch
Tue, 26 Aug 2003 20:39:26 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_1E33_01C36C12.241912E0
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: 7bit

Hello All,

I'm quite new to MONO and wanted to give it a try under Win32,
so I followed the explanations found on the web. Basically, I
installed Cygwin, then created a directory named /src.

I updated the PATH to include the Microsoft.NET Framework 1.1
binaries.

I checked out mcs from the CVS repository, then launched the
mono-build-w32.sh script.

There were a few problems :

1) In mono/libgc, the file 'configure' is missing and the build
   script aborts. I fixed this by providing a dummy configure
   script which does nothing.

2) The Makefile produced as mono/Makefile contains a directive
   which won't work on Cygwin (is it a typo or a feature, I do
   not know). I replaced :

rm ../mcs/class/lib/corlib.dll ../mcs/mcs/mcs.exe runtime/*dll runtime/*.exe
>& /dev/null; echo

   with :

rm ../mcs/class/lib/corlib.dll ../mcs/mcs/mcs.exe runtime/*dll runtime/*.exe
; echo

   which works fine.

These two points are clearly problems which should be addressed,
don't you think so ?


Then, I included /src/install/bin and /src/install/lib into
the Cygwin path, and did a 'make fullbuild' from /src/mono.
This went also into /src/mcs and built everything successfully
(at least I have an mcs.exe which is able to compile a simple
test program).

This simple test program runs fine when launched from Windows,
but if I launch it with "mono test.exe", nothing happens. And
if I try "mint test.exe", mint crashes with an access violation
writing location 0x00000010...

I attached both the source and the exe to this posting. If
anybody has a clue as to what can be going wrong in my build,
I would be really grateful !

    Pierre

------=_NextPart_000_1E33_01C36C12.241912E0
Content-Type: application/x-zip-compressed;
	name="test.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="test.zip"

UEsDBBQAAAAIACJxGi/VqP5LswAAAOoAAAAMAAAAdGVzdC90ZXN0LmNzbY0xC8IwEIXnBvIfjk4t
LUHXVgdxcdDJwaF0iG2MB2kiSapI6X/32lk4eHC873tjQKvh+g1RDTVnnHVGhgAnZYzjbOLsNd4N
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