[Gtk-sharp-list] Mono/Gtk# 1.0 on Windows (optional : glade)

gaetan.semet@free.fr gaetan.semet@free.fr
Tue, 03 Aug 2004 16:05:25 +0100


Hello there

i'm new in the dotnet world and i'm testing mono to see how wonderful it is.
My goal is to write an application that will run under Windows and Linux 
as well...

So, i would like to use gtk# with mono 1.0 but i don't find any suitable 
Windows installation.
I'm under Windows (sorry sorry, i'm at work).

The official mono distribution
http://mono2.ximian.com/archive/1.0/windows/mono-1.0-win32-1.exe
doesn't containt the gtk librairies: gtk-sharp.dll...
On the gtk# web site
http://gtk-sharp.sourceforge.net/index.html
there's only binaries for* version 0.93, gtk# 1.0 is said to be included 
within mono 1.0:
http://www.mono-project.com/using/gtk-sharp.html


*I've found
http://www.osnews.com/comment.php?news_id=7760
which seems to link to a combined installation...
but the web site doesn't respond...

So for the moment i'm using gtk# 0.93 with mono 1.0 and that seems to 
work... with visual studio.
I compile the helloworld example :
http://www.go-mono.com/docs/monodoc.ashx?link=source-id%3a7%3axhtml%3ahtml%2fen%2fgnome%2fbindings%2fgtk-sharp%2fgetstart.html
with visual studio (so with .net compiler) it work and i can launch the 
application with the debugger.
But when i launch it anywhere else i get :

(<unknown>:6852): Gtk-CRITICAL **: file gtkwindow.c: line 1021 
(gtk_window_set_t
itle): assertion `GTK_IS_WINDOW (window)' failed

If i try to compile it with mcs (mono compiler):
C:\Documents and Settings\gs5589\Desktop\home\Project\Photonizer>mcs 
-pkg:gtk-sh
arp MainForm.cs
error CS0006: Cannot find assembly `/usr/lib/mono/gtk-sharp/glib-sharp.dll'
Log:

error CS0006: Cannot find assembly `/usr/lib/mono/gtk-sharp/pango-sharp.dll'
Log:

error CS0006: Cannot find assembly `/usr/lib/mono/gtk-sharp/atk-sharp.dll'
Log:

error CS0006: Cannot find assembly `/usr/lib/mono/gtk-sharp/gdk-sharp.dll'
Log:

error CS0006: Cannot find assembly `/usr/lib/mono/gtk-sharp/gtk-sharp.dll'
Log:

Compilation failed: 5 error(s), 0 warnings

it's normal, i'm under windows => where i can change that?


Last question : does anyone know how to use glade (i have a win32 port) 
with .net?

Thanks all

Gaetan -- http://www.xeberon.net/gaetan/