[Gtk-sharp-list] Error running Gtk# programs

Pablo Fischer pablo@pablo.com.mx
Mon, 05 Jan 2004 13:50:28 -0600


Hi!

Yeah, I was having the same problem, but I compiled from the CVS tree.

What I did?.

1. First, uninstall everything.. make a clean, and all, to gtksharp,
mono and mcs, remember, uninstall and clean (make uninstall && make
clean).

2. I downloaded mono-0.28, I compiled and installed it.

3. Then, go to the mono CVS version, I downloaded it in other directory.
And simple as..  

# ./configure --prefix=/usr && make fullbuild

Make fullbuild will build and then install, so I suggest you to do it
like root.

4. Then, go to gtksharp (the cvs version) and compiled and installed it
again. and all is ok :).

I also suggest you to download the cvs versions of mcs, mono and
gtksharp, in go-mono.com are instructions to download from the CVS.

Cya!
Pablo


El dom, 04-01-2004 a las 02:57, Swaroop C H escribió:
> Hi all,
> 
>   I am unable to run Gtk# programs on my new Fedora
> Core setup.
>   The error is below:
> 
> [g2swaroop@localhost sample]$ mono gtk-hello-world.exe
>                                                       
>                          
> ** (gtk-hello-world.exe:2699): WARNING **: Failed to
> load library ./libgtk-win32-2.0-0.dll
> (libgtk-win32-2.0-0.dll): ./libgtk-win32-2.0-0.dll:
> cannot open shared object file: No such file or
> directory
>                                                       
>                          
> ** (gtk-hello-world.exe:2699): WARNING **: Failed to
> load library ./libgtk-win32-2.0-0.dll
> (libgtk-win32-2.0-0.dll): ./libgtk-win32-2.0-0.dll:
> cannot open shared object file: No such file or
> directory
>                                                       
>                          
> Unhandled Exception: System.MissingMethodException: A
> missing method exception has occurred.
> in <0x00042> (wrapper managed-to-native)
> Gtk.Application:gtk_init (int,intptr)
> in <0x0002a> Gtk.Application:Init ()
> in <0x00012> GtkSamples.HelloWorld:Main (string[])
> 
> 
> --
> I have compiled Mono from mono-0.29.99.20031226.tar.gz
> and Gtk# from gtk-sharp-0.14.tar.gz .
> 
>  Can anyone help me solve this?
> 
> Thanks,
> Swaroop
> 
> __________________________________
> Do you Yahoo!?
> Find out what made the Top Yahoo! Searches of 2003
> http://search.yahoo.com/top2003
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>