[Mono-osx] libgdiplus.dylib

Geoff Norton gnorton at novell.com
Tue May 26 20:10:38 EDT 2009


Install X11

On 26-May-09, at 7:32 PM, Antoine Polatouche wrote:

> Hi there!
>
> I'm new to the mac world, and I wonder if I can run a winforms mono
> application on it?
> A minimum winforms app with only an empty window crashes, complaining
> about a missing  libgdiplus.dylib.
> In fact the lib is there (symlink to libgdiplus.0.0.0.dylib in the  
> same
> directory).
>
> Am I missing something?
> Some workaround?
> Any clue?
>
> OSX 10.5.6
> Mono 2.4
> I run both a binary compliled with VS2008 on a XP box, and a binary
> compiled with Monodevelop 2.1.0 on the Mac.
> Here are the error messages, if that can help:
>
> --------- Mono Mac binary --------
>
> Unhandled Exception: System.TypeInitializationException: An exception
> was thrown by the type initializer for
> System.Windows.Forms.WindowsFormsSynchronizationContext --->
> System.TypeInitializationException: An exception was thrown by the  
> type
> initializer for System.Windows.Forms.ThemeEngine --->
> System.TypeInitializationException: An exception was thrown by the  
> type
> initializer for System.Windows.Forms.ThemeWin32Classic --->
> System.TypeInitializationException: An exception was thrown by the  
> type
> initializer for System.Drawing.KnownColors --->
> System.TypeInitializationException: An exception was thrown by the  
> type
> initializer for System.Drawing.GDIPlus --->  
> System.DllNotFoundException:
> /Library/Frameworks/Mono.framework/Versions/2.4/lib/libgdiplus.dylib
>  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup
> (ulong 
> &,System 
> .Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
>  at System.Drawing.GDIPlus..cctor () [0x000c6] in
> /private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/System.Drawing/ 
> System.Drawing/gdipFunctions.cs:126
>
>  --- End of inner exception stack trace ---
>  at System.Drawing.KnownColors..cctor () [0x0001a] in
> /private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/System.Drawing/ 
> System.Drawing/KnownColors.cs:224
>
>  --- End of inner exception stack trace ---
>  at System.Drawing.Color.get_Black () [0x00000] in
> /private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/System.Drawing/ 
> System.Drawing/Color.cs:483
>
>  at System.Windows.Forms.ThemeWin32Classic..cctor () [0x00000] in
> /private/tmp/monobuild/build/BUILD/mono-2.4/mcs/build/common/ 
> Consts.cs:1
>  --- End of inner exception stack trace ---
>  at System.Windows.Forms.ThemeVisualStyles..ctor () [0x00000] in
> /private/tmp/monobuild/build/BUILD/mono-2.4/mcs/build/common/ 
> Consts.cs:1
>  at System.Windows.Forms.ThemeEngine..cctor () [0x0002d] in
> /private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/ 
> Managed.Windows.Forms/System.Windows.Forms/ThemeEngine.cs:49
>
>  --- End of inner exception stack trace ---
>  at  
> System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined
> () [0x00000] in
> /private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/ 
> Managed.Windows.Forms/System.Windows.Forms/SystemInformation.cs:346
>
>  at System.Windows.Forms.Control..ctor () [0x000e3] in
> /private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/ 
> Managed.Windows.Forms/System.Windows.Forms/Control.cs:1060
>
>  at (wrapper remoting-invoke-with-check)
> System.Windows.Forms.Control:.ctor ()
>  at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor ()
> [0x00000] in
> /private/tmp/monobuild/build/BUILD/mono-2.4/mcs/build/common/ 
> Consts.cs:1
>  --- End of inner exception stack trace ---
>  at System.Windows.Forms.Control..ctor () [0x00014] in
> /private/tmp/monobuild/build/BUILD/mono-2.4/mcs/class/ 
> Managed.Windows.Forms/System.Windows.Forms/Control.cs:1030
>
>  at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in
> /private/tmp/monobuild/build/BUILD/mono-2.4/mcs/build/common/ 
> Consts.cs:1
>  at System.Windows.Forms.ContainerControl..ctor () [0x00000] in
> /private/tmp/monobuild/build/BUILD/mono-2.4/mcs/build/common/ 
> Consts.cs:1
>  at System.Windows.Forms.Form..ctor () [0x00000] in
> /private/tmp/monobuild/build/BUILD/mono-2.4/mcs/build/common/ 
> Consts.cs:1
>  at WFormsApp.Form1..ctor () [0x00000]
>  at (wrapper remoting-invoke-with-check) WFormsApp.Form1:.ctor ()
>  at WFormsApp.Program.Main () [0x00000]
>
> L'application s'est terminŽe suite au signal: SIGHUP
>
> --------- MS XP binary --------
>
> Unhandled Exception: System.TypeInitializationException: An exception
> was thrown by the type initializer for
> System.Windows.Forms.WindowsFormsSynchronizationContext --->
> System.TypeInitializationException: An exception was thrown by the  
> type
> initializer for System.Windows.Forms.ThemeEngine --->
> System.TypeInitializationException: An exception was thrown by the  
> type
> initializer for System.Windows.Forms.ThemeWin32Classic --->
> System.TypeInitializationException: An exception was thrown by the  
> type
> initializer for System.Drawing.KnownColors --->
> System.TypeInitializationException: An exception was thrown by the  
> type
> initializer for System.Drawing.GDIPlus --->  
> System.DllNotFoundException:
> /Library/Frameworks/Mono.framework/Versions/2.4/lib/libgdiplus.dylib
>  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup
> (ulong 
> &,System 
> .Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
>  at System.Drawing.GDIPlus..cctor () [0x00000]
>  --- End of inner exception stack trace ---
>  at System.Drawing.KnownColors..cctor () [0x00000]
>  --- End of inner exception stack trace ---
>  at System.Drawing.Color.get_Black () [0x00000]
>  at System.Windows.Forms.ThemeWin32Classic..cctor () [0x00000]
>  --- End of inner exception stack trace ---
>  at System.Windows.Forms.ThemeVisualStyles..ctor () [0x00000]
>  at System.Windows.Forms.ThemeEngine..cctor () [0x00000]
>  --- End of inner exception stack trace ---
>  at  
> System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined
> () [0x00000]
>  at System.Windows.Forms.Control..ctor () [0x00000]
>  at (wrapper remoting-invoke-with-check)
> System.Windows.Forms.Control:.ctor ()
>  at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor ()
> [0x00000]
>  --- End of inner exception stack trace ---
>  at System.Windows.Forms.Control..ctor () [0x00000]
>  at System.Windows.Forms.ScrollableControl..ctor () [0x00000]
>  at System.Windows.Forms.ContainerControl..ctor () [0x00000]
>  at System.Windows.Forms.Form..ctor () [0x00000]
>  at WFormsApp.Form1..ctor () [0x00000]
>  at (wrapper remoting-invoke-with-check) WFormsApp.Form1:.ctor ()
>  at WFormsApp.Program.Main () [0x00000]
>
> -- 
> Clé publique: http://les-autres.com/antoine.asc
> Skype: callto:antoine.polatouche
>
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx



More information about the Mono-osx mailing list