Skip to content

Latest commit

 

History

History
69 lines (42 loc) · 2.5 KB

README.md

File metadata and controls

69 lines (42 loc) · 2.5 KB

Building Evince

Evince is a document viewer (tipically for PDF/DVI/PS files among others).

Preparing the environment

Debian and Ubuntu

In a Debian/Ubuntu machine, you have to install the dependencies to build evince and install jhbuild.

The following steps have been tested to work well in Debian Wheezy and Jessie (Testing), and Ubuntu 12.04 (Precise) and 13.04 (Rarian) after a clean install. The latest Ubuntu is 20.04, so they may or may not work well (install more/less applications or libraries than needed).

To install the basic dependencies:

$ sudo apt-get build-dep evince gobject-introspection at-spi2-core
$ sudo apt-get install jhbuild curl yelp-tools gperf ragel cmake libgcrypt11-dev libcroco3-dev  icon-naming-utils valac

Fedora 19

The following steps have been tested to work well in Fedora 19 after a clean install.

To install the basic dependencies:

$ sudo yum-builddep evince gobject-introspection at-spi2-core
$ sudo yum install expat-devel gperf gcc-c++ ragel cmake libgcrypt-devel icon-naming-utils libcroco-devel vala

OpenSUSE 12.3

The following steps have been tested to work well in Fedora 12.3 (GNOME edition) after a clean install.

Enable repository for source code packages:

$ sudo zypper modifyrepo --enable repo-source

To install the basic dependencies:

$ sudo zypper si -d evince gobject-introspection at-spi2-core libgtk-3-0
$ sudo zypper install jhbuild gnome-common libexpat-devel gperf ragel cmake libgcrypt-devel icon-naming-utils libcroco-dev vala

Other distributions

For other distributions, you can use the equivalent of apt-get build-dep, yum-builddep or zypper si -d. For more detailed steps, continue reading the following sections.

Building Evince and its dependencies

Retrieve the configuration file to use useThen, prepare to build Evince in ~/code:

$ mkdir -p ~/code/evince/checkout; cd ~/code
$ curl https://raw.githubusercontent.com/gpoo/jhbuild/master/evince.modules
$ curl https://raw.githubusercontent.com/gpoo/jhbuild/master/jhbuildrc-evince

Finally, grab the configuration file for jhbuild and build the basic dependencies for evince (poppler, a newer glib, evince itself, etc.):

$ jhbuild -f jhbuildrc-evince build evince
$ jhbuild -f jhbuildrc-evince run evince

The source code will be downloaded to your $HOME/code/evince/checkout and installed in $HOME/code/evince/install.