gtk-sharp 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. * Gtk#
  2. <a href="http://gtk-sharp.sourceforge.net">Gtk#</a> (Gtk
  3. sharp) is a set of C# language bindings for the
  4. <a href="http://www.gtk.org">Gtk+</a> toolkit and other
  5. libraries that are part of the
  6. <a href="http://www.gnome.org">GNOME</a> platform .
  7. * Wiki
  8. There is a <a
  9. href="http://www.nullenvoid.com/gtksharp/wiki/index.php/">Gtk#
  10. Wiki</a>. You are encouraged to contribute to it.
  11. ** API of Gtk#
  12. The Gtk# API is documented using the ECMA XML document format, you can read
  13. more about it <a href="documentation.html">here</a>. You can
  14. also use the MonoDoc tool that ships with Gtk# documentation.
  15. ** Where to learn more.
  16. Visit the official site for the <a href="http://gtk-sharp.sourceforge.net">Gtk# Project</a>.
  17. The <a href="http://www.go-mono.org/faq.html">Mono FAQ</a> has some useful
  18. information too.
  19. ** GTK# On Linux
  20. <p>Where to get distributions of GTK# for Linux:
  21. <ul>
  22. <li><a href="http://gtk-sharp.sourceforge.net">RPMs</a></li>
  23. <li><a href="http://www.debianplanet.org/mono/">Debs</a></li>
  24. </ul>
  25. <p>Buidling on Linux:
  26. <ul>
  27. <li>Get GTK# source from <a href="http://gtk-sharp.sourceforge.net">Gtk# Project</a>.</li>
  28. <li>run ./autogen.sh --prefix=my_mono_installation_prefix</li>
  29. <li>make</li>
  30. <li>make install</li>
  31. </ul>
  32. ** GTK# On Windows
  33. <p>Look at our Wiki for installation instructions <a href="http://www.nullenvoid.com/gtksharp/wiki/index.php/InstallingBeginnersGuide">here</a>
  34. <p>If you want to build GTK# yourself on Windows:
  35. <p>To build gtk# under windows, you will need the following:
  36. <ul>
  37. <li>cygwin from <a href="http://www.cygwin.com/">here</a> When installing Cygwin via setup.exe,
  38. by default binutils and other tools do not get installed; you have to make
  39. sure to select these items. Just make
  40. sure Base and Development are set to Install.</li>
  41. <li>Mono 0.17 or later from <a href="http://www.go-mono.com/download.html">here</a>
  42. You can use Windows Setup Wizard (NT/2000/XP).</li>
  43. <li>GTK+ 2.0 (and dependencies). You can obtain gtk+ 2.0 by either of the
  44. following:
  45. <ul>
  46. <li>You can get a Windows Installer at:
  47. <a href="http://www.dropline.net/gtk/download.php">here</a> </li>
  48. <li>or get the separate binary and dev/lib packages at
  49. at <a href="http://www.gimp.org/~tml/gimp/win32/downloads.html">here</a> </li>
  50. <li>or binary package from Dev-C++ site <a href="http://www.bloodshed.net/dev/packages/gtk.html">here</a> </li>
  51. <li>or get Gtk4Win <a href="http://wingtk.sourceforge.net/index.html">here</a> </li>
  52. <li>or the source at <a href="http://www.gtk.org/">here</a> </li>
  53. </ul>
  54. </li>
  55. <li>binary distriubtion of a current web browser
  56. like Internet Explorer 4.0, Mozilla 1.0, or Netscape 7.0 which
  57. includes things like msvcrt.dll.</li>
  58. <li>Microsoft .NET Framework at
  59. <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>
  60. <p>Environment Variables to set:
  61. <ul>
  62. <li>PATH - set to your mono installation bin and lib path.
  63. For example, my mono installation prefix is:
  64. <pre>
  65. F:/cygwin/home/DanielMorgan/mono/install
  66. </pre>
  67. <p>So, I would set my PATH in the Windows Control Panel as:
  68. <pre>
  69. F:/cygwin/home/DanielMorgan/mono/install/bin;F:/cygwin/home/DanielMorgan/mono/install/lib</li>
  70. </pre>
  71. </li>
  72. <li>LD_LIBRARY_PATH - set to your mono installation lib path</li>
  73. <li>PKG_CONFIG_PATH - set to your mono installation lib/pkgconfig path, such
  74. as,
  75. <pre>
  76. F:/cygwin/home/DanielMorgan/mono/install/lib/pkgconfig</li>
  77. </pre>
  78. <p>If you got the gtk-sharp source, cd to the gtk-sharp directory, type:
  79. <pre>
  80. ./autogen.sh --prefix=~/mono/install
  81. </pre>
  82. <p>Set your --prefix= to whatever your mono installation prefix is located.
  83. This will take awhile to go through the ./autogen.sh and ./configure...
  84. <p>After that it finishes succesfully, you run make with the makefile.win32
  85. like:
  86. <pre>
  87. make -f makefile.win32
  88. </pre>
  89. <p>After that finishes succesfully, you can copy to your mono installation lib
  90. path like:
  91. <pre>
  92. cp */*.dll ~/mono/install/lib
  93. </pre>
  94. </ul>
  95. <p>The pkg-config files for
  96. gtk+ 2.0 and dependencies will need to be set correctly if they haven't
  97. already been.
  98. <p>Look in your mono installation/lib/pkgconfig, such as,
  99. <pre>
  100. F:/cygwin/home/DanielMorgan/mono/install/lib/pkgconfig
  101. </pre>
  102. <p>You will find files like: gtk+-2.0.pc
  103. <p>Edit the line that says
  104. <pre>
  105. prefix=something
  106. </pre>
  107. <p>And set it to your mono installation prefix, such as,
  108. <pre>
  109. prefix=F:/cygwin/home/DanielMorgan/mono/install
  110. </pre>
  111. <p>Do this for all the .pc files in that directory. If there are not any, then
  112. you will need to create them. Or get them from somewhere like the dev
  113. packages at
  114. <a href="http://www.gimp.org/~tml/gimp/win32/downloads.html">here</a>
  115. ** GTK# On FreeBSD
  116. TODO. Any volunteers?
  117. ** GTK# On Solaris
  118. TODO. Any volunteers?
  119. ** GTK# On AIX
  120. TODO. Any volunteers?