Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtk-sharp « web - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0100f66732732078e93fbd055e16cb70782377b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
* Gtk#

	<a href="http://gtk-sharp.sourceforge.net">Gtk#</a> (Gtk
	sharp) is a set of C# language bindings for the
	<a href="http://www.gtk.org">Gtk+</a> toolkit and other
	libraries that are part of the 
	<a href="http://www.gnome.org">GNOME</a> platform . 

* Wiki

	There is a <a
	href="http://www.nullenvoid.com/gtksharp/wiki/index.php/">Gtk#
	Wiki</a>.  You are encouraged to contribute to it.

** API of Gtk#

	The Gtk# API is documented using the ECMA XML document format, you can read
	more about it <a href="documentation.html">here</a>.  You can
	also use the MonoDoc tool that ships with Gtk# documentation.

** Where to learn more.

	Visit the official site for the <a href="http://gtk-sharp.sourceforge.net">Gtk# Project</a>.
	The <a href="http://www.go-mono.org/faq.html">Mono FAQ</a> has some useful
	information too.
	
** GTK# On Linux

<p>Where to get distributions of GTK# for Linux: 
	<ul>
		<li><a href="http://gtk-sharp.sourceforge.net">RPMs</a></li>
		<li><a href="http://www.debianplanet.org/mono/">Debs</a></li>
	</ul>

<p>Buidling on Linux:

<ul>
	<li>Get GTK# source from <a href="http://gtk-sharp.sourceforge.net">Gtk# Project</a>.</li>
	<li>run ./autogen.sh --prefix=my_mono_installation_prefix</li>
	<li>make</li>
	<li>make install</li>
</ul> 

** GTK# On Windows

<p>Look at our Wiki for installation instructions <a href="http://www.nullenvoid.com/gtksharp/wiki/index.php/InstallingBeginnersGuide">here</a>


<p>If you want to build GTK# yourself on Windows:

<p>To build gtk# under windows, you will need the following:

<ul>
 <li>cygwin from <a href="http://www.cygwin.com/">here</a>  When installing Cygwin via setup.exe, 
   by default binutils and other tools do not get installed; you have to make 
   sure to select these items.  Just make
   sure Base and Development are set to Install.</li>
 <li>Mono 0.17 or later from <a href="http://www.go-mono.com/download.html">here</a>
  You can use Windows Setup Wizard (NT/2000/XP).</li>
 <li>GTK+ 2.0 (and dependencies).  You can obtain gtk+ 2.0 by either of the
following:
	<ul>
		<li>You can get a Windows Installer at:
	          <a href="http://www.dropline.net/gtk/download.php">here</a> </li>
		<li>or get the separate binary and dev/lib packages at
           at <a href="http://www.gimp.org/~tml/gimp/win32/downloads.html">here</a> </li>
        <li>or binary package from Dev-C++ site <a href="http://www.bloodshed.net/dev/packages/gtk.html">here</a> </li>
		<li>or get Gtk4Win <a href="http://wingtk.sourceforge.net/index.html">here</a> </li>
		<li>or the source at <a href="http://www.gtk.org/">here</a> </li>
     </ul>
  </li>
 <li>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.</li>
 <li>Microsoft .NET Framework at
  <a href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/976/msdncompositedoc.xml&frame=true">here</a> </li>


<p>Environment Variables to set:
<ul>
<li>PATH - set to your mono installation bin and lib path.
  For example, my mono installation prefix is:
<pre>
F:/cygwin/home/DanielMorgan/mono/install
</pre>
  <p>So, I would set my PATH in the Windows Control Panel as:
<pre>
F:/cygwin/home/DanielMorgan/mono/install/bin;F:/cygwin/home/DanielMorgan/mono/install/lib</li>
</pre>
</li>
<li>LD_LIBRARY_PATH - set to your mono installation lib path</li>
<li>PKG_CONFIG_PATH - set to your mono installation lib/pkgconfig path, such
 as,
<pre>
  F:/cygwin/home/DanielMorgan/mono/install/lib/pkgconfig</li>
</pre>

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

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

 <p>After that it finishes succesfully, you run make with the makefile.win32
 like:
<pre>
 make -f makefile.win32
</pre>

 <p>After that finishes succesfully, you can copy to your mono installation lib
 path like:
<pre>
 cp */*.dll ~/mono/install/lib
</pre>
</ul>

<p>The pkg-config files for
gtk+ 2.0 and dependencies will need to be set correctly if they haven't
already been.

<p>Look in your mono installation/lib/pkgconfig, such as,
<pre>
F:/cygwin/home/DanielMorgan/mono/install/lib/pkgconfig
</pre>

<p>You will find files like: gtk+-2.0.pc

<p>Edit the line that says

<pre>
 prefix=something
</pre>

<p>And set it to your mono installation prefix, such as,

<pre>
 prefix=F:/cygwin/home/DanielMorgan/mono/install
</pre>

<p>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
<a href="http://www.gimp.org/~tml/gimp/win32/downloads.html">here</a>

** GTK# On FreeBSD

 TODO.  Any volunteers?

** GTK# On Solaris

 TODO.  Any volunteers?

** GTK# On AIX

 TODO.  Any volunteers?