mail-archives/gtk-sharp-list/2005-June/005990.html

129 строки
4.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] DrawingSample : how to run on OSX?
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20DrawingSample%20%3A%20how%20to%20run%20on%20OSX%3F&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="005991.html">
<LINK REL="Next" HREF="005992.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] DrawingSample : how to run on OSX?</H1>
<B>Davide Morelli</B>
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20DrawingSample%20%3A%20how%20to%20run%20on%20OSX%3F&In-Reply-To="
TITLE="[Gtk-sharp-list] DrawingSample : how to run on OSX?">davide.morelli at parser.it
</A><BR>
<I>Thu Jun 16 09:50:17 EDT 2005</I>
<P><UL>
<LI>Previous message: <A HREF="005991.html">[Gtk-sharp-list] GtkEntry: UpperCase, NormalCase or LowerCase
</A></li>
<LI>Next message: <A HREF="005992.html">[Gtk-sharp-list] Toolbar buttons
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#5990">[ date ]</a>
<a href="thread.html#5990">[ thread ]</a>
<a href="subject.html#5990">[ subject ]</a>
<a href="author.html#5990">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Hi,
I am having problems executing the DrawingSample.exe sample from
gtk-sharp-1.9.3 on OSX 10.3
I don't know if these problems are due to
. a wrong installations procedure (I followed the wiki page on the mono
portal as much as i could)
. PATH problems
. whatever...
I can compile it but when I run it I get exceptions in
System.Drawing.GDIPlus.
libgdiplus is working fine if I use it without gtk, (e.g: a
System.Windows.Forms example)
In xterm I type:
export
DYLD_LIBRARY_PATH=/sw/lib:/Library/Frameworks/Mono.framework/Versions/Current/lib/
then
mono DrawingSample.exe
the form appears and quickly disappears and I get this message:
Unhandled Exception: System.Reflection.TargetInvocationException: Exception
has been thrown by the target of an invocation. ---&gt;
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Drawing.GDIPlus ---&gt; System.DllNotFoundException:
/Library/Frameworks/Mono.framework/Versions/1.1.7/lib/libgdiplus.dylib
in (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup
(ulong&amp;,System.Drawing.GdiplusStartupInput&amp;,System.Drawing.GdiplusStartupOutput&amp;)
in &lt;0x0011c&gt; System.Drawing.GDIPlus:.cctor ()--- End of inner exception
stack trace ---
in &lt;0x00000&gt; &lt;unknown method&gt;
in &lt;0x00038&gt; System.Drawing.Graphics:FromXDrawable (IntPtr drawable, IntPtr
display)
in &lt;0x00034&gt; System.Drawing.Graphics:FromXDrawable (IntPtr drawable, IntPtr
display)
in &lt;0x00000&gt; &lt;unknown method&gt;
in (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
(object,object[])
in &lt;0x000c8&gt; System.Reflection.MonoMethod:Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[]
parameters, System.Globalization.CultureInfo culture)--- End of inner
exception stack trace ---
in &lt;0x00168&gt; System.Reflection.MonoMethod:Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[]
parameters, System.Globalization.CultureInfo culture)
in &lt;0x00048&gt; System.Reflection.MethodBase:Invoke (System.Object obj,
System.Object[] parameters)
in &lt;0x001f4&gt; Gtk.DotNet.Graphics:FromDrawable (Gdk.Drawable drawable)
in &lt;0x0005c&gt; PrettyGraphic:OnExposeEvent (Gdk.EventExpose args)
in &lt;0x0009c&gt; Gtk.Widget:exposeevent_cb (IntPtr widget, IntPtr evnt)
in (wrapper native-to-managed) Gtk.Widget:exposeevent_cb (intptr,intptr)
in &lt;0x00000&gt; &lt;unknown method&gt;
in (wrapper managed-to-native) Gtk.Application:gtk_main ()
in &lt;0x0000c&gt; Gtk.Application:Run ()
in &lt;0x00260&gt; X:Main ()
thank you for any hint,
Davide.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="005991.html">[Gtk-sharp-list] GtkEntry: UpperCase, NormalCase or LowerCase
</A></li>
<LI>Next message: <A HREF="005992.html">[Gtk-sharp-list] Toolbar buttons
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#5990">[ date ]</a>
<a href="thread.html#5990">[ thread ]</a>
<a href="subject.html#5990">[ subject ]</a>
<a href="author.html#5990">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">More information about the Gtk-sharp-list
mailing list</a><br>
</body></html>