Building Pitivi and its dependencies

From Pitivi wiki
(Redirected from Building with GES)
Jump to: navigation, search

This is a set of instructions for compiling GES, PyGST, GStreamer 1.0 and run pitivi on top of GES. This assumes the following:

  • You know minimally how to use Git
  • You are reasonably familiar with compiling and resolving dependencies. Make sure to take a look at the instructions on that page before continuing, it will save you a lot of time!
  • You have a recent Linux distribution

This makes sense if you want the best performance or to make/test changes to dependencies such as the various GStreamer/GES components. Looking for an easier way? See "Setup development environment" instead.

The core developer's way

This is the official way of getting your environment up and running. This is what we use for testing.

  1. Solve the Dependencies.
  2. Get this script, save it, make it executable and run it:

The script builds everything into a target directory ($MYPITIVI which defaults to ~/pitivi-git), sets up all the environment and drops you into a shell ready to start your own build of pitivi.

The first time you run it (if the target directory does not exists) the directory is created and all the git repositories and all the remotes for gst-python, gst-editing-services and pitivi are set and pitivi is build. If gstreamer 1.0 is not detected on your system, it will build it for you as well.

On subsequent runs, running this script will just set up your environment variables and drop you into a shell to start your own build of pitivi. If you want to catch up with new development you can re-run the script with the --build parameter.

Note that "--build" will not force everything to be rebuilt all the time; if you want to do that, use the --force-autogen parameter instead (don't use both parameters!). This is especially useful if you did not solve all the optional dependencies to have a complete GStreamer experience (for example, missing MP3 support).

Make sure to exit the shell (with ctrl+D or command `exit`) before re-running the script. Otherwise, if you were already inside the environment, re-entering the script makes it think you have gstreamer 1.0 already set up (it will say "Using System wide GStreamer 1.0").

The jhbuild way

Javier Jardon indicated us that he had updated jhbuild modulesets for pitivi, which means you should be able to do:

jhbuild build pitivi

...provided you have the gnome-world-3.12 moduleset. After the build is complete, to run Pitivi, simply do :

jhbuild run pitivi

See also Git for instructions on how to deal with Pitivi git branches.