PDA

View Full Version : Ubuntu Feisty: compiz git installation guide


RYX
May 29th, 2007, 09:48 AM
Hi everyone!

This is a very quick guide on how to install compiz (current git) on Ubuntu Feisty. Please remember that the git version is the bleeding-edge development version and can be quite unstable (in theory ;)). This is a method that doesn't require you to replace/remove the pre-installed compiz (which involves removing ubuntu-desktop metapackage), instead after doing the following steps you will have TWO (non-conflicting) versions of compiz installed (but you will have no further trouble with any of them).

1. Create a "tmp"-directory in your home dir and navigate to that dir (in a terminal)

2. Fetch all required dependancies listed in this thread (http://forum.compiz.org/viewtopic.php?t=827) - make sure you install the "additional things needed for downloading/compiling from git "

3. Enter the following command and watch compiz download to the current directory:git clone git://git.freedesktop.org/git/xorg/app/compiz

4. Navigate into the compiz directory (simply enter "cd compiz")

5. Run "./autogen.sh" (add your configure-options as you like but do NOT change the "--prefix" option, or at least NOT install into "/usr"), if errros occur, report them here. Make sure that all options you want are set to "yes" after running autogen.sh

6. Now run "make" and take a five minutes break (or watch it compile)

7. If no errors occured run "sudo make install" and see how it installs, if erros occured report them here

8. Everything alright? Now you need to rename the executables to avoid conflicts. Enter the following two commands (change the paths if you used a different prefix):sudo mv /usr/local/bin/compiz /usr/local/bin/compiz.git
sudo mv /usr/local/bin/gtk-window-decorator /usr/local/bin/gtk-window-decorator.git

9. Now the final step - you need to edit your startup-script (the file "/usr/bin/compiz" is your startup script):sudo nano /usr/bin/compiz

9.1 Edit the COMPIZ_OPTIONS variable to your liking and remove "--no-fbo", that option is deprecated

9.2 Replace any occurence of "compiz.real" with "compiz.git"

9.3 Replace any occurence of "/usr/bin/gtk-window-decorator" with "/usr/local/bin/gtk-window-decorator.git"

9.4 Add this line to the top of the file (e.g. below COMPIZ_OPTIONS):COMPIZ_PLUGINS="glib gconf" and change the last line in the file to look like this:compiz.git $COMPIZ_OPTIONS "$@" $COMPIZ_PLUGINS || metacity

9.5 If you have an NVIDIA-card, add the option " --loose-binding" to COMPIZ_OPTIONS and put "__GL_YIELD="NOTHING" in front of the last line (right before " compiz.git"), the line should look like this:__GL_YIELD="NOTHING" compiz.git $COMPIZ_OPTIONS "$@" $COMPIZ_PLUGINS || metacity

Now you should have replaced your crappy, pre-installed compiz 0.3.6 with a working version of current compiz-git. If you want to pull in the latest updates, navigate to "$HOME/tmp/compiz" and enter "git pull origin". Then you simply run "make" and "sudo make install" if make was correct. DON'T FORGET RENAMING THE EXECUTABLES ( redo step 8 ) WHENEVER YOU UPDATE TO THE LATEST GIT VERSION ...

I hope this is of help for some people having trouble with compiz on Feisty.

IMPORTANT NOTE: The session-manager in gnome seems to create zombies when multiple instances of the script are launched. If things are slower than they should, kill all compiz and compiz.git processes in your gnome-session (System/Settings/Sessions/Current) and restart compiz from a terminal by simply entering "compiz &" ... If anyone knows a solution to this, please let us know.

:)

jackkerouac
May 29th, 2007, 05:55 PM
7. If no errors occured run "sudo make install" and see how it installs, if erros occured report them here

I get the following error(s) when using ./autogen.sh:

Can't locate Automake/Config.pm in @INC (@INC contains: /usr/local/share/automake-1.10 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 .) at /usr/local/bin/aclocal line 39.
BEGIN failed--compilation aborted at /usr/local/bin/aclocal line 39.
Can't locate Automake/Struct.pm in @INC (@INC contains: /usr/local/share/automake-1.10 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 .) at /usr/local/bin/automake line 48.
BEGIN failed--compilation aborted at /usr/local/bin/automake line 48.
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --output=aclocal.m4t
Can't locate Automake/Config.pm in @INC (@INC contains: /usr/local/share/automake-1.10 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 .) at /usr/local/bin/aclocal line 39.
BEGIN failed--compilation aborted at /usr/local/bin/aclocal line 39.
autoreconf: aclocal failed with exit status: 2

RYX
May 29th, 2007, 07:11 PM
Thanks for reminding me - I knew there was something I forgot :) ... You have to install "automake1.9" instead of "automake", I already corrected the deps-list.

:)

jackkerouac
May 29th, 2007, 09:21 PM
Thanks for reminding me - I knew there was something I forgot :) ... You have to install "automake1.9" instead of "automake", I already corrected the deps-list.

:)

I removed automake1.10, installed automake1.9 and get:

Can't locate Automake/Config.pm in @INC (@INC contains: /usr/local/share/automake-1.10 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 .) at /usr/local/bin/aclocal line 39.
BEGIN failed--compilation aborted at /usr/local/bin/aclocal line 39.
Can't locate Automake/Struct.pm in @INC (@INC contains: /usr/local/share/automake-1.10 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 .) at /usr/local/bin/automake line 48.
BEGIN failed--compilation aborted at /usr/local/bin/automake line 48.
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --output=aclocal.m4t
Can't locate Automake/Config.pm in @INC (@INC contains: /usr/local/share/automake-1.10 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 .) at /usr/local/bin/aclocal line 39.
BEGIN failed--compilation aborted at /usr/local/bin/aclocal line 39.
autoreconf: aclocal failed with exit status: 2

I think something is screwed up with my automake.

lagorgy
May 29th, 2007, 09:28 PM
try installing libtool

Kevin
May 30th, 2007, 03:40 AM
You'll need to use Ubuntu's (well Debian's...) update-alternatives script
sudo update-alternatives --config automake and select 1.9[/code]

rushian
June 3rd, 2007, 05:33 AM
This is my first time using Ubuntu so forgive me for any ignorance shown. I followed the steps given in this site to install compiz on my fiesty. I get the following error when I tried to run compiz:

compiz.git (core): Root visual is not a double buffered GL visual
compiz.git (core): Failed to manage screen: 0
compiz.git (core): No manageable screens found on display :0.0

One thing I should mention is that I got svg option as "no" after running autogen,sh in spite of installing the librsvg2-dev package, dont know why that happened.

Anyways, hope somebody can help me out. Thanks.

gasol
June 8th, 2007, 04:23 PM
Hello RXY and a hats off to a nice guide.

I just pulled compiz from GIT and did an install to my home folder, the compile went alright, but thethe decorator plugin just wont work, neither the gtk-window-decorator plugin or the one im writing is dose any drawing at all. All the other plugins are working just nice, (woobly, etc..) got any clues to what went wrong?

tarnok
June 9th, 2007, 05:50 PM
Git this error when I typed in make

mage -lXfixes -lXrandr -lXinerama -lSM -lICE /usr/lib/libxslt.so /usr/lib/libxml2.so -lstartup-notification-1 /usr/lib/libGL.so -lm
gcc: /usr/lib/libGL.so: No such file or directory
make[2]: *** [compiz] Error 1
make[2]: Leaving directory `/home/yuy/tmp/compiz/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/yuy/tmp/compiz'
make: *** [all] Error 2

RYX
June 10th, 2007, 07:15 PM
I just pulled compiz from GIT and did an install to my home folder, the compile went alright, but thethe decorator plugin just wont work, neither the gtk-window-decorator plugin or the one im writing is dose any drawing at all. All the other plugins are working just nice, (woobly, etc..) got any clues to what went wrong?
Are you launching the decorator from your home-dir? You need to make sure that you launch the decorator from the git version. Do you get any error messages when you launch the decorator and/or compiz?

@rushian: You will need to activate the "binary" nvidia-driver first (or another driver supporting the GLX_TEXTURE_FROM_PIXMAP-feature for your card). You can (hopefully) do that in the "restricted driver management" (called somehow like that, I translated from german) somewhere in System/Administration. After the driver is enabled and you have rebooted you should be able to start compiz. The svg-support is an optional feature which gets enabled if you run "configure.sh --enable-librsvg".

RYX
June 10th, 2007, 07:19 PM
Git this error when I typed in make

mage -lXfixes -lXrandr -lXinerama -lSM -lICE /usr/lib/libxslt.so /usr/lib/libxml2.so -lstartup-notification-1 /usr/lib/libGL.so -lm
gcc: /usr/lib/libGL.so: No such file or directory
make[2]: *** [compiz] Error 1
make[2]: Leaving directory `/home/yuy/tmp/compiz/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/yuy/tmp/compiz'
make: *** [all] Error 2

I think this post may help you - please report back if it does (or doesn't :)) ... I don't know for sure if his problem got fixed.

http://forum.compiz.org/viewtopic.php?p=8854#8854

gasol
June 11th, 2007, 01:08 AM
I just pulled compiz from GIT and did an install to my home folder, the compile went alright, but thethe decorator plugin just wont work, neither the gtk-window-decorator plugin or the one im writing is dose any drawing at all. All the other plugins are working just nice, (woobly, etc..) got any clues to what went wrong?
Are you launching the decorator from your home-dir? You need to make sure that you launch the decorator from the git version. Do you get any error messages when you launch the decorator and/or compiz?

@rushian: You will need to activate the "binary" nvidia-driver first (or another driver supporting the GLX_TEXTURE_FROM_PIXMAP-feature for your card). You can (hopefully) do that in the "restricted driver management" (called somehow like that, I translated from german) somewhere in System/Administration. After the driver is enabled and you have rebooted you should be able to start compiz. The svg-support is an optional feature which gets enabled if you run "configure.sh --enable-librsvg".

Yes i run the same decorator that i built with the GIT package, this is the only error i get from compiz when it starts up:

(gtk-window-decorator:31161): Wnck-WARNING **: Unhandled action type (nil)

(gtk-window-decorator:31161): Wnck-WARNING **: Unhandled action type (nil)


Though it's not a mayor problem since i only use this version too write a plugin.

mikedee
June 11th, 2007, 01:36 AM
(gtk-window-decorator:31161): Wnck-WARNING **: Unhandled action type (nil)

(gtk-window-decorator:31161): Wnck-WARNING **: Unhandled action type (nil)


Though it's not a mayor problem since i only use this version too write a plugin.

I think everyone gets these errors, are they stopping it from working? (they shouldn't)

213374U
June 12th, 2007, 01:45 AM
Wish I could get this to work but I followed the above to a T and jacked something up. I'm missing window borders completely and it's not at all running the way it was before. How can I undo everything done above? (sorry.... I'm a relative n00b to Linux)

RYX
June 12th, 2007, 01:57 AM
I _think_ "sudo dpkg-reconfigure compiz" should help and restore the modified startup script. Otherwise just open the file "/usr/bin/compiz" and replace all occurences of "compiz.git" with "compiz.real" (and "gtk-window-decorator.git" with "gtk-window-decorator") ...

213374U
June 12th, 2007, 02:21 AM
I deleted the tmp folder used to install compiz.git and remove compiz via synaptic. I tried to re-install and run compiz in terminal with

compiz

but get this

compiz.real: Unknown option '--no-fbo'
compiz.real: Screen 0 on display "localhost:1.0" already has a window manager; try using the --replace option to replace the current window manager.
compiz.real: No manageable screens found on display localhost:1.0
/usr/bin/compiz.real: Unknown option '--no-fbo'
/usr/bin/compiz.real: Screen 0 on display "localhost:1.0" already has a window manager; try using the --replace option to replace the current window manager.
/usr/bin/compiz.real: No manageable screens found on display localhost:1.0
Window manager warning: "" found in configuration database is not a valid value for keybinding "toggle_shaded"
Window manager warning: Screen 0 on display "localhost:1.0" already has a window manager; try using the --replace option to replace the current window manager.

I no longer have System>Preferences>GL Desktop so what now?

213374U
June 12th, 2007, 02:49 AM
Okay, I was able to totally remove compiz and xgl. Going to attempt to reinstall and see if I can't get somewhere. Will keep posted

213374U
June 12th, 2007, 05:45 PM
Okay, last night I was trying to upgrade from the standard installed version of Compiz to the new Compiz.git following the instructions on the compiz website. During one portion of the install you have to alter the graphics card driver information.... forgot that I'm using an ATI Radeon X1600 Pro :hammer: Anyway, finished the upgrade and it didn't work, of course, so I began to try and undo what I had done. Nothing was working so I figured I'd start with a fresh install of Feisty. I inserted my disc and tried to reboot and when I did, it booted up with errors and launched the X Server (Terminal only). Here are the errors it listed before launching the terminal:

Log File: "/var/log/Xorg.0.log", Time: Mon Jun 11 22:10:37
Using config file: "/etc/X11/xorg.conf"
Data incomplete in file /etc/X11/xorg.conf
Undefined Device "Generic Video Card" referenced by Screen "Default Screen"

(EE) Problem parsing the config file
(EE) Error parsing the config file

Fatal server error:
screens found

(WW) xf86C loseConsole: KDSETMODE failed: Bad file descriptor
(WW) xf86C loseConsole: VT_GETMODE failed: Bad file descriptor
(WW) xf86OpenConsole: VT_GETSTATE failed: Bad file descriptor

Can someone please walk me through getting this thing back up and running (VERY STUPID STYLE PLEASE). Computer is down till then and the wife is gonna get pissed if she can't check her MySpace :p

RYX
June 13th, 2007, 12:52 AM
I have no idea what went wrong there. You should better ask at ubuntuforums.org because the problem seems to be related to your system or the graphics driver - the people there can help you better than I can. Do you have downloaded the alternate ISO with a text-based installer? That should allow you to re-install your system.

213374U
June 13th, 2007, 02:55 PM
I've got it up on ubuntuforums and am getting a good bit of help. If none of them are able to help me though, I'll definitely get the text based install for ubuntu. Thanks

dansu
June 22nd, 2007, 03:22 AM
upon running make I get this error

blur.c:34:20: error: GL/glu.h: No such file or directory
blur.c: In function 'projectVertices':
blur.c:1294: warning: implicit declaration of function 'gluProject'
blur.c:1294: warning: nested extern declaration of 'gluProject'
make[2]: *** [blur.lo] Error 1
make[2]: Leaving directory `/home/dansu/tmp/compiz/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dansu/tmp/compiz'
make: *** [all] Error 2

mikedee
June 22nd, 2007, 01:16 PM
Make sure you install this package

libglu1-mesa-dev

See here for more info

http://forum.compiz.org/viewtopic.php?t=827

X04D
June 22nd, 2007, 05:21 PM
make[3]: Entering directory `/home/loke/compiz/compiz/kde/window-decorator'
/bin/moc decorator.h > decorator.moc.cpp
/bin/bash: /bin/moc: No such file or directory
make[3]: *** [decorator.moc.cpp] Error 127
make[3]: Leaving directory `/home/loke/compiz/compiz/kde/window-decorator'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/loke/compiz/compiz/kde'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/loke/compiz/compiz'
make: *** [all] Error 2

bodhi.zazen
July 8th, 2007, 07:36 AM
Trying to install emerald :

Error In file included from ../include/engine.h:3,
from emerald.c:22:
../include/emerald.h:7:24: error: decoration.h: No such file or directory
In file included from ../include/engine.h:3,
from emerald.c:22:
../include/emerald.h:195: error: expected specifier-qualifier-list before 'decor_extents_t'
emerald.c: In function 'copy_from_defaults_if_needed':
emerald.c:49: warning: assignment discards qualifiers from pointer target type
make[2]: *** [emerald.lo] Error 1
make[2]: Leaving directory `/home/bodhi/src/compiz/emerald/libengine'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bodhi/src/compiz/emerald'
make: *** [all] Error 2

j3k
July 11th, 2007, 01:56 AM
So I got through everything succesfully. Only problem is, now all my toolbars and everything are gone. perhaps I setup the window manager wrong, even though my Sessions shows compiz running.

When I run
compiz --replace
from the terminal, it respons:

j3k@j3k-desktop:~$ compiz --replace
inotify_add_watch: No such file or directory


Thoughts?
for the record, I do not have beryl installed.

Thanks.

RYX
July 15th, 2007, 01:41 PM
What happens if you run "compiz --replace glib gconf"? And did you try removing the inotify-plugin from your active_plugins-list in gconf-editor (/apps/compiz/general/allscreens/options/active_plugins)?

:)

rubbersideup
July 23rd, 2007, 10:17 PM
Ok, so i read the bit just above. but upon looking at what its doing, it says Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
libxcomposite-dev is already the newest version.
libxcomposite-dev set to manual installed.
Package libpng-dev is a virtual package provided by:
libpng12-dev 1.2.15~beta5-1ubuntu1
You should explicitly select one to install.
E: Package libpng-dev has no installation candidate


Ideas anyone??

RYX
July 24th, 2007, 12:42 AM
Just do what it says: "Package libpng-dev is a virtual package provided by: libpng12-dev 1.2.15~beta5-1ubuntu1 ... You should explicitly select one to install."

In human language it means that libnpg-dev is no real package, you need to install "libpng12-dev" instead ..

:)

rubbersideup
July 24th, 2007, 11:02 AM
Just do what it says: "Package libpng-dev is a virtual package provided by: libpng12-dev 1.2.15~beta5-1ubuntu1 ... You should explicitly select one to install."

In human language it means that libnpg-dev is no real package, you need to install "libpng12-dev" instead ..

:)

Thanks for the help :) in the end i managed to completely balls it up, to the point that i've had to completely format the drive and start from scratch 8)