Monday, October 26, 2009

Building GNOME from source code

Reference: http://live.gnome.org/Jhbuild

First download and install Jhbuild as mentioned at:
http://live.gnome.org/Jhbuild

Modify the configuration file like this:

# -*- mode: python -*-

# edit this file to match your settings and copy it to ~/.jhbuildrc

# if you have a GNOME git account, uncomment this line
# repos['git.gnome.org'] = 'ssh://user@git.gnome.org/git/'

modulesets_dir = '/home/tuxnda/work/dev/jhbuild/modulesets/'
# what module set should be used. The default at the moment is 'gnome-2.26',
# but it can be any of the files in the modulesets directory, or even
# the URL of a module set file on a web server.
# moduleset = 'gnome-2.26'
moduleset = 'gnome-2.30'

# A list of the modules to build. Defaults to the Gnome Desktop and
# developer platform.
# modules = [ 'meta-gnome-desktop' ]

# what directory should the source be checked out to?
checkoutroot = os.path.expanduser('~/work/dev/gnome/checkout/gnome2')

# the prefix to configure/install modules to (must have write access)
prefix = os.path.expanduser('~/work/dev/gnome')

# extra arguments to pass to all autogen.sh scripts
# to speed up builds of gnome2, try '--disable-static --disable-gtk-doc'
# it is also possible to set CFLAGS this way, 'CFLAGS="-g -O2"' for example
#autogenargs=''

# On SMP systems you may use something like this to improve compilation time:
# be aware that not all modules compile correctly with make -j2
#makeargs = '-j2'




Build the basic bootstrap system for building gnome:

$ jhbuild bootstrap -c -a --ignore-system


Now build gnome:

$ jhbuild build


No comments: