[Gtk-sharp-list] Missing .dll
Jared Blake
jared@wingateweb.com
Tue, 27 Apr 2004 09:23:51 -0600
This is a multi-part message in MIME format.
------=_NextPart_000_0003_01C42C39.5A861070
Content-Type: text/plain;
charset="us-ascii"
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 <0x0004a> (wrapper managed-to-native) Gtk.Application:gtk_init (int&,
intpt&)
in <0x000027> Gtk.Application:Init ()
in <0x00034> GladeApp:.ctor (string[])
in <0x0001d> 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="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D125101115-27042004><FONT face=3DArial size=3D2>I have =
a=20
simple 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 using the=20
following:</FONT></SPAN></DIV>
<DIV><SPAN class=3D125101115-27042004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D125101115-27042004><FONT face=3DArial size=3D2>mcs =
-r:gtk-sharp=20
-r:glade-sharp Main.cs Product.cs =
-resource:gui.glade</FONT></SPAN></DIV>
<DIV><SPAN class=3D125101115-27042004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D125101115-27042004><FONT face=3DArial size=3D2>but =
when I run it by=20
saying mono Main.exe I get the following error:</FONT></SPAN></DIV>
<DIV><SPAN class=3D125101115-27042004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D125101115-27042004><FONT face=3DArial =
size=3D2>Unhandled Exception:=20
System.DllNotFoundException: libgtk-win32-2.0-0.dll in <0x0004a> =
(wrapper=20
managed-to-native) Gtk.Application:gtk_init (int&,=20
intpt&)</FONT></SPAN></DIV>
<DIV><SPAN class=3D125101115-27042004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D125101115-27042004><FONT face=3DArial size=3D2>in =
<0x000027>=20
Gtk.Application:Init ()</FONT></SPAN></DIV>
<DIV><SPAN class=3D125101115-27042004><FONT face=3DArial size=3D2>in =
<0x00034>=20
GladeApp:.ctor (string[])</FONT></SPAN></DIV>
<DIV><SPAN class=3D125101115-27042004><FONT face=3DArial size=3D2>in =
<0x0001d>=20
GladeApp:Main (string[])</FONT></SPAN></DIV>
<DIV><SPAN class=3D125101115-27042004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D125101115-27042004><FONT face=3DArial size=3D2>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?</FONT></SPAN></DIV>
<DIV><SPAN class=3D125101115-27042004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D125101115-27042004><FONT face=3DArial=20
size=3D2>Thanks.</FONT></SPAN></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><SPAN class=3D125101115-27042004><FONT face=3DArial size=3D2>Jared=20
Blake</FONT></SPAN></DIV>
<DIV><SPAN class=3D125101115-27042004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV></BODY></HTML>
------=_NextPart_000_0003_01C42C39.5A861070--