[Mono-osx] Anybody get Winforms to work on Mac OS X mono

Jason Bell gharen1234 at hotmail.com
Sat Jun 24 12:21:15 EDT 2006


I had this problem too and had to alter the config file to point to the 
library's specific location.

Add the following to 
/Library/Frameworks/Mono.framework/Versions/Current/etc/mono/config

<dllmap dll="libX11.dylib" target="/usr/X11R6/lib/libX11.dylib"/>

You'll probably encounter more problems after.  I personally haven't gotten 
winforms working on os x yet.

>From: "matt jaffa" <mjaffa at gmail.com>
>To: mono-osx at lists.ximian.com
>Subject: [Mono-osx] Anybody get Winforms to work on Mac OS X mono
>Date: Thu, 22 Jun 2006 15:14:00 -0600
>
>Hi,
>
>When I try to run my compiled winform app on Mac mono I get this issue:
>
>~/Documents/Test/Test matt$ mono Program.exe
>Mono System.Windows.Forms Assembly [$auto_build_revision$]
>
>Unhandled Exception: System.TypeInitializationException: An exception
>was thrown by the type initializer for System.Windows.Forms.XplatUI
>---> System.DllNotFoundException: libX11.dylib
>in (wrapper managed-to-native) System.Windows.Forms.XplatUIX11:XInitThreads 
>()
>in <0x00096> System.Windows.Forms.XplatUIX11:.ctor ()
>in <0x0004d> System.Windows.Forms.XplatUIX11:GetInstance ()
>in <0x00073> System.Windows.Forms.XplatUI:.cctor ()--- End of inner
>exception stack trace ---
>
>in <0x00000> <unknown method>
>in <0x0000b> System.Windows.Forms.Application:EnableVisualStyles ()
>in <0x0000b> Test.Program:Main ()
>
>I have seen help online where they tell you to try and change some
>config files but still haven't gotten it to work. Does anybody have a
>step by step way to get this working?
>
>Thanks,
>Matt
>_______________________________________________
>Mono-osx mailing list
>Mono-osx at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-osx

_________________________________________________________________
Watch music videos on Sympatico / MSN Video! 
http://video.msn.com/v/en-ca/v.htm?t=c317&f=38/81&p=ENCAmusic_ENCAvideos 
Sympatico / MSN Video!



More information about the Mono-osx mailing list