-
-
Save frankIT/46748d915b13a43ca388 to your computer and use it in GitHub Desktop.
| #!/bin/bash | |
| # http://wiki.compiz.org/C%2B%2BCompiling | |
| # This is basically a script version of the official documentation above | |
| # with a few fix needed to successfully compile on debian jessie | |
| wget https://launchpad.net/compiz/0.9.10/0.9.10.0/+download/compiz-0.9.10.0.tar.bz2 | |
| tar -xf compiz-0.9.10.0.tar.bz2 | |
| rm compiz-0.9.10.0.tar.bz2 | |
| cd compiz-0.9.10.0/ | |
| mkdir build | |
| cd build | |
| # if in /opt or any other place without full write perms remember to: | |
| # chown -R fra:fra compiz-0.9.10.0/ | |
| # or make will fail | |
| dependencies=( | |
| build-essential | |
| cmake | |
| libcairo2-dev | |
| librsvg2-dev | |
| libglib2.0-dev | |
| libpng12-dev | |
| libdbus-1-dev | |
| libboost-dev | |
| libboost-serialization-dev | |
| libxml2-dev | |
| libgl1-mesa-dev | |
| libglu1-mesa-dev | |
| libwnck-dev | |
| libgconf2-dev | |
| libx11-xcb-dev | |
| libxslt1-dev | |
| libnotify-dev | |
| libmetacity-dev | |
| python-gtk2-dev | |
| libgnome-desktop-dev | |
| gnome-control-center-dev | |
| intltool | |
| cython | |
| python2.7-dev | |
| libglibmm-2.4-dev | |
| libprotobuf-dev | |
| python-pyrex | |
| xsltproc | |
| ) | |
| sudo aptitude install ${dependencies[@]} | |
| cmake ../ | |
| make | |
| # if make fails with something like: No rule to make target `/usr/lib/x86_64-linux-gnu/libGL.so' | |
| # just check where the .so file is on ur system, and replace eventual broken symlink like: | |
| # sudo rm /usr/lib/x86_64-linux-gnu/libGL.so | |
| # sudo ln -s /usr/lib/libGL.so /usr/lib/x86_64-linux-gnu/libGL.so | |
| # should happens just with nvidia driver though | |
| sudo make install | |
| sudo make findcompiz_install | |
| sudo make findcompizconfig_install | |
| # https://bugs.launchpad.net/compiz/+bug/1136011 | |
| sudo ln -s /usr/local/lib/python2.7/site-packages/compizconfig.so /usr/local/lib/python2.7/dist-packages/compizconfig.so | |
| # check if you have /usr/local/lib in your /etc/ld.so.conf.d/libc.conf and add the path if needed | |
| # so that you don't have to deal with export LD_LIBRARY_PATH every time | |
| sudo ldconfig | |
| # now for the first run start ccsm before compiz, enable the window decorator plugin and configure it with gtk-window-decorator or whatever u like | |
| # enable resizing, dragging and basic functions of the windows, and u're ready to go: | |
| # compiz --replace ccp |
When i try to start compiz i get this:
root@Debian:/home/vladtepe# compiz –replace ccp
compiz (core) – Info: Loading plugin: core
compiz (core) – Info: Starting plugin: core
compiz (core) – Info: Loading plugin: ccp
compiz (core) – Info: Starting plugin: ccp
compizconfig – Info: Backend : ini
compizconfig – Info: Integration : true
compizconfig – Info: Profile : default
compiz (core) – Warn: SmcOpenConnection failed: None of the authentication protocols specified are supported
any idea why this happen?
These instructions made my system unstable. How do I uninstall this? I've tried apt-get remove ccsm and dpkg -r ccsm without luck.
I wrote this script in 2014, when jessie was still in testing. A lot of packages were updated since then, and I don't use compiz anymore. This was my "last ride" with it. So, if you wish, just take it as a base to make your own build tool, forking the gist as other few did. I'm not into that anymore, sorry :\
Hello,
I'm trying to build compiz to run on debian jessie/sid with xfce but I'm having trouble with make which terminates with error:
In file included from /home/me/data/src/compiz-0.9.10.0/gtk/window-decorator/gwd-metacity-window-decoration-util.c:22:0:
/home/me/data/src/compiz-0.9.10.0/gtk/window-decorator/gwd-metacity-window-decoration-util.h:24:47: fatal error: metacity-1/metacity-private/theme.h: No such file or directory
#include <metacity-1/metacity-private/theme.h>
^
compilation terminated.
Can you please help?
Thank you,
jssilva