mail-archives/mono-osx/2009-May/002316.html

186 строки
8.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-osx] libgdiplus.dylib
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20libgdiplus.dylib&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="002315.html">
<LINK REL="Next" HREF="002317.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-osx] libgdiplus.dylib</H1>
<B>Antoine Polatouche</B>
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20libgdiplus.dylib&In-Reply-To="
TITLE="[Mono-osx] libgdiplus.dylib">antoine at jabron.com
</A><BR>
<I>Tue May 26 19:32:18 EDT 2009</I>
<P><UL>
<LI>Previous message: <A HREF="002315.html">[Mono-osx] Mac OS X and 64bit support
</A></li>
<LI>Next message: <A HREF="002317.html">[Mono-osx] libgdiplus.dylib
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#2316">[ date ]</a>
<a href="thread.html#2316">[ thread ]</a>
<a href="subject.html#2316">[ subject ]</a>
<a href="author.html#2316">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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 ---&gt;
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Windows.Forms.ThemeEngine ---&gt;
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Windows.Forms.ThemeWin32Classic ---&gt;
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Drawing.KnownColors ---&gt;
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Drawing.GDIPlus ---&gt; System.DllNotFoundException:
/Library/Frameworks/Mono.framework/Versions/2.4/lib/libgdiplus.dylib
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup
(ulong&amp;,System.Drawing.GdiplusStartupInput&amp;,System.Drawing.GdiplusStartupOutput&amp;)
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&#381;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 ---&gt;
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Windows.Forms.ThemeEngine ---&gt;
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Windows.Forms.ThemeWin32Classic ---&gt;
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Drawing.KnownColors ---&gt;
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Drawing.GDIPlus ---&gt; System.DllNotFoundException:
/Library/Frameworks/Mono.framework/Versions/2.4/lib/libgdiplus.dylib
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup
(ulong&amp;,System.Drawing.GdiplusStartupInput&amp;,System.Drawing.GdiplusStartupOutput&amp;)
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&#233; publique: <A HREF="http://les-autres.com/antoine.asc">http://les-autres.com/antoine.asc</A>
Skype: callto:antoine.polatouche
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="002315.html">[Mono-osx] Mac OS X and 64bit support
</A></li>
<LI>Next message: <A HREF="002317.html">[Mono-osx] libgdiplus.dylib
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#2316">[ date ]</a>
<a href="thread.html#2316">[ thread ]</a>
<a href="subject.html#2316">[ subject ]</a>
<a href="author.html#2316">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-osx">More information about the Mono-osx
mailing list</a><br>
</body></html>