[Mono-list] Mono-list Digest, Vol 91, Issue 29

Rodrigo Kumpera kumpera at gmail.com
Thu Nov 29 17:26:37 UTC 2012


Install X11 on your mac.


On Thu, Nov 29, 2012 at 12:24 PM, jeff clausius <jeffc at sourcegear.com>wrote:

>
> Also, just tried this suggestion against the 3.0.1 Mono release.  This
> presents a whole different set of problems:
>
> Unhandled Exception:
> System.TypeInitializationException: An exception was thrown by the type
> initializer for System.Windows.Forms.XplatUI --->
> System.DllNotFoundException: libX11.dylib
>   at (wrapper managed-to-native)
> System.Windows.Forms.XplatUIX11:XInitThreads ()
>   at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename
> unknown>:0
>   at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in
> <filename unknown>:0
>   at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename
> unknown>:0
>   --- End of inner exception stack trace ---
>   at System.Windows.Forms.Application.EnableVisualStyles () [0x00000] in
> <filename unknown>:0
>   at WindowsFormsApplicationMono1.Program.Main () [0x00000] in <filename
> unknown>:0
> [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException:
> An exception was thrown by the type initializer for
> System.Windows.Forms.XplatUI ---> System.DllNotFoundException: libX11.dylib
>   at (wrapper managed-to-native)
> System.Windows.Forms.XplatUIX11:XInitThreads ()
>   at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename
> unknown>:0
>   at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in
> <filename unknown>:0
>   at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename
> unknown>:0
>   --- End of inner exception stack trace ---
>   at System.Windows.Forms.Application.EnableVisualStyles () [0x00000] in
> <filename unknown>:0
>   at WindowsFormsApplicationMono1.Program.Main () [0x00000] in <filename
> unknown>:0
>
> I will be looking into ways around the "libX11.dylib" issue.  Symlink
> perhaps?
>
> Jeff
>
> On 11/28/2012 6:00 AM, mono-list-request at lists.ximian.com wrote:
> > WinForms works the worst on Mac. Although I don't have a Mac, I
> recommend the
> > users of my WinForms app to run their app this way, and it seems to work
> > fine for them: "MONO_MWF_MAC_FORCE_X11=1 mono yourapp.exe"
> > That makes it so it runs the app using the X11 driver rather than the Mac
> > (Carbon) one, which means the app should work as well as on Linux. The
> only
> > problem is that it requires an X11 server to be installed on the Mac.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20121129/8639c40e/attachment.html>


More information about the Mono-list mailing list