Lazy Ubuntu

How To Install Compiz Fusion 0.6.0 from Sources on Ubuntu 7.10 Gutsy Gibbon

by Toor, October 22nd, 2007 | 42 Comments

Note: This guide has a lot of problems. Please do not use this guide.

Version 0.6.0 of Compiz Fusion has been released. This is the first stable release of Compiz Fusion. Compiz Fusion 0.6.0 not only has fixed many bugs, but also added a ton of new features. This HOWTO shows how you can install Compiz Fusion 0.6.0 from sources on Ubuntu 7.10 Gutsy Gibbon.

Installing Compiz Fusion

NOTE: If you have installed old version of Compiz Fusion, please first remove it.

1. Install build tools and all of the dependencies:

sudo apt-get install build-essential gitweb curl autoconf automake automake1.9 libtool intltool libxslt1-dev xsltproc libwnck-dev libxcomposite-dev libpng12-dev libsm-dev libxrandr-dev libxdamage-dev libxinerama-dev libstartup-notification0-dev libgconf2-dev libgl1-mesa-dev libglu1-mesa-dev libmetacity-dev librsvg2-dev libdbus-1-dev libdbus-glib-1-dev libgnome-desktop-dev libgnome-window-settings-dev python-dev python-pyrex

2. Get the sources with this command:

wget -r -np -nd --accept=tar.bz2 http://releases.compiz-fusion.org/0.6.0/

This will download compiz-0.6.2.tar.bz2, compiz-bcop-0.6.0.tar.bz2, libcompizconfig-0.6.0.tar.bz2, compizconfig-python-0.6.0.tar.bz2, ccsm-0.6.0.tar.bz2, compiz-fusion-plugins-main-0.6.0.tar.bz2, compiz-fusion-plugins-extra-0.6.0.tar.bz2, compiz-fusion-plugins-unsupported-0.6.0.tar.bz2, compizconfig-backend-gconf-0.6.0.tar.bz2, compizconfig-backend-kconfig-0.6.0.tar.bz2, compiz-manager-0.6.0.tar.bz2, etc.

3. Install compiz 0.6.2:

tar jxvf compiz-0.6.2.tar.bz2
cd compiz-0.6.2/
./configure --prefix=/usr
make
sudo make install

4. Install compiz-bcop 0.6.0:

cd ../
tar jxvf compiz-bcop-0.6.0.tar.bz2
cd compiz-bcop-0.6.0/
./configure --prefix=/usr
make
sudo make install

5. Install libcompizconfig 0.6.0:

cd ../
tar jxvf libcompizconfig-0.6.0.tar.bz2
cd libcompizconfig-0.6.0/
./configure --prefix=/usr
make
sudo make install

6. Install compizconfig-python 0.6.0:

cd ../
tar jxvf compizconfig-python-0.6.0.tar.bz2
cd compizconfig-python-0.6.0/
./configure --prefix=/usr
make
sudo make install

7. Install ccsm 0.6.0:

cd ../
tar jxvf ccsm-0.6.0.tar.bz2
cd ccsm-0.6.0/
sudo python setup.py install

8. Install compiz-fusion-plugins-main 0.6.0:

cd ../
tar jxvf compiz-fusion-plugins-main-0.6.0.tar.bz2
cd compiz-fusion-plugins-main-0.6.0/
./configure --prefix=/usr
make
sudo make install

9. Install compiz-fusion-plugins-extra 0.6.0:

cd ../
tar jxvf compiz-fusion-plugins-extra-0.6.0.tar.bz2
cd compiz-fusion-plugins-extra-0.6.0/
./configure --prefix=/usr
sudo make
sudo make install

10. Install compiz-fusion-plugins-unsupported 0.6.0:

cd ../
tar jxvf compiz-fusion-plugins-unsupported-0.6.0.tar.bz2
cd compiz-fusion-plugins-unsupported-0.6.0/
./configure --prefix=/usr
make
sudo make install

11. If you are using GNOME, you will need to install compizconfig-backend-gconf 0.6.0:

cd ../
tar jxvf compizconfig-backend-gconf-0.6.0.tar.bz2
cd compizconfig-backend-gconf-0.6.0/
./configure --prefix=/usr
make
sudo make install

If you are using KDE, you will need to install compizconfig-backend-kconfig 0.6.0:

cd ../
tar jxvf compizconfig-backend-kconfig-0.6.0.tar.bz2
cd compizconfig-backend-kconfig-0.6.0/
./configure --prefix=/usr
make
sudo make install

Running Compiz Fusion

To run Compiz Fusion on Ubuntu 7.10, you can execute the following steps:

1. Press Alt + F2, this will open Run Application dialog box.

2. Then enter compiz --replace gconf and click Run.

Running Compiz Fusion

You can also auto start Compiz Fusion. You will need to add it to GNOME sessions. Click System → Preferences → Sessions, in Startup Programs, click Add. Then enter the following information:

  • Name: enter “Compiz”.
  • Command: enter “compiz --replace gconf“.
  • Comment: enter “Compiz”.

Add Compiz Fusion

Configuring Compiz Fusion

If you want to configure Compiz Fusion, you can use CompizConfig Settings Manager. To open it, click System → Preferences → CompizConfig Settings Manager.

Compiz Fusion

Compiz Fusion

Compiz Fusion

See also here.

Update: installing Emerald and Emerald themes

1. Download the source code from here and here.

2. Install Emerald:

cd ../
tar jxvf emerald-0.6.0.tar.bz2
cd emerald-0.6.0/
./autogen.sh --prefix=/usr
make
sudo make install

3. Install Emerald themes:

cd ../
tar jxvf emerald-themes-0.6.0.tar.bz2
cd emerald-themes/
./autogen.sh --prefix=/usr
make
sudo make install

To use Emerald, you can enter “emerald --replace” in your terminal. In addition, you can open Emerald Theme Manager from System → Preferences → Emerald Theme Manager.

Emerald Theme Manager

[Thanks Phil!]

If you like this post, please consider buying me a beer.

Tags: HOWTOs

42 responses so far ↓

  • 1 Jim March // Oct 22, 2007 at 3:07 am

    These instructions produced an unusable system.

    When I do “compiz –replace gconf” I get windows with no borders, no way to scale them, no way to place them - I tried various combinations of “alt”, “shift” and “ctrl” with the mouse. Windows overlap and block each other with no way to move them or make a background window come forward. Once I get to a terminal and do “metacity” it’s back to non-3D normal.

    The “System>Preferences>CompizConfig Settings Manager” is there, but doesn’t do anything when clicked, whether Compiz is running or not.

    At one point in the instructions above you have:
    “compiz -replace gconf” - that doesn’t work but I assume that’s just a typo.

    At the terminal I get:


    jim@jim-acer:~$ compiz –replace gconf
    compiz (core) - Fatal: GLX_EXT_texture_from_pixmap is missing
    compiz (core) - Error: Failed to manage screen: 0
    compiz (core) - Fatal: No manageable screens found on display :0.0

    …and then that “window borderless mess” until I get back to a terminal and do “metacity”.

    I stripped every vestige of the Gutsy standard Compiz before starting. I now have no 3D at all. Very disappointed…

  • 2 Jim March // Oct 22, 2007 at 3:08 am

    Oh yeah, dunno if this is a clue, but to get back to Metacity:


    jim@jim-acer:~$ metacity
    Window manager warning: “” found in configuration database is not a valid value for keybinding “toggle_shaded”

    jim@jim-acer:~$

  • 3 Jim March // Oct 22, 2007 at 3:10 am

    Oh GOD…Synaptic doesn’t show any “Compiz” listings at all. So I don’t even know how to uninstall this mess to get back to normal.

    Sigh.

  • 4 Jim March // Oct 22, 2007 at 3:13 am

    Maybe another clue:


    jim@jim-acer:~$ ccsm
    Traceback (most recent call last):
    File “/usr/local/bin/ccsm”, line 37, in
    import compizconfig
    ImportError: No module named compizconfig
    jim@jim-acer:~$

    ???

  • 5 Jim March // Oct 22, 2007 at 3:20 am

    I seem to have a pile of compiler errors in step 6. Tried to quote ‘em in, but it appears to be too long.

  • 6 Scuba // Oct 22, 2007 at 7:44 am

    Same Error message…
    Uninstalled all self compiled progs (make uninstall)
    and reinstalled the “old” compiz via synaptic.
    Now everything works as before.

  • 7 Lauwe // Oct 23, 2007 at 2:12 am

    If you get compiler errors in step 6 you need the python-dev package.

  • 8 nekten // Oct 23, 2007 at 8:29 am

    # Install libcompizconfig 0.6.0:
    in step

    cd ../
    tar jxvf libcompizconfig-0.6.0.tar.bz2
    cd libcompizconfig-0.6.0/
    ./configure –prefix=/usr
    make

    i get


    compiz.c:42:20: error: compiz.h: No such file or directory
    compiz.c: In function ‘getOptionType’:
    compiz.c:71: error: ‘CompOptionTypeBool’ undeclared (first use in this function)
    compiz.c:71: error: (Each undeclared identifier is reported only once
    compiz.c:71: error: for each function it appears in.)
    compiz.c: In function ‘initColorValue’:
    compiz.c:512: warning: implicit declaration of function ‘MAX’
    compiz.c:512: warning: nested extern declaration of ‘MAX’
    compiz.c:512: warning: implicit declaration of function ‘MIN’
    compiz.c:512: warning: nested extern declaration of ‘MIN’
    compiz.c: At top level:
    compiz.c:565: error: ‘ShiftMask’ undeclared here (not in a function)
    compiz.c:566: error: ‘ControlMask’ undeclared here (not in a function)
    compiz.c:567: error: ‘Mod1Mask’ undeclared here (not in a function)
    compiz.c:568: error: ‘Mod2Mask’ undeclared here (not in a function)
    compiz.c:569: error: ‘Mod3Mask’ undeclared here (not in a function)
    compiz.c:570: error: ‘Mod4Mask’ undeclared here (not in a function)
    compiz.c:571: error: ‘Mod5Mask’ undeclared here (not in a function)
    compiz.c:572: error: ‘CompAltMask’ undeclared here (not in a function)
    compiz.c:573: error: ‘CompMetaMask’ undeclared here (not in a function)
    compiz.c:574: error: ‘CompSuperMask’ undeclared here (not in a function)
    compiz.c:575: error: ‘CompHyperMask’ undeclared here (not in a function)
    compiz.c:576: error: ‘CompModeSwitchMask’ undeclared here (not in a function)
    compiz.c: In function ’stringToKey’:
    compiz.c:612: warning: implicit declaration of function ‘XStringToKeysym’
    compiz.c:612: warning: nested extern declaration of ‘XStringToKeysym’
    compiz.c:617: error: ‘NoSymbol’ undeclared (first use in this function)
    compiz.c:617: warning: assignment makes integer from pointer without a cast
    compiz.c: In function ‘initIntInfo’:
    compiz.c:784: error: ‘MINSHORT’ undeclared (first use in this function)
    compiz.c:784: warning: assignment makes integer from pointer without a cast
    compiz.c:785: error: ‘MAXSHORT’ undeclared (first use in this function)
    compiz.c:785: warning: assignment makes integer from pointer without a cast
    compiz.c: In function ‘initFloatInfo’:
    compiz.c:852: error: ‘MINSHORT’ undeclared (first use in this function)
    compiz.c:852: error: incompatible types in assignment
    compiz.c:852: warning: statement with no effect
    compiz.c:853: error: ‘MAXSHORT’ undeclared (first use in this function)
    compiz.c:853: error: incompatible types in assignment
    compiz.c:853: warning: statement with no effect
    make[2]: *** [compiz.lo] Error 1
    make[2]: Leaving directory `/root/libcompizconfig-0.6.0/src’
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/root/libcompizconfig-0.6.0′
    make: *** [all] Error 2

  • 9 Isaac J // Oct 23, 2007 at 12:55 pm

    1 question and 1 comment…

    Question: I tried using these instructions with Feisty, I assumed they would work…Am I correct?

    Comment: I think the dependencies are incomplete.

  • 10 Steffen // Oct 23, 2007 at 1:28 pm

    dude THANKS for this complete build guide !!!
    Dont blame the writer if your X server or grfx drivers are not set up for compiz , always google with error messages you will find the answer to it
    Keep it up ! Rape S. Balmer =)

  • 11 toor // Oct 23, 2007 at 8:39 pm

    @Jim March: You need to enable Window Decoration plugin.

    @Lauwe, Steffen: Thanks!

  • 12 Kamui // Oct 24, 2007 at 7:21 am

    Sorry but can’t we use official compiz fusion repository to get latest updates all time?

  • 13 Isaac J // Oct 24, 2007 at 11:47 am

    I apologize as Steffen is correct. This guide works wonderfully. I encountered a problem because the instructions I found to install the fusion-icon told me to install the package compiz-dev…That package was conflicting with the compiled version. Thank you for the wonderful, clear and helpful guide!

  • 14 Isaac J // Oct 24, 2007 at 11:48 am

    Crap, I don’t mean to double post, but this guide works on Ubuntu Feisty for those who want to compile the latest release and not use a repo. Which I recommend. :)

  • 15 Phil // Oct 24, 2007 at 10:07 pm

    Thank you! I followed your directions exactly and it worked perfectly!

    A couple of things to note though.

    You made no mention of emerald. So with a fresh install of Gutsy, I removed all the packages pertaining to compiz in Synaptic. INCLUDING emerald, libemeraldengine0, and libdecoration0.

    I then downloaded the newest release of emerald from here:
    http://cgit.compiz-fusion.org/fusion/decorators/emerald/commit/?h=0.6.0

    did:

    cd ../
    tar jxvf emerald-0.6.0.tar.bz2
    cd emerald-0.6.0/
    ./autogen.sh
    make
    sudo make install

    That worked but that wasn’t enough! I then started compiz-fusion and tried to get emerald to be the window decorator. No luck! I had to go back to Synaptic and install the libemeraldengine0 and the libdecoration0 packages.

    Thank you so much! Hopefully that helps someone else too!

  • 16 Jim March // Oct 25, 2007 at 2:55 am

    Toor: how, with the basic control panel not working?!?

  • 17 Jim March // Oct 25, 2007 at 8:20 pm

    HOW DO YOU “ENABLE WINDOWS DECORATOR PLUGIN!?”

  • 18 toor // Oct 25, 2007 at 8:51 pm

    @Jim March: Please see here.

  • 19 Jim March // Oct 25, 2007 at 11:36 pm

    Toor: again: I can’t get to that point. I can’t get anywhere near it.

  • 20 rt // Oct 27, 2007 at 5:14 am

    Anyone able to install this with the new ati driver (8.42.3) with AIGLX enable?

  • 21 OsCaRiN // Oct 28, 2007 at 3:10 pm

    no se puede instalar T_T m da un monton d errores

  • 22 Daniel // Oct 29, 2007 at 8:55 am

    Same problem as Jim March.

  • 23 mcm // Oct 29, 2007 at 9:29 am

    I’ m having the same problem. All window borders and title bars are gone, even with window decoration enabled…

  • 24 Sephoroth // Oct 29, 2007 at 4:53 pm

    Same problem as Jim March. Emerald Theme manager loads but Window Decorations remain off. CCSM and GConf-Editor both show the Window Decoration plugin as being on (No Compiz Effects work though (e.g. enabling rain does nothing)). Compiz Fusion 0.5.2 previously ran fine for me.

  • 25 kuba // Oct 30, 2007 at 11:03 am

    Try this:
    LIBGL_ALWAYS_INDIRECT=true compiz –replace –sm-disable –indirect-rendering ccp &

  • 26 torturedutopian // Nov 1, 2007 at 6:23 am

    Thanks a lot for the tutorial !

    I also had to use the command line provided by kuba to get it working. Does it have any impact on speed ? I didn’t have to specify those options before.

    I still have one issue however : when moving windows, a lot of tearing occurs, although I did tick “sync on vblank”. It used to work properly with the default Gutsy compiz. Any idea ?

  • 27 torturedutopian // Nov 1, 2007 at 6:35 am

    Hmm, it seems, in my case,

    compiz –replace [–only-current-screen (TV out as second X screen)] ccp

    was enough and fixed my issues :)

  • 28 torturedutopian // Nov 1, 2007 at 6:49 am

    … hmm, I have the feeling this is slower than before, overall. Example : cube rotation with transparency is choppy. It used to be perfectly smooth. (ok if I disable transparency)

    (nvidia 8600GTS)

  • 29 Ubuntu 7.10 从源代码编译安装Compiz Fusion 0.6.0 at DiaTears Blog ^_^ // Nov 7, 2007 at 3:35 am

    […] 前天参考LDCN没有编译成功,通过这这篇文章顺利编译安装成功! […]

  • 30 Mathew // Nov 8, 2007 at 2:33 am

    Me too having the same problem as Jim..:(…window decoration is enabled, but all windows are locked up and cannot go to desktop..:(…nothing seems to work.is there any way out of this sad situation.?

  • 31 Glebus // Nov 9, 2007 at 2:31 am

    When I try install compiz-0.6.2 I get this:

    make[2]: Entering directory `/home/glebus/Downloads/Compiz/compiz-0.6.2/kde’
    Making all in window-decorator
    make[3]: Entering directory `/home/glebus/Downloads/Compiz/compiz-0.6.2/kde/window-decorator’
    g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/share/qt3/include -I/usr/include/kde -g -O2 -Wall -D_FORTIFY_SOURCE=2 -MT decorator.moc.o -MD -MP -MF .deps/decorator.moc.Tpo -c -o decorator.moc.o decorator.moc.cpp
    In file included from decorator.moc.cpp:11:
    decorator.h:27:26: error: kapplication.h: No such file or directory
    decorator.h:35:21: error: fixx11h.h: No such file or directory
    decorator.h:36:21: error: kconfig.h: No such file or directory
    decorator.h:37:35: error: kdecoration_plugins_p.h: No such file or directory
    decorator.h:38:27: error: kdecoration_p.h: No such file or directory
    decorator.h:39:19: error: netwm.h: No such file or directory
    decorator.h:44:29: error: dbus/connection.h: No such file or directory
    In file included from window.h:37,
    from decorator.h:46,
    from decorator.moc.cpp:11:
    options.h:27:25: error: kdecoration.h: No such file or directory
    In file included from decorator.h:47,
    from decorator.moc.cpp:11:
    KWinInterface.h:6:24: error: dcopobject.h: No such file or directory
    /usr/share/qt3/include/qnamespace.h:838: error: expected identifier before numeric constant
    /usr/share/qt3/include/qnamespace.h:838: error: expected unqualified-id before numeric constant
    /usr/share/qt3/include/qevent.h:61: error: expected identifier before numeric constant
    /usr/share/qt3/include/qevent.h:61: error: expected `}’ before numeric constant
    /usr/share/qt3/include/qevent.h:61: error: expected unqualified-id before numeric constant
    /usr/share/qt3/include/qevent.h:142: error: expected `)’ before ‘type’
    /usr/share/qt3/include/qevent.h:143: error: declaration of ‘~QEvent’ as non-member
    /usr/share/qt3/include/qevent.h:144: error: ‘Type’ does not name a type
    /usr/share/qt3/include/qevent.h:145: error: non-member function ‘bool spontaneous()’ cannot have cv-qualifier
    /usr/share/qt3/include/qevent.h: In function ‘bool spontaneous()’:
    /usr/share/qt3/include/qevent.h:145: error: ‘spont’ was not declared in this scope
    /usr/share/qt3/include/qevent.h: At global scope:
    /usr/share/qt3/include/qevent.h:146: error: expected unqualified-id before ‘protected’
    /usr/share/qt3/include/qevent.h:148: error: expected unqualified-id before ‘private’
    /usr/share/qt3/include/qevent.h:150: error: invalid function declaration
    /usr/share/qt3/include/qevent.h:153: error: ‘friend’ can only be specified inside a class
    /usr/share/qt3/include/qevent.h:154: error: ‘friend’ can only be specified inside a class
    /usr/share/qt3/include/qevent.h:155: error: ‘friend’ can only be specified inside a class
    /usr/share/qt3/include/qevent.h:156: error: ‘friend’ can only be specified inside a class
    /usr/share/qt3/include/qevent.h:157: error: expected declaration before ‘}’ token
    make[3]: *** [decorator.moc.o] Error 1
    make[3]: Leaving directory `/home/glebus/Downloads/Compiz/compiz-0.6.2/kde/window-decorator’
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/glebus/Downloads/Compiz/compiz-0.6.2/kde’
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/glebus/Downloads/Compiz/compiz-0.6.2′
    make: *** [all] Error 2

    Help please!

  • 32 Sathya Says // Nov 9, 2007 at 8:12 am

    […] The install of the ATI drivers was much easier than the last time I did it (several years ago). It’s good to see that ATI is working to help simplify the process. I ran the install script and it popped up a graphical window much like a MS Windows install program. Next, Next, Finish and I was done. I noticed at this point that even though glxgears reported 3D was working fine, I could not enable desktop effects. The tutorial says this is because of an incompatibility with the version of Compiz (0.5). I went through the process described to install a more recent version. It’s not a trivial process. […]

  • 33 adolfo horacio // Nov 9, 2007 at 11:21 am

    how uninstall it ?

  • 34 Toor // Nov 9, 2007 at 8:07 pm

    @adolfo horacio:

    sudo make uninstall

  • 35 adolfo horaco // Nov 10, 2007 at 7:58 am

    what is the path to make sudo make uninstall?

  • 36 mor // Dec 8, 2007 at 5:12 pm

    how do i download emerald from the links you guys gave? i cant find any link to download there…

  • 37 horacio // Dec 9, 2007 at 1:56 pm

    install emerald from:http://releases.compiz-fusion.org/0.5.2/

  • 38 Use unofficial guides at your own risk! « SmSpillaz - Random Compiz Fusion Stuff // Jan 5, 2008 at 7:55 pm

    […] Use unofficial guides at your own risk! January 6, 2008 Posted by smspillaz in Uncategorized. trackback Recently, a lot of problems have been caused for Ubuntu users by using this guide. […]

  • 39 Vincent // Jan 6, 2008 at 6:48 am

    Crap, I don’t mean to double post, but this guide works on Ubuntu Feisty for those who want to compile the latest release and not use a repo. Which I recommend. :)

    Why on earth would you not use a repo?! As you can see on SmSpillaz’s blog compiling can cause a lot of problems.
    Installing from a repository, however, is (1) much and much easier, (2) less likely to cause problems and (3) easy to uninstall and receive updates.

    So I really cannot understand this reasoning and highly recommend any one to use a distribution’s native packaging system.

  • 40 Lurch // Feb 7, 2008 at 2:34 am

    Hi
    Will this work with Kubuntu 7.10 AMD 64?

  • 41 Justn // Feb 16, 2008 at 6:16 pm

    DO NOT USE THIS GUIDE! JUST GET DEB PACKAGES! AND TO WHOEVER POSTED THIS: MAKE FIXES TO THE GUIDE OR TAKE IT DOWN.

  • 42 James // Feb 26, 2008 at 6:11 pm

    @Jim March:
    you are right it does produce an un-usable system, i couldn’t do anything WHATSOEVER after i did all the steps. i even re-installed the OS fresh and once done with that, I just put in my video drivers. Restarted and & copied/pasted the commands EXACTLY as they were typed online, and it still wouldn’t work, i now have to re-install a 3rd time and try Justn’s approach :sigh:

Leave a Comment