HACKING 2.03 KB
Newer Older
1 2 3 4
If you want to hack on the Gtk+ project, it will make you life easier
to have the following packages installed:

	- GNU autoconf 2.12
Owen Taylor's avatar
Owen Taylor committed
5 6
	- GNU automake 1.3
	        (Beta releases are at ftp://ftp.cygnus.com/pub/tromey)
7
	- GNU libtool 1.2b
8
	- indent (GNU indent 1.9.1 is known good)
9

Owen Taylor's avatar
Owen Taylor committed
10
These should be available by ftp from ftp.gnu.org or any of the
11 12
fine GNU mirrors.  Beta software can be found at alpha.gnu.org.

13 14 15 16 17 18 19 20
In order to get CVS gtk+ installed on your system, you need to have
the most recent CVS version of glib installed as well.
The installation process of glib is similar to that of gtk+, but
needs to be fulfilled prior to installation of gtk+.

To compile a CVS version of gtk+ on your system, you will need to take
several steps to setup the tree for compilation.  You can do all these
steps at once by running:
21

22 23 24 25 26
        cvsroot/gtk+# ./autogen.sh
   
Basically this does the following for you:

  	cvsroot/gtk+# aclocal; automake; autoconf
27

28 29
        The above commands create the "configure" script.  Now you
	can run the configure script in cvsroot/gtk+ to create all
30
	the Makefiles.
31 32 33 34 35 36 37 38 39

Before running autogen.sh or configure, make sure you have libtool 
in your path.  

Note that autogen.sh runs configure for you.  If you wish to pass
options like --prefix=/usr to configure you can give those options
to autogen.sh and they will be passed on to configure.

If at all possible, please use CVS to get the latest development version of
40
gtk+ and glib.  You can do the following to get glib and gtk+ from cvs:
41

42 43 44
   $ export CVSROOT=':pserver:anonymous@cvs.gimp.org:/debian/home/gnomecvs'
   $ cvs login
     (there is no password, just hit return)
45
   $ cvs -z9 checkout glib
46
   $ cvs -z9 checkout gtk+
47 48 49

Please submit patches to the gtk-list@redhat.com mailing list (you must
subscribe before you post, e-mail gtk-list-request@redhat.com with a
50 51 52 53
subject of "subscribe"). All kinds of contributions are accepted.
Patches that you wish to go into the distribution should also be uploaded 
to ftp://ftp.gimp.org/incoming.  Follow the rules there for naming your
patches. 
54