FW: [Gtk-sharp-list] Compile gtk# on Windows

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

For the GTK+ 2.0 dependencies, I failed to mention the pkg-config files for
gtk+ 2.0 and dependencies will need to be set correctly if they haven't
already been.

Look in your mono installation/lib/pkgconfig, such as,


you will find files like:


Edit the line that says


And set it to your mono installation prefix, such as,


Do this for all the .pc files in that directory.  If there are not any, then
you will need to create them.  Or get them from somewhere like the dev
packages at

-----Original Message-----
From: gtk-sharp-list-admin@ximian.com
[mailto:gtk-sharp-list-admin@ximian.com]On Behalf Of Daniel Morgan
Sent: Sunday, December 22, 2002 11:27 PM
To: Herbert Sauro; gtk-sharp-list@ximian.com
Subject: RE: [Gtk-sharp-list] Compile gtk# on Windows

What I tell you may not be correct, but here's my suggestion:

To build gtk# under windows, you will need the following:
- cygwin from http://www.cygwin.com/
- Mono 0.17 or later from http://www.go-mono.com/download.html
  You can use Windows Setup Wizard (NT/2000/XP).
- GTK+ 2.0 (and dependencies).  You can obtain gtk+ 2.0 by either of the
  * You can get a Windows Installer at:
  * get the separate binary and dev/lib packages at
  at http://www.gimp.org/~tml/gimp/win32/downloads.html
  * the source at
- binary distriubtion of a current web browser
  like Internet Explorer 4.0, Mozilla 1.0, or Netscape 7.0 which
  includes things like msvcrt.dll.
- Microsoft .NET Framework at


If you are running Windows 95/98/ME, then you will need Unicode support.
Look in
mono-list archives for information about how to get
Mono to work on Windows 9x.

Environment Variables to set:
- PATH - set to your mono installation bin and lib path.
  For example, my mono installation prefix is:
  So, I would set my PATH in the Windows Control Panel as:

- LD_LIBRARY_PATH - set to your mono installation lib path
- PKG_CONFIG_PATH - set to your mono installation lib/pkgconfig path, such

If you got the gtk-sharp source, cd to the gtk-sharp directory, type:
$ ./autogen.sh --prefix=~/mono/install

Set your --prefix= to whatever your mono installation prefix is located.
This will take awhile to go through the ./autogen.sh and ./configure...

After that it finishes succesfully, you run make with the makefile.win32
$ make -f makefile.win32

After that finishes succesfully, you can copy to your mono installation lib
path like:
$ cp */*.dll ~/mono/install/lib

-----Original Message-----
From: gtk-sharp-list-admin@ximian.com
[mailto:gtk-sharp-list-admin@ximian.com]On Behalf Of Herbert Sauro
Sent: Thursday, December 12, 2002 9:22 PM
To: 'gtk-sharp-list@ximian.com'
Subject: [Gtk-sharp-list] Compile gtk# on Windows

I'd don't work with Linux.

Has anyone got detailed instructions on how to compile gtk# under windows?
Even better how about distributing windows binaries just as they do for

Herbert Sauro

There are only three kinds of people in this world; those that can count,
and those that can't

Dr Herbert M Sauro
Keck Graduate Institute
535 Watson Drive
CA, 91711
Tel: USA 1-909-607-0377
Email : hsauro@kgi.edu <mailto:hsauro@kgi.edu>
Web: www.sys-bio.org <http://www.sys-bio.org>

Gtk-sharp-list maillist  -  Gtk-sharp-list@ximian.com

Gtk-sharp-list maillist  -  Gtk-sharp-list@ximian.com