[Gtk-sharp-list] Cant run GTK# program

Iñigo Illán iillan@terra.es
26 Apr 2003 00:30:52 +0200


--=-3r/x+sR6dpQ+RNoWYsDN
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Check if you have libgtksharpglue.so in your /usr/lib.

If you don't, maybe you have it in your /usr/local/lib directory (If you
have instaled gtk# from sources it would probably be here).

Try to install gtk# from sources executing configure with prefix
parameter like this:

./configure --prefix=/usr

You can either add the path /usr/local/lib to the end of the
/etc/ld.so.conf file instead of reinstaling gtk#


On Sat, 2003-04-26 at 12:19, Paul wrote:

> Hi  all,
> 
> I have compiled a program (the hello world program on the 
> mono handbook)
> 
> I compile it with this:
> 
> [paulb@paulsmachine mono]$ mcs 
> /r:/usr/local/lib/gtk-sharp.dll 
> /r:/usr/local/lib/glib-sharp.dll  helloworld.cs
> 
> The result:
> 
> Compilation succeeded
> 
> When I run it I get the following errors, what should I do:
> 
> [paulb@paulsmachine mono]$ mono helloworld.exe
> 
> ** (helloworld.exe:2541): WARNING **: Failed to load library 
> libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
> cannot open shared object file: No such file or directory
> 
> ** (helloworld.exe:2541): WARNING **: Failed to load library 
> libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
> cannot open shared object file: No such file or directory
> 
> ** (helloworld.exe:2541): WARNING **: Failed to load library 
> libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
> cannot open shared object file: No such file or directory
> 
> ** (helloworld.exe:2541): WARNING **: Failed to load library 
> libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
> cannot open shared object file: No such file or directory
> 
> ** (helloworld.exe:2541): WARNING **: Failed to load library 
> libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
> cannot open shared object file: No such file or directory
> 
> ** (helloworld.exe:2541): WARNING **: Failed to load library 
> libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
> cannot open shared object file: No such file or directory
> 
> ** (helloworld.exe:2541): WARNING **: Failed to load library 
> libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
> cannot open shared object file: No such file or directory
> 
> ** (helloworld.exe:2541): WARNING **: Failed to load library 
> libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
> cannot open shared object file: No such file or directory
> 
> ** (helloworld.exe:2541): WARNING **: Failed to load library 
> libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
> cannot open shared object file: No such file or directory
> 
> ** (helloworld.exe:2541): WARNING **: Failed to load library 
> libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
> cannot open shared object file: No such file or directory
> 
> ** (helloworld.exe:2541): WARNING **: Failed to load library 
> libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
> cannot open shared object file: No such file or directory
> 
> ** (helloworld.exe:2541): WARNING **: Failed to load library 
> libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
> cannot open shared object file: No such file or directory
> 
> ** (helloworld.exe:2541): WARNING **: Failed to load library 
> libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
> cannot open shared object file: No such file or directory
> 
> ** (helloworld.exe:2541): WARNING **: Failed to load library 
> libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
> cannot open shared object file: No such file or directory
> 
> Unhandled Exception: System.MissingMethodException: A 
> missing method exception has occurred.
> in <0x00046> 06 Gtk.Object:gtksharp_object_is_floating 
> (intptr)
> in <0x0003b> 00 Gtk.Object:set_Raw (intptr)
> in <0x00062> 00 Gtk.Window:.ctor (Gtk.WindowType)
> in <0x00047> 00 Gtk.Window:.ctor (string)
> in <0x00036> 00 .Hello:Main ()
> 
> 
> Thanks for your help in advance.
> 
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list



P.D.: Magic is real......... unless declared integer. 
P.D.D.: Para entender lo que es la recursividad, primero hay que
entender lo que es la recursividad.

--=-3r/x+sR6dpQ+RNoWYsDN
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/1.1.8">
</HEAD>
<BODY>
Check if you have libgtksharpglue.so in your /usr/lib.<BR>
<BR>
If you don't, maybe you have it in your /usr/local/lib directory (If you have instaled gtk# from sources it would probably be here).<BR>
<BR>
Try to install gtk# from sources executing configure with prefix parameter like this:<BR>
<BR>
./configure --prefix=/usr<BR>
<BR>
You can either add the path /usr/local/lib to the end of the /etc/ld.so.conf file instead of reinstaling gtk#<BR>
<BR>
<BR>
On Sat, 2003-04-26 at 12:19, Paul wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373" SIZE="3"><I>Hi  all,

I have compiled a program (the hello world program on the 
mono handbook)

I compile it with this:

[paulb@paulsmachine mono]$ mcs 
/r:/usr/local/lib/gtk-sharp.dll 
/r:/usr/local/lib/glib-sharp.dll  helloworld.cs

The result:

Compilation succeeded

When I run it I get the following errors, what should I do:

[paulb@paulsmachine mono]$ mono helloworld.exe

** (helloworld.exe:2541): WARNING **: Failed to load library 
libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
cannot open shared object file: No such file or directory

** (helloworld.exe:2541): WARNING **: Failed to load library 
libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
cannot open shared object file: No such file or directory

** (helloworld.exe:2541): WARNING **: Failed to load library 
libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
cannot open shared object file: No such file or directory

** (helloworld.exe:2541): WARNING **: Failed to load library 
libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
cannot open shared object file: No such file or directory

** (helloworld.exe:2541): WARNING **: Failed to load library 
libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
cannot open shared object file: No such file or directory

** (helloworld.exe:2541): WARNING **: Failed to load library 
libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
cannot open shared object file: No such file or directory

** (helloworld.exe:2541): WARNING **: Failed to load library 
libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
cannot open shared object file: No such file or directory

** (helloworld.exe:2541): WARNING **: Failed to load library 
libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
cannot open shared object file: No such file or directory

** (helloworld.exe:2541): WARNING **: Failed to load library 
libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
cannot open shared object file: No such file or directory

** (helloworld.exe:2541): WARNING **: Failed to load library 
libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
cannot open shared object file: No such file or directory

** (helloworld.exe:2541): WARNING **: Failed to load library 
libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
cannot open shared object file: No such file or directory

** (helloworld.exe:2541): WARNING **: Failed to load library 
libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
cannot open shared object file: No such file or directory

** (helloworld.exe:2541): WARNING **: Failed to load library 
libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
cannot open shared object file: No such file or directory

** (helloworld.exe:2541): WARNING **: Failed to load library 
libgtksharpglue.so (gtksharpglue): libgtksharpglue.so: 
cannot open shared object file: No such file or directory

Unhandled Exception: System.MissingMethodException: A 
missing method exception has occurred.
in &lt;0x00046&gt; 06 Gtk.Object:gtksharp_object_is_floating 
(intptr)
in &lt;0x0003b&gt; 00 Gtk.Object:set_Raw (intptr)
in &lt;0x00062&gt; 00 Gtk.Window:.ctor (Gtk.WindowType)
in &lt;0x00047&gt; 00 Gtk.Window:.ctor (string)
in &lt;0x00036&gt; 00 .Hello:Main ()


Thanks for your help in advance.


_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com</FONT>
<A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list"><FONT SIZE="3">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</I></FONT></A></PRE>
</BLOCKQUOTE>
<PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
<BR>
P.D.: Magic is real......... unless declared integer. <BR>
P.D.D.: Para entender lo que es la recursividad, primero hay que entender lo que es la recursividad.
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>

--=-3r/x+sR6dpQ+RNoWYsDN--