[Mono-winforms-list] Compiling monogui
Olivier Gaumond
ogaumond@yahoo.com
Fri, 9 May 2003 13:17:51 -0400 (EDT)
I tried to compile Wine and Mono with instructions from the thread "patches for
Win32 API libraries".
First I compiled Wine with the instructions in the wine/README in win32api.tgz
tarball. I think everything went fine (how can I verify). I already had Wine
installed does it make a difference?
Then I apply the patch to System.Windows.Forms/win32functions.cs that Miguel
sent and I recompile System.Windows.Forms.dll and copy it to /usr/lib to
replace the old version. (By the way both versions of the file have the same
size, so maybe I made an error).
Then I try to execute a sample Windows Forms application and I get the
following error.
Unhandled Exception: System.TypeInitializationException: An exception was
thrown by the type initializer for System.Windows.Forms.Control --->
System.NullReferenceException: A null value was found where an object instance
was required
--- End of inner exception stack trace ---
Then I decided to take the other approach of compiling a monogui interpreter so
I followed the instructions in mono/README from win32api.tgz. However these
instructions are not very verbose. Automake complained about a missing
mono/mini/mini.pc.in file. I removed the line causing the error in
configure.in and I made
$ autoconf
$ automake
$./configure
and then I got a Makefile in mono/gui_runtime so I made
$ cd mono/gui_runtime
$ make
Now I get the following output
In file included from mono.c:12:
debug.h:10: redefinition of `MonoDebugHandle'
../../mono/metadata/mono-debug.h:11: `MonoDebugHandle' previously declared here
debug.h:17: conflicting types for `MONO_DEBUG_FORMAT_NONE'
../../mono/metadata/mono-debug.h:20: previous declaration of
`MONO_DEBUG_FORMAT_NONE'
debug.h:21: conflicting types for `MONO_DEBUG_FORMAT_MONO'
../../mono/metadata/mono-debug.h:21: previous declaration of
`MONO_DEBUG_FORMAT_MONO'
debug.h:21: confused by earlier errors, bailing out
make: *** [monogui-mono.o] Error 1
What can I do now? I have done all that on the mono-0.24 source.
I don't seem to be the only one struggling with that, so any help would be
greatly appreciated.
Olivier
__________________________________________________________
Lèche-vitrine ou lèche-écran ?
magasinage.yahoo.ca