[Mono-list] Windows Forms App under Mac OS X Mono

jeff clausius jeffc at sourcegear.com
Thu Nov 29 17:30:47 UTC 2012


Sorry, didn't send the previous update w/ the correct subj. line which
included the test config.

In any case, the latest XCode, X11 and XQuarz as well as GTK from
macports already installed on 10.7.5.

Any other ideas?

Jeff

On 11/29/2012 11:26 AM, Rodrigo Kumpera wrote:
> Install X11 on your mac.
> 
> 
> On Thu, Nov 29, 2012 at 12:24 PM, jeff clausius <jeffc at sourcegear.com
> <mailto: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
>     <mailto: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
>     <mailto:Mono-list at lists.ximian.com>
>     http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 


More information about the Mono-list mailing list