mail-archives/gtk-sharp-list/2004-April/003951.html

157 строки
6.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] Missing .dll
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:jared%40wingateweb.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="003947.html">
<LINK REL="Next" HREF="003956.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] Missing .dll
</H1>
<B>Jared Blake
</B>
<A HREF="mailto:jared%40wingateweb.com"
TITLE="[Gtk-sharp-list] Missing .dll">jared@wingateweb.com
</A><BR>
<I>Tue, 27 Apr 2004 09:23:51 -0600</I>
<P><UL>
<LI> Previous message: <A HREF="003947.html">[Gtk-sharp-list] glibsharpglue
</A></li>
<LI> Next message: <A HREF="003956.html">[Gtk-sharp-list] Missing .dll
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3951">[ date ]</a>
<a href="thread.html#3951">[ thread ]</a>
<a href="subject.html#3951">[ subject ]</a>
<a href="author.html#3951">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>This is a multi-part message in MIME format.
------=_NextPart_000_0003_01C42C39.5A861070
Content-Type: text/plain;
charset=&quot;us-ascii&quot;
Content-Transfer-Encoding: 7bit
I have a simple app that I built in Linux with glade and gtk#. It
compiles and runs fine on linux using mono. It also compiles on windows
XP using the following:
mcs -r:gtk-sharp -r:glade-sharp Main.cs Product.cs -resource:gui.glade
but when I run it by saying mono Main.exe I get the following error:
Unhandled Exception: System.DllNotFoundException: libgtk-win32-2.0-0.dll
in &lt;0x0004a&gt; (wrapper managed-to-native) Gtk.Application:gtk_init (int&amp;,
intpt&amp;)
in &lt;0x000027&gt; Gtk.Application:Init ()
in &lt;0x00034&gt; GladeApp:.ctor (string[])
in &lt;0x0001d&gt; GladeApp:Main (string[])
The libgtk-win32-2.0-0.dll is in my mono lib directory, as well as in
the directory where I am trying to run the app. I have installed GTK#
using the both the normal install and Will Collins' CVS install. Any
insight on what I am missing?
Thanks.
Jared Blake
------=_NextPart_000_0003_01C42C39.5A861070
Content-Type: text/html;
charset=&quot;us-ascii&quot;
Content-Transfer-Encoding: quoted-printable
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META HTTP-EQUIV=3D&quot;Content-Type&quot; CONTENT=3D&quot;text/html; =
charset=3Dus-ascii&quot;&gt;
&lt;TITLE&gt;Message&lt;/TITLE&gt;
&lt;META content=3D&quot;MSHTML 6.00.2800.1400&quot; name=3DGENERATOR&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV&gt;&lt;SPAN class=3D125101115-27042004&gt;&lt;FONT face=3DArial size=3D2&gt;I have =
a=20
simple&amp;nbsp;app that I built in Linux with glade and gtk#. It compiles =
and runs=20
fine on linux using mono. It also compiles on windows XP&amp;nbsp;using the=20
following:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=3D125101115-27042004&gt;&lt;FONT face=3DArial=20
size=3D2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=3D125101115-27042004&gt;&lt;FONT face=3DArial size=3D2&gt;mcs =
-r:gtk-sharp=20
-r:glade-sharp Main.cs Product.cs =
-resource:gui.glade&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=3D125101115-27042004&gt;&lt;FONT face=3DArial=20
size=3D2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=3D125101115-27042004&gt;&lt;FONT face=3DArial size=3D2&gt;but =
when I run it by=20
saying mono Main.exe I get the following error:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=3D125101115-27042004&gt;&lt;FONT face=3DArial=20
size=3D2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=3D125101115-27042004&gt;&lt;FONT face=3DArial =
size=3D2&gt;Unhandled Exception:=20
System.DllNotFoundException: libgtk-win32-2.0-0.dll in &amp;lt;0x0004a&amp;gt; =
(wrapper=20
managed-to-native) Gtk.Application:gtk_init (int&amp;amp;,=20
intpt&amp;amp;)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=3D125101115-27042004&gt;&lt;FONT face=3DArial=20
size=3D2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=3D125101115-27042004&gt;&lt;FONT face=3DArial size=3D2&gt;in =
&amp;lt;0x000027&amp;gt;=20
Gtk.Application:Init ()&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=3D125101115-27042004&gt;&lt;FONT face=3DArial size=3D2&gt;in =
&amp;lt;0x00034&amp;gt;=20
GladeApp:.ctor (string[])&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=3D125101115-27042004&gt;&lt;FONT face=3DArial size=3D2&gt;in =
&amp;lt;0x0001d&amp;gt;=20
GladeApp:Main (string[])&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=3D125101115-27042004&gt;&lt;FONT face=3DArial=20
size=3D2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=3D125101115-27042004&gt;&lt;FONT face=3DArial size=3D2&gt;The=20
libgtk-win32-2.0-0.dll is in my mono lib directory, as well as in the =
directory=20
where I am trying to run the app. I have installed GTK# using the both =
the=20
normal install and Will Collins' CVS install. Any insight on what I am=20
missing?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=3D125101115-27042004&gt;&lt;FONT face=3DArial=20
size=3D2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=3D125101115-27042004&gt;&lt;FONT face=3DArial=20
size=3D2&gt;Thanks.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=3DArial size=3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=3D125101115-27042004&gt;&lt;FONT face=3DArial size=3D2&gt;Jared=20
Blake&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=3D125101115-27042004&gt;&lt;FONT face=3DArial=20
size=3D2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;
------=_NextPart_000_0003_01C42C39.5A861070--
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="003947.html">[Gtk-sharp-list] glibsharpglue
</A></li>
<LI> Next message: <A HREF="003956.html">[Gtk-sharp-list] Missing .dll
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3951">[ date ]</a>
<a href="thread.html#3951">[ thread ]</a>
<a href="subject.html#3951">[ subject ]</a>
<a href="author.html#3951">[ author ]</a>
</LI>
</UL>
</body></html>