How to build Compiz from source?
Similarly to this question made for Unity, I would like to know what is the correct procedure to build the latest development release of Compiz from source.
In particular, it would be useful to know if it's possible to install it avoiding the risk of breaking the one from the repositories (maybe using checkinstall, or installing it in a different location?)
Solution 1:
I found the same question and the related answer on launchpad
Specifically:
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=~/staging
make install
And then in a VT (Ctrl+Alt+F1):
cd ~/staging
env DISPLAY=:0 LD_LIBRARY_PATH=./lib ./bin/compiz --replace composite opengl move resize decor compiztoolbox mousepoll wall expo animation switcher
That way you're not affecting your system installation. Everything runs from ~/staging.