HomeDocumentationFAQCommunity Log in / create account
compiz.org 

From Compiz

In order to compile Compiz from source code yourself instead of using a pre-compiled binary package, you'll need to download a source package or fetch the Git repository, install any prerequisites, and build and install the binary.

Contents

Prerequisites

You'll need to install several development tools and library dependencies before compiling can succeed. Below is the list of required software for several Linux distributions.

BuildRequires on openSUSE

control-center2-devel freeglut-devel gcc-c++ gconf2-devel gtk2-devel intltool libdrm-devel librsvg-devel libwnck-devel metacity pango-devel update-desktop-files xorg-x11-devel perl-XML-Parser

If compiling on SUSE Linux 10.1 in addition to above you require:

xorg-x11-compat70-devel

Build-Depends on Debian

You can run apt-get build-dep compiz to get what's needed for the version in Debian source repositories. For reference, here's the Build-Depends:

Build-Depends: debhelper (>= 5), quilt (>= 0.40), automake1.9, libtool, libglib2.0-dev, libgconf2-dev, libpng12-dev | libpng-dev, libxcomposite-dev (>= 1:0.3-2), libxfixes-dev (>= 1:4.0.1), libxdamage-dev (>=1:1.0.3), libxrandr-dev (>= 2:1.1.0.2), libxrender-dev (>= 1:0.9.1), libice-dev (>= 1:1.0.1), libsm-dev (>= 1:1.0.1), libgl1-mesa-dev (>= 6.5.1) | libgl-dev, libcairo-dev, librsvg2-dev, libgnome-desktop-dev, libgnome-window-settings-dev, libdbus-1-dev, libwnck-dev, libgtk2.0-dev, libpango1.0-dev, x11proto-gl-dev (>= 1.4.8-1), libxinerama-dev, libmetacity-dev

For compiz 0.3.6 you will also need to install the following packages:

apt-get install libdbus-glib-1-dev libmetacity-dev libwnck-dev libgnome-window-settings-dev libpango1.0-dev libgtk2.0-dev libgnome-desktop-dev librsvg2-dev libdbus-glib-1-dev

Building from tar ball on Ubuntu

There may be things missing here; this is just a guide for building with gtk-window-decorator and metacity support.

1. ./configure --prefix=/usr --enable-librsvg --enable-gtk

should yield:
the following optional plugins will be compiled:

 gconf:    yes
place: yes
dbus: yes
annotate: yes

and the following optional features will be compiled:

 svg:      yes
gtk: yes
metacity: yes
gnome: yes
kde: no

2. make
3. sudo make install

Building and Installing Compiz

Building without static mesa (for users using Intel or new NVIDIA drivers and without Xgl):

./autogen.sh --prefix=/usr --enable-librsvg && make && make install

If you downloaded a package instead of fetching from the repository, the command is ./configure instead of ./autogen.sh

Retrieved from "http://compiz.org/Compiling"