Dependencies

From Pitivi wiki
Jump to: navigation, search

This page is intended for contributors wishing to work with the development version. Otherwise, take a look at the download page on the main website.

To build Pitivi, you will need the latest devel packages for gstreamer, gstreamer-python, and all related packages. Generally speaking, you will need:

Specifically, if you want to know the exact versions of our current dependencies, have a look at the top of check.py (the "HARD_DEPS" variable).


You can use the following commands to do that in one go:

Contents

On Fedora

Make sure you have enabled rpmfusion before running the script further below.

sudo yum install python-devel python3-devel python3-cairo-devel  # for the "gobject-introspection" module
sudo yum install bison cairo-gobject-devel clutter-gtk flex intltool itstool libtool libxml2-devel gcc gcc-c++ gnome-common gnome-doc-utils gtk-doc gstreamer*-devel pygobject3-devel yasm-devel gdk-pixbuf2-devel yelp-tools python3-numpy pycanberra

And then, if you need to build GStreamer (quite likely; pitivi/check.py or the environment script will tell you which version is required), you need to ensure that you have all the required dependencies to build the various GStreamer plugins. See the next section below.

GStreamer's dependencies

For some reason it seems that yum-builddep is not smart enough to handle a list of packages as an argument (it will only take the first argument and ignore the rest?). You can use this very silly python script to solve your depedencies (copy-paste it into a .py file, make it executable and run it as root):

#!/usr/bin/env python
import sys, os, pwd

print "Will get the build deps from gstreamer1 packages"
duck = ["gstreamer1",
    "gstreamer1-plugins-base",
    "gstreamer1-plugins-good",
    "gstreamer1-plugins-bad",
    "gstreamer1-plugins-bad-nonfree",
    "gstreamer1-plugins-ugly",
    "gstreamer-python",  # there are no 1.x packages for it...
    "gstreamer1-libav",
    "gnonlin", "pitivi"]

user = pwd.getpwuid(os.getuid())[0]
if user =="root":
    for wat in duck:
        os.system("yum-builddep -y %s" % wat)
else:
    print "You must be root to run this script. Yeah, really."
    sys.exit(1)

On Ubuntu/Debian

You can simply paste the following, which should (hopefully) solve your dependencies. This was reportedly working on Ubuntu 12.10 but package names change all the time, so if something is missing (or you have a better way to solve the deps), please tell us about it.

# Basic build tools:
sudo apt-get install git build-essential automake libtool itstool gtk-doc-tools gnome-common gnome-doc-utils yasm flex bison

# Stuff related to introspection, GTK, canvases, and various other dependencies:
sudo apt-get install libgirepository1.0-dev python-dev python-gi-dev \
python-cairo-dev libcairo2-dev python-gi-cairo \
libgdk-pixbuf2.0-dev libpulse-dev libgtk-3-dev \
libclutter-1.0-dev libclutter-gtk-1.0-dev \
libclutter-gst-2.0-dev gir1.2-clutter-gst-2.0 \
libxml2-dev python-numpy

# GStreamer 1.x, if you're lucky and your distro packages are recent enough:
sudo apt-get install gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-alsa gstreamer1.0-pulseaudio \
libgstreamer-plugins-bad1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libgstreamer1.0-0

# GStreamer plugins' full set of dependencies to build all the codecs:
sudo apt-get build-dep gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly

In a Virtual Env

If you are using python virtual environments to do your development, you aren't going to be able to use the python library packages listed above for your install, and the packages are not available via install tools. Install everything *else* listed above (keep python-dev)and then install the following packages.

replace (ENV) with the path to your virtual env (e.g. /home/aleks/src/python-def/ )

WARNING: the versions used here may change, but the general build process should still hold. If you get errors about version mismatches, just grab the appropriate ones and start over.

PyCairo

Download py2cairo-1.10.0 from the appropriate place, extract it, then:

./configure --prefix=(ENV)
make && make install

I don't recall any special overrides, but depending on your distro, you may need to do something like this if configure complains that it can't find cairo.h:

CFLAGS=-I/usr/include/cairo/ ./configure --prefix=(ENV)
make && make install

PyGObject

Download pygobject-3.0.0 from the appropriate place, extract it, cd into it, then:

PYCAIRO_LIBS=(ENV)/include/pycairo/ PYCAIRO_CFLAGS=-I(ENV)/pycairo/ CFLAGS=-I/usr/include/cairo/ ./configure --prefix=(ENV)
make && make install

PyGST

grab gst-python from git, cd to it, ./autogen.sh This is going to FAIL. after that, do this:

PYGOBJECT_LIBS=(ENV)/include/pygobject-3.0/ PYGOBJECT_CFLAGS=-I(ENV)/include/pygobject-3.0/ ./configure --prefix=(ENV)
make && make install
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox