Revision 1 as of 2009-01-16 18:43:17

Clear message
  • Immutable Page
  • Info
  • Attachments

Building and Installing Compiz++

This is a preliminary 'rough' guide explaining how to compile and install compiz++ to a non standard prefix. This assumes you are a developer, know exactly what you're doing or do not mind breaking your system. For sake of simplicity we'll assume the prefix /opt/compiz++/ and the source will be contained and built in /usr/local/src/ The dependency list is changing and will be added later. You will need at least cmake, boost devel and git packages installed. Refer to the dep list here to get an idea of what other packages might need to be installed.

Obtain the source

The source code can be acquired from git. We'll demonstrate how to install compiz, bcop and libcompizconfig and an example plugin in that order. Important notes about cmake: Choose a location in which to store the code that does not contain spaces or any questionable characters. The compiz source will be built in a different directory than where the code is actually contained. After you begin, do not move this directory or it may cause future problems when updating or uninstalling. That said, here we go. 1) Download the source with git

mkdir -p /usr/local/src/compiz; cd /usr/local/src/compiz
git clone git://anongit.freedesktop.org/git/xorg/app/compiz compiz++
git clone git://anongit.compiz-fusion.org/fusion/libraries/bcop bcop++
git clone git://anongit.compiz-fusion.org/fusion/compizconfig/libcompizconfig libcompizconfig++

2) You must switch to the compiz++ branch for each repo you clone. From each directory do the following

git checkout -b compiz++ --track origin/compiz++

3) Create a directory in which to build the source and run cmake

mkdir -p /usr/local/src/compiz/compiz_build; cd /usr/local/src/compiz/compiz_build
cmake -DCMAKE_INSTALL_PREFIX=/opt/compiz++ /usr/local/src/compiz/compiz++

4) After cmake succeeds (meaning all dependencies were met) compile and install

make
sudo make install

5) Build and install bcop

cd /usr/local/src/compiz/bcop++
./autogen.sh --prefix=/opt/compiz++
./configure --prefix=/opt/compiz++
make
sudo make install

6) Now that compiz and bcop are installed to /opt/compiz++ we'll set some environment variables so we can build libcompizconfig and other plugins

export LD_LIBRARY_PATH=/opt/compiz++/lib/
export PKG_CONFIG_PATH=/opt/compiz++/lib/pkgconfig:/opt/compiz++/share/pkgconfig

7) Build and install libcompizconfig

cd /usr/local/src/compiz/libcompizconfig++
./autogen.sh --prefix=/opt/compiz++
./configure --prefix=/opt/compiz++
make
sudo make install

8) Build any additional plugins

mkdir -p /usr/local/src/compiz/plugins; cd /usr/local/src/compiz/plugins
git clone git://git.compiz-fusion.org/users/smspillaz/example example
cd example
git checkout -b compiz++ --track
make
BUILD_GLOBAL=true sudo -E make install

9) Run compiz

LD_LIBRARY_PATH=/opt/compiz++/lib/ /opt/compiz++/bin/compiz --replace ccp

10) For ccsm

LD_LIBRARY_PATH=/opt/compiz++/lib/ ccsm