[Gtk-sharp-list] Compiling GTK# under windows 2000

Daniel Morgan danmorg@sc.rr.com
Sun, 22 Dec 2002 13:23:41 -0500


Look in your etc/mono/config file for the gtk+ DLLs.  You need to swap what
is set to the dll with what is set to the target.

Here is my etc/mono/config file found at
F:/cygwin/home/DanielMorgan/mono/install

configuration>
	<dllmap dll="cygwin1.dll" target="libc.so.6" />
	<dllmap dll="libc" target="libc.so.6" />
	<dllmap dll="libxslt.dll" target="libxslt.so" />
	<dllmap dll="libmySQL.dll" target="libmysqlclient.so" />
	<dllmap dll="odbc32.dll" target="libodbc.so" />
	<dllmap dll="libglib-2.0.so" target="libglib-2.0-0.dll" />
	<dllmap dll="libgobject-2.0.so" target="libgobject-2.0-0.dll" />
	<dllmap dll="libpango-1.0.so" target="libpango-1.0-0.dll" />
	<dllmap dll="libatk-1.0.so" target="libatk-1.0-0.dll" />
	<dllmap dll="libgdk-x11-2.0.so" target="libgdk-win32-2.0-0.dll" />
	<dllmap dll="libgdk-pixbuf-2.0.so" target="libgdk_pixbuf-2.0-0.dll" />
	<dllmap dll="libgtk-x11-2.0.so" target="libgtk-win32-2.0-0.dll" />
	<dllmap dll="libgtksharpglue.so" target="gtksharpglue.dll" />
</configuration>

Also, you will get errors like that if you don't have the dependencies for
gtk 2.0, such as, glib 2.0, etc...

-----Original Message-----
From: gtk-sharp-list-admin@ximian.com
[mailto:gtk-sharp-list-admin@ximian.com]On Behalf Of Carsten Bock
Sent: Sunday, December 22, 2002 1:01 PM
To: GTK# List
Subject: Re: [Gtk-sharp-list] Compiling GTK# under windows 2000



>>I generate the code compiling the generator, but all the generated classes
>>use "gtk-x11-2.0" (and the win version is "gtk-win32-2.0").
>>
>>And more: How do I compile all .cs files into libraries that I can use
into
>>Gtk# projects?
>>
>>I need simple steps for this.
>
>
> make -f makefile.win32
>

Does this work, when you want to use GTK# under Windows? I tested it
with GTK# 0.6 and the current cvs version, but when i run e.g.
monomono gtk-hello-world.exe
i'll get
** (gtk-hello-world.exe:604): WARNING **: Failed to load library
libgtk-x11-2.0.
so.dll (libgtk-x11-2.0.so): Das angegebene Modul wurde nicht gefunden.
(Module not found)

I haven't looked at the source of the latest cvs code, but a few days
ago "mapdllnames.pl" didn't changed all lib names to win32 names

 >>>
[DllImport("gtk-x11-2.0",
EntryPoint="gtk_text_view_window_to_buffer_coords")]
(from gtk/TextView.custom)

[DllImport ("gtk-x11-2.0")]
(Space betwwen "DllImport" and "(" )

When i fix this, an run e.g. "mono gtk-hello-world.exe", it still wants
the gtk-x11-2.0 lib (although i couldn't find a reference to this lib in
  gtk-sharp.dll)
<<<

I use mono-0.17.


BTW: Will/does the glade lib/support work under Win32? (I'm still amazed
how easy it is to use with mono/Gtk#, great work)

ciao,
Carsten


_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@ximian.com
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list