[Mono-devel-list] System.Windows.Forms - Unhandled Exception in Mono Version 1.1.5

Sindhu Gururaj sindhu.gururaj at celstream.com
Tue Mar 29 07:40:56 EST 2005


Hi,
I am using the latest Source code Version 1.1.5 of Mono. Thanks for all the
help. I am able to build the .NET hello world pgm on Mac.
Also, I was able to just use System.Windows.Forms [using
System.Windows.Forms - single line in hello world pgm] & compile the same
successfully.

Now I have started exploring the Forms. That is I am using the buttons and
other controls etc on a Form [ Pgm written on WINDOWS OS .NET]
And trying to run it on Mac. It compiles successfully, but on execution, I
get the following exception.

/***************************************************************************
*****************************/
sindhu:~/Desktop/mono-1.1.5/mcs/class/Managed.Windows.Forms/FirButtonOnMac
gsindhu$ mint Form1.exe
Mono System.Windows.Forms Assembly [Revision: 41731; built: 2005/2/15
5:56:12]
Could not load winelib.exe.so

Unhandled Exception: System.TypeInitializationException: An exception was
thrown by the type initializer for System.Windows.Forms.XplatUI --->
System.DllNotFoundException: libX11
#0: 0x00009 throw      in (wrapper managed-to-native)
System.Windows.Forms.XplatUIX11:XInitThreads () ()
#1: 0x00012 call       in System.Windows.Forms.XplatUIX11:.ctor () ()
#2: 0x00013 newobj     in System.Windows.Forms.XplatUIX11:GetInstance () ()
#3: 0x0001d call       in System.Windows.Forms.XplatUI:.cctor () ()
#4: 0x00000            in System.Windows.Forms.XplatUI:get_DefaultClassName
() ()
#5: 0x0000b call       in System.Windows.Forms.Form:get_CreateParams () ()
#6: 0x000cd callvirt   in System.Windows.Forms.Control:.ctor () ()
#7: 0x00001 vcall      in System.Windows.Forms.ScrollableControl:.ctor () ()
#8: 0x00001 vcall      in System.Windows.Forms.ContainerControl:.ctor () ()
#9: 0x00001 vcall      in System.Windows.Forms.Form:.ctor () ()
#10: 0x00005 vcall      in FirButtonOnMac.Form1:.ctor () ()
#11: 0x00000 newobj     in FirButtonOnMac.Form1:Main () ()
--- End of inner exception stack trace ---

#0: 0x00000            in System.Windows.Forms.XplatUI:get_DefaultClassName
() ()
#1: 0x0000b call       in System.Windows.Forms.Form:get_CreateParams () ()
#2: 0x000cd callvirt   in System.Windows.Forms.Control:.ctor () ()
#3: 0x00001 vcall      in System.Windows.Forms.ScrollableControl:.ctor () ()
#4: 0x00001 vcall      in System.Windows.Forms.ContainerControl:.ctor () ()
#5: 0x00001 vcall      in System.Windows.Forms.Form:.ctor () ()
#6: 0x00005 vcall      in FirButtonOnMac.Form1:.ctor () ()
#7: 0x00000 newobj     in FirButtonOnMac.Form1:Main () ()

/***************************************************************************
*****************************/
 I am using the Mono version - 1.1.5 , where the dependency on winelib is
said to be removed as Managed.Windows.Forms is avaialble.
This is mentioned at http://www.mono-project.com/Screenshots
<http://www.mono-project.com/Screenshots>  last screenshot.

If I try to install the winelib using "wineinstall", it gives the following

/***************************************************************************
*****************************/
*** Warning: X development files not found. Wine will be built without
*** X support, which currently does not work, and would probably not be
*** what you want anyway. You will need to install devel packages of
*** Xlib/Xfree86 at the very least.

Configure finished.  Do 'make depend && make' to compile Wine.

Install the X development headers and try again.


gsindhu:~/Desktop/wine-20050310/tools gsindhu$ make depend; make
cd `dirname widl/__depend__` && make depend
../../tools/makedep -I. -I. -I../../include -I../../include  -C. client.c
hash.c header.c proxy.c server.c typelib.c utils.c widl.c write_msft.c
parser.y parser.l
make[1]: ../../tools/makedep: Command not found
make[1]: *** [depend] Error 127
make: *** [widl/__depend__] Error 2
gcc -c -I. -I. -I../include -I../include  -DLEX_OUTPUT_ROOT="\"lex.yy\""
-Wall -pipe -fno-strict-aliasing -gstabs+ -Wpointer-arith  -g -O2
-ffixed-r13 -no-cpp-precomp -D__powerpc__ -o bin2res.o bin2res.c
gcc -g -O2 -ffixed-r13 -no-cpp-precomp -D__powerpc__ -o bin2res bin2res.o
-L../libs/port -lwine_port
ld: can't locate file for: -lwine_port
make: *** [bin2res] Error 1
gsindhu:~/Desktop/wine-20050310/tools gsindhu$ ./configure; make depend;
make
-bash: ./configure: No such file or directory
cd `dirname widl/__depend__` && make depend
../../tools/makedep -I. -I. -I../../include -I../../include  -C. client.c
hash.c header.c proxy.c server.c typelib.c utils.c widl.c write_msft.c
parser.y parser.l
make[1]: ../../tools/makedep: Command not found
make[1]: *** [depend] Error 127
make: *** [widl/__depend__] Error 2
gcc -g -O2 -ffixed-r13 -no-cpp-precomp -D__powerpc__ -o bin2res bin2res.o
-L../libs/port -lwine_port
ld: can't locate file for: -lwine_port
make: *** [bin2res] Error 1
gsindhu:~/Desktop/wine-20050310/tools gsindhu$ make depend
cd `dirname widl/__depend__` && make depend
../../tools/makedep -I. -I. -I../../include -I../../include  -C. client.c
hash.c header.c proxy.c server.c typelib.c utils.c widl.c write_msft.c
parser.y parser.l
make[1]: ../../tools/makedep: Command not found
make[1]: *** [depend] Error 127
make: *** [widl/__depend__] Error 2
gsindhu:~/Desktop/wine-20050310/tools gsindhu$ make depend
cd `dirname widl/__depend__` && make depend
../../tools/makedep -I. -I. -I../../include -I../../include  -C. client.c
hash.c header.c proxy.c server.c typelib.c utils.c widl.c write_msft.c
parser.y parser.l
make[1]: ../../tools/makedep: Command not found
make[1]: *** [depend] Error 127
make: *** [widl/__depend__] Error 2
gsindhu:~/Desktop/wine-20050310/tools gsindhu$ 
gsindhu:~/Desktop/wine-20050310/tools gsindhu$ make
gcc -g -O2 -ffixed-r13 -no-cpp-precomp -D__powerpc__ -o bin2res bin2res.o
-L../libs/port -lwine_port
ld: can't locate file for: -lwine_port
make: *** [bin2res] Error 1

/***************************************************************************
*****************************/
I am new to Linux as well as Mac. Hence a lot of problems.
Thanks for all your precious time.

Warm Regards,
Sindhu Gururaj,
sindhu.gururaj at celstream.com,
Ext - 2209.



This message is free from Virus - IMSS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050329/dc829b2b/attachment.html 


More information about the Mono-devel-list mailing list