- Install all the things jhbuild won't install for you.
$sudo apt-get install build-essential $sudo apt-get install git $sudo apt-get install gettext xsltproc docbook-xml docbook-xsl $sudo apt-get install apt-file autopoint
- Install jhbuild from git (if you have previously installed from apt-get, use apt-get remove jhbuild to remove it)
$git clone git://git.gnome.org/jhbuild $cd jhbuild $./autogen.sh $make $make install $echo PATH=$PATH:~/.local/bin >> ~/.bashrc
- Prepare your first .jhbuildrc config file.
$cp examples/sample.jhbuildrc ~/.jhbuildrc
- Edit ~/.jhbuildrc file
- Search for the line starting with "prefix" and change the directory to a writable one (the default /opt/gnome is not writable by default on ubuntu it seems)
- For evince, you need to add the following lines to ~/.jhbuildrc
skip=['libnotify','polkit','nautilus','vala'] module_autogenargs['evince'] = autogenargs + ' --enable-debug --disable-nautilus'
- Install dependencies using the new "sysdeps" command of jhbuild
$jhbuild sysdeps --install
- Building evince
$jhbuild build evince --ignore-suggests --nodeps
$jhbuild buildone libsecret
and then resume the compilation of evince. If you want, you could do, at this stage
$jhbuild buildone evinceto trigger just the compilation of evince and NONE of its dependencies.
We use --ignore-suggests to ignore compiling a lot of modules that are not really important for developping with evince.
If everything goes right, you should have evince 3.8 compiled. If you want master, you need to choose the "gnome-suites-core-3.10" moduleset
Hey,
ReplyDeleteI am trying to follow the above steps for getting evince on my computer. When I encounter any of the steps that include cloning git code I am not able to proceed.
I get the following error:
Cloning into 'jhbuild'...
fatal: unable to connect to git.gnome.org:
git.gnome.org[0: 209.132.180.184]: errno=Connection refused
Do I need to make any configuration settings to get this working?
I don't know if this is a problem but I am behind a proxy server. Does it matter?
I am able to clone git repositories using http:// or https:// git clone commands
Or is it any git.gnome.org specific issue?
Thank you very much in advance..