[Gtk-sharp-list] Mono Beta 3 and GTK# on Windows

Daniel Morgan danielmorgan@verizon.net
Sun, 20 Jun 2004 02:27:52 -0400


To get Mono Beta 3 and GTK# to work on Windows:
(beware of word-wrapped links)

1. Download the packages:

   a. download Mono Beta 3 Windows Installer: 
      mono-Beta3-win32-1.exe

      http://www.go-mono.com/download.html

   b. download GTK# 0.93 Windows Installer: 
      gtk-sharp-0.93-setup.exe

      http://sourceforge.net/project/showfiles.php?group_id=40240 

   c. download the GTK+ 2.2.4 Windows Runtime Installer:
      GTK-Runtime-Environment-2.2.4-3.exe
      http://www.dropline.net/gtk/download.php

2. Install the packages:

   a. install Mono to C:\Mono-Beta3

   b. install GTK# to C:\GTK#

   c  install GTK+ to C:\GTK+2

3. Apppend to your PATH environment variable:
   
   a.  C:\GTK+2\lib
   
   b.  C:\GTK#

4. put the GTK# assemblies in the Mono GAC:

   a. go to a MS DOS shell

   b. C:\Mono-Beta3\bin\setmonopath.bat
   
   c. C:\Gtk#\sample>gacutil -i C:\GTK#\atk-sharp.dll

   d. C:\Gtk#\sample>gacutil -i C:\GTK#\glade-sharp.dll

   e. C:\Gtk#\sample>gacutil -i C:\GTK#\glib-sharp.dll

   f. C:\Gtk#\sample>gacutil -i C:\GTK#\gdk-sharp.dll

   g. C:\Gtk#\sample>gacutil -i C:\GTK#\gtk-sharp.dll

   h. C:\Gtk#\sample>gacutil -i C:\GTK#\pango-sharp.dll

   i. C:\Gtk#\sample>gacutil -l

      You will should see among the Mono assemblies the gtk# assemblies
in the GAC:
      ...
      atk-sharp, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=966dcdda72acf42d
      ...
      gdk-sharp, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=966dcdda72acf42d
      glade-sharp, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=966dcdda72acf42d
      glib-sharp, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=966dcdda72acf42d
      gtk-sharp, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=966dcdda72acf42d
      ...
      pango-sharp, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=966dcdda72acf42d
      ...

5. Copy over the GTK# Runtime to Mono

   a. Copy the gtk# assemblies to C:\Mono-Beta3\lib
      
      xcopy C:\Gtk#\*.dll C:\Mono-Beta3\lib
   
   b. Copy the gtk+ runtime to C:\Mono-Beta3\lib

      xcopy C:\gtk+2\*.* E:\test /s

6. Test

   C:
   cd \Gtk#\sample
   mono TreeViewDemo.exe
   
Now, if someone wants to create a Windows Installer that combines all
three installers, that would be great!

Daniel