Sunday, 30 October 2011

Building Gedit in Fedora

Yesterday, after struggling, I was finally able to build Gedit on my computer :)

First of all, I installed some devel stuff - some of them may not be strictly necessary, but they won't do you any harm either.


# devel stuff
yum install -y @development-tools @development-libs @x-software-development @gnome-software-development iso-codes-devel cmake libffi-devel perl-XML-Simple libtool-ltdl-devel libudev-devel fuse-devel libusb-devel libexif-devel libatasmart-devel libsmbclient-devel webkitgtk-devel cups-devel pulseaudio-libs-devel xcb-util-devel libxslt-devel gnome-doc-utils udisks-devel avahi-devel avahi-ui-devel libstdc++-static
yum install -y man-pages
yum install -y devhelp gitg git-svn valgrind meld ghex gperf cppcheck
yum install -y kernel-devel
yum install -y rpmdevtools
yum install -y @java @java-development @eclipse
yum install -y js


I followed the steps here to install Jhbuild.
My .jhbuildrc files goes here:


# -*- mode: python -*-

#repos['git.gnome.org'] =

#use_local_modulesets = True

moduleset = 'gnome-world-3.2'
modules = [
'gedit',
]

build_policy = 'all'

skip = [
'libxml2',
'libxslt',
'libgpg-error',
'libgcrypt',
'rarian',
'expat',
'dbus',
'iso-codes',
'hal',
'avahi',
'NetworkManager',
'mozilla',
'mono',
'ekiga',
'sqlite3',
'WebKit',
'gstreamer','liboil','gst-plugins-base',
'gjs','gnome-js-common','seed',
]

# the prefix to install things to (user must have write access)
prefix = '/opt/gnome'

checkoutroot = os.path.join(os.environ['HOME'], 'git', 'gnome')

# arguments to pass to autogen script
autogenargs='--enable-maintainer-mode --disable-static --disable-gtk-doc'

os.environ['INSTALL'] = os.path.join(os.environ['HOME'],
'bin', 'install-check')

# parallel build
os.environ['MAKEFLAGS'] = '-j2'

# flags useful for sysprof, gdb etc
os.environ['CFLAGS'] = '-fno-omit-frame-pointer -g -O0 -fno-inline'

addpath('ACLOCAL_FLAGS', '/usr/share/aclocal')
addpath('PKG_CONFIG_PATH', '/usr/lib/pkgconfig')
addpath('PKG_CONFIG_PATH', '/usr/local/lib/pkgconfig')
addpath('PKG_CONFIG_PATH', '/usr/share/pkgconfig')
addpath('PKG_CONFIG_PATH', '/usr/local/share/pkgconfig')
addpath('GI_TYPELIB_PATH', '/opt/gnome/lib64/girepository-1.0')
addpath('PYTHONPATH', '/opt/gnome/lib64/python2.7/site-packages/gtk-2.0')

module_autogenargs['glib'] = '--enable-debug=yes --enable-dtrace=yes --enable-systemtap=yes --disable-visibility'
module_autogenargs['ORBit2'] = '--enable-purify'
module_autogenargs['gimp'] = '--disable-print --enable-python'
module_autogenargs['totem'] = '--disable-mozilla'
module_autogenargs['epiphany'] = autogenargs + ' --with-engine=webkit'
module_autogenargs['libunique'] = '--disable-introspection'
module_autogenargs['poppler'] = '--disable-poppler-qt --disable-poppler-qt4'
module_autogenargs['evince'] = '--enable-nautilus=no'
module_autogenargs['vte-3'] = '--enable-introspection'
module_autogenargs['dconf'] = '--disable-editor'
module_autogenargs["libpeas"] = autogenargs + " --disable-vala"

branches['glib'] = 'master'
branches['gtk+'] = 'master'

After that, I checked everything was ok with:

jhbuild update gedit

Then, I ran:

jhbuild build gedit

Lastly,I ran:

jhbuild build dconf

And that was it :)

No comments:

Post a Comment