Compiz on AIGLX

Hanno's Blog

Wednesday, June 21. 2006

Compiz on AIGLX


Trackbacks

Es wabbelt
Es war ja lang überfällig, aber jetzt endlich wabbelt mein Kubuntu auf dem Laptop. Hanno ist da ja schon länger drin in der Materie, aber der Ehrgeiz hat mich heute mal gepackt und ich musste das auch ausprobieren. Und das ist erst mal schnell. Ich merke
Weblog: Bernds Blog
Tracked: Nov 09, 15:37

Comments
Display comments as (Linear | Threaded)

How exactly do we get compiz to start? For me the --replace fails to take over from metacity. I tried putting the two lines in a script and replacing metacity in .gnom2/session with the script but It didn't really work. Just got a black screen with the gnome splash. But I could rotate around the black cube and every 4th time I'd come back to the splash.
#1 Dan Ballard (Homepage) on 2006-06-21 09:22 (Reply)
Ahh, so that's not just me :)

I worked around it by doing "killall metacity && LIBGL_ALWAYS_INDIRECT=1 compiz ...." (just kill metacity and have compiz take over in the split second before it respawns :) yes it's ugly but it did seem to work.

compiz seems to be mostly working, although its idea of how large my monitors are does not match reality (it maximizes windows to take up all of my left monitor and half of the right one).

Can't get metacity's compositing manager working. It doesn't do any compositing at all unless I set /apps/metacity/general/compositing_manager to true in gconf. If I do set that all my windows turn into blueish-purple rectangles (they do seem to have some resizing effects applied to them, but without the contents visible it's not that useful :)
#1.1 marienz on 2006-06-21 11:38 (Reply)
Holy crap. that worked. put it in a a script and now I have compiz working!
thank you.

On a side note, Quake3 flashes black in between some redraws and totem stays black when playing movies.

So I currently have a second script to switch back to metacity for now ;)

Thank you so much!
#1.1.1 Anonymous on 2006-06-21 20:51 (Reply)
Thank you so much! that worked and this is awesome.

Quake3 flashes black between refreshes and totem stays black unfortunately. So I just have two switch scripts. Compiz for general purpose and switch back to metacity for games and movies ;)

This is awesome :)
#1.1.2 Dan Ballard (Homepage) on 2006-06-21 20:53 (Reply)
I also noticed that --replace sometimes doesn't work (for me with kwin), will look deeper into that, seems like a compiz-problem.
Your other problem sounds like your gnome-start is hanging at some point.
#1.2 Hanno (Homepage) on 2006-06-21 18:34 (Reply)
I get errors both when trying to compile metacity and compiz, the errors look alike:

c-window.o: In function `meta_comp_window_explode':
c-window.c:(.text+0xc4c): undefined reference to `cm_drawable_node_get_viewable'
c-window.o: In function `update_explosion':
c-window.c:(.text+0x149d): undefined reference to `cm_drawable_node_get_viewable
'
c-window.o: In function `meta_comp_window_refresh_attrs':
c-window.c:(.text+0x15ea): undefined reference to `cm_drawable_node_get_viewable
'
c-window.c:(.text+0x172e): undefined reference to `ws_window_send_client_message
'
c-window.c:(.text+0x176c): undefined reference to `ws_window_query_override_redi
rect'
c-window.c:(.text+0x17a0): undefined reference to `ws_window_send_configure_noti
fy'
collect2: ld returned 1 exit status
make[4]: *** [metacity] Error 1

Versions:
libdrm: 2.1_alpha20060614
xorg-server: 1.1.0-r1
xorg-x11: 7.1
mesa: 6.5.1_pre20060620

Any suggestions?
#2 Lasse Bigum on 2006-06-21 18:28 (Reply)
Looks like your libcm is too old, did you compile that from any other source or from my overlay?
Try recompiling it with my libcm-ebuild.
#2.1 Hanno (Homepage) on 2006-06-21 18:32 (Reply)
Same problem here. Metacity fails although libcm is the latest from your repository.

In addition I had to remove
epatch ${FILESDIR}/xgl-arrayobj.diff
from xgl-1.1.99.2_pre20060620.ebuild, because the patch does not apply cleanly anymore.
#2.1.1 Michael on 2006-06-21 19:53 (Reply)
compiz does also not compile cleanly:
compiz-0.0.13.fedora1-composite-cube-logo.patch can not be applied. Without this patch it works fine.
#2.1.1.1 Michael on 2006-06-21 20:04 (Reply)
Hanno: I already did,
libcm: 0.0.22_pre20060616

I already upgraded to the latest version in your repo as of today.
#2.1.2 Lasse Bigum on 2006-06-22 13:06 (Reply)
libcm failed to emerge:

It was my"old" version of glib? Ensure that you have glib >= 2.10.3 i think !!! 2.8.X did not work in my case !!!
#3 WL (Homepage) on 2006-06-22 10:45 (Reply)
Minor tweak to the compiz ebuild: adding --sysconfdir=/etc to the autogen.sh call makes it install the gconf schema file in /etc instead of /usr/etc, which works better :)
#4 marienz on 2006-06-22 16:34 (Reply)
This is awesome but where do I report bugs?
Certain dialogs fail to fill themselves although appear to respond to clicks where buttons should be.
Network manager will pop up a enter wep password but it appears as an empty window manager until i switch back to metacity. and error dialogs for frozen programs also appear empty.
#5 Dan+Ballard (Homepage) on 2006-06-22 22:26 (Reply)
Hey, installed everything using your xgl-overlay, but I'm having quite the large problem: the compiz from your overlay does not work, neither does the compiz from CVS... the only one that works for me currently is compiz-quinnstorm, which too works very poorly, some weird things happening now with it... any ideas? When I say your compiz does not work, I mean it gets up to setting the background image, but that's ALL... it quits afterward, and there's no debug option to output anything useful... any help would be great. :)
#6 Crampre on 2006-06-23 08:38 (Reply)
(Regarding my last post) Ah, actually, I think I know what's going on... --replace gconf does *not* work with this compiz for some reason, I have to specify the exact modules to use... any workaround for this?
#7 Campre on 2006-06-23 09:15 (Reply)
Sorry for filling up this post and wasting your guys' time... my bad... I figured out that I need to recursively unset all gconf settings and reset them, which worked. :)
#8 Campre on 2006-06-23 10:08 (Reply)
To get Totem to work playing movies in compiz, go into the multimedia system selector (desktop->preferences) and under video tell it to use Xwindow (no Xv) as the output plugin and totem and movies work fine :)
#9 Dan+Ballard (Homepage) on 2006-06-24 23:44 (Reply)
Looking great, another highlight form our linux community. nice work
#10 PCMasters (Homepage) on 2006-06-25 13:14 (Reply)
Thanks Hanno for your work. Unfortunately, I cannot emerge mesa (6.5.1_pre20060620). I get a sandbox error tyring to install into /usr/local/include/GL/*.h

Anyone else having this error or know how to fix it?

Thanks in advance for any help.
#11 Blair1 on 2006-06-26 04:41 (Reply)
It worked for me without errors last nite after updating to latest version.
#11.1 Blair1 on 2006-06-30 20:32 (Reply)
When emerging compiz, emerge complains saying that it failed to apply the following patches...

compiz-0.0.13.fedora1-composite-cube-logo.patch
compiz-0.0.13.fedora1-tfp-server-extension.patch

Do you know how to fix this?
#12 reydan on 2006-06-26 20:56 (Reply)
I also get the same type of sandbox error as Blair when trying to install mesa, but in /usr/include ... get lots of permission denied errors... any ideas?
#13 Campre on 2006-06-28 07:54 (Reply)
I recive this error when compile compiz:

----------------------------------------------------
Using $(sysconfdir)/gconf/schemas as install directory for schema files
checking for PLACE... yes
checking for LIBSVG_CAIRO... yes
checking for GNOME_WINDOW_DECORATOR... yes
checking for wnck_window_has_name... no
checking for GNOME_WINDOW_SETTINGS... yes
configure: error: Compiz is now maintained in git:
git://git.freedesktop.org/git/xorg/app/compiz
Please use that repository.
---------------------------------------------------------------

I must download compiz from this "git"? How? Which command?
Thanks
#14 hitz on 2006-07-06 04:34 (Reply)
And that
----------------------------------------------------
!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/compiz-0.0.16_pre20060628/work/compiz/config.log

!!! ERROR: x11-wm/compiz-0.0.16_pre20060628 failed.
Call stack:
ebuild.sh, line 1545: Called dyn_compile
ebuild.sh, line 940: Called src_compile
compiz-0.0.16_pre20060628.ebuild, line 53: Called econf '--enable-gnome' '--
disable-kde' '--enable-libsvg-cairo'
ebuild.sh, line 541: Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if rel
evant.

!!! This ebuild is from an overlay: '/usr/local/xgl-overlay'
--------------------------------------------------------
#14.1 hitz on 2006-07-06 04:36 (Reply)
Had the same problem. Just update the overlay from SVN to fix it. :-)
#14.1.1 jvale on 2006-07-07 17:44 (Reply)
hey, compiz failed with the following error message:

>>> Unpacking source...
* git update start -->
* repository: git://git.freedesktop.org/git/xorg/app/compiz
* local clone: /distfiles/git-src/compiz
* committish: master

* Applying compiz-0.0.13.fedora1-composite-cube-logo.patch ... [ ok ]
* Applying compiz-0.0.13.fedora1-fbconfig-depth-fix.patch ... [ ok ]
* Applying compiz-0.0.13.fedora1-gl-include-inferiors.patch ... [ ok ]
* Applying compiz-hardcode-fullscreen-updates-2.patch ... [ ok ]
* Applying compiz-0.0.13.fedora1-tfp-server-extension.patch ... [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/compiz-0.0.16_pre20060706/work/compiz ...
* Running eautoreconf in '/var/tmp/portage/compiz-0.0.16_pre20060706/work/compiz' ...
* Running aclocal ... [ ok ]
* Running libtoolize --copy --force --automake ... [ ok ]
* Running aclocal ... [ ok ]
* Running autoconf ... [ !! ]

* Failed Running autoconf !
*
* Include in your bugreport the contents of:
*
* /var/tmp/portage/compiz-0.0.16_pre20060706/temp/autoconf-12958.out


!!! ERROR: x11-wm/compiz-0.0.16_pre20060706 failed.
Call stack:
ebuild.sh, line 1545: Called dyn_compile
ebuild.sh, line 940: Called src_compile
compiz-0.0.16_pre20060706.ebuild, line 45: Called eautoreconf
autotools.eclass, line 67: Called eautoconf
autotools.eclass, line 137: Called autotools_run_tool 'autoconf'
autotools.eclass, line 193: Called die

!!! Failed Running autoconf !
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/xgl-overlay'

(compiz-0.0.13.fedora1-new-cm-selection.patch doesn't apply cleanly :/)

contents of /var/tmp/portage/compiz-0.0.16_pre20060706/temp/autoconf-12958.out:

***** autoconf *****

configure.ac:121: error: possibly undefined macro: AM_GCONF_SOURCE_2
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
#15 phlexx on 2006-07-08 16:46 (Reply)
Now, I have the same problem...
#15.1 hitz on 2006-07-08 17:56 (Reply)
I encountered this issue when installing x11-wm/compiz using kde. Apparently gconf macros are referenced here by autoconf. After installing gconf all compiled nicely.
#15.1.1 ejohnson on 2007-07-14 01:06 (Reply)
With the mesa version from your overlay libGL looks for my driver in the wrong path:
libGL error: dlopen /usr/X11R6/lib/modules/dri/r300_dri.so failed (/usr/X11R6/lib/modules/dri/r300_dri.so: cannot open shared object file: No such file or directory)
That doesn't happen with mesa from portage
#16 fuoco on 2006-07-08 23:07 (Reply)
I've still not been able to get any help on the Mesa Sandbox error... what the hell is this? Trying to install it in /usr/include, a bunch of permission denied errors....
#17 Campre on 2006-07-10 18:36 (Reply)
I've got a sandbox violation error when I try to install mesa-6.5.1_pre20060627 from your overlay. Apparently it tries to run mesainstall script which tries to write directly into /usr/include and /usr/lib.
#18 Bruno on 2006-07-10 19:26 (Reply)
You can try adding FEATURES="-sandbox" in your /etc/make.conf
#18.1 MickeyD on 2006-07-11 12:13 (Reply)
Thanks, but I got over it by modifying the mesa ebuild like so:

src_install() {
dodir /usr
make \
INSTALL_DIR=${D}/usr \
DESTDIR=${D}/usr \
INCLUDE_DIR=${D}/usr/include \
LIB_DIR=${D}/usr/${get_libdir} \

I added INSTALL_DIR, DESTDIR and INCLUDE_DIR to it. I know this goes over the "eselect opengl" interface, but I don't need it since I use the xorg opengl.
#18.1.1 Bruno on 2006-07-12 03:31 (Reply)
With overlay from 12-07-2006, I get the following error from compiz:

make[1]: Entering directory `/var/tmp/portage/compiz-0.0.13_pre20060710/work/compiz/po'
if test -n ""; then \
/var/tmp/portage/compiz-0.0.13_pre20060710/image//usr/share; \
else \
/bin/sh ../mkinstalldirs /var/tmp/portage/compiz-0.0.13_pre20060710/image//usr/share; \
fi
/bin/sh: ../mkinstalldirs: No such file or directory
make[1]: *** [install-data-yes] Error 127
make[1]: Leaving directory `/var/tmp/portage/compiz-0.0.13_pre20060710/work/compiz/po'
make: *** [install-recursive] Error 1

!!! ERROR: x11-wm/compiz-0.0.13_pre20060710 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_install
ebuild.sh, line 1013: Called src_install
compiz-0.0.13_pre20060710.ebuild, line 52: Called die
#19 Maarten Wisse on 2006-07-12 13:12 (Reply)
me too i get the same error, another thing after installing x11-base/xorg-server-1.1.0-r1 glxinfo says no direct rendering even if equery uses xorg-server shows the dri flag, 3d acceleration seems to be enabled like before becouse opengl screensavers run ok...is this normal like in xgl-server?
#19.1 DAX on 2006-07-12 15:53 (Reply)
With xorg-server from overlay me too don't have direct rendering. Howeber with xorg-server from gentoo I have direct rendering.
Why??
#19.1.1 hitz on 2006-07-13 15:37 (Reply)
Ok, I have compiled the new xorg-server version from the overlay and now I have direct rendering.

But when I start compiz, I recive this error: "compiz: No composite extension" And compiz doesn't start...
Then, I hace compiled metacity with xcompositor flag, and If I start it, I recive:
"Window manager warning: Log level 16: Disabling compositor since the server is missing at least one of the COMPOSITE, DAMAGE, FIXES or TEST extensions"

What can I do?
#19.1.1.1 hitz on 2006-07-13 20:02 (Reply)
You need this in xorg.conf:

Section "Extensions"
Option "Composite" "true"
EndSection
#19.1.1.1.1 Maarten Wisse on 2006-07-14 11:17 (Reply)
Ok, problem solved. Very thanks.

But now there is another problem... To start compiz I do:
---------------------------------------------------------------------------
$ gnome-session-remove metacity
$ LIBGL_ALWAYS_INDIRECT=1 compiz --replace --strict-binding move resize minimize place decoration wobbly cube rotate scale switcher zoom &
$ gnome-window-decorator &
---------------------------------------------------------------------------
And recive this error:
"compiz: No stencil buffer. Clipping of transformed windows is not going to be correct when screen is transformed."

Howeber, compiz works good... but not when I minimize a window, or some other thing...

I have seen in this web a post talking about that, but I not undestand how to solve the problem...
#19.1.1.1.1.1 hitz on 2006-07-14 18:41 (Reply)
Do U solved the problem with the building of compiz from the overlay?
#19.1.1.1.1.2 DaX on 2006-07-15 17:21 (Reply)
I have downloaded the overlay and the error is still present...what can i do? TQ


make[1]: Entering directory `/var/tmp/portage/compiz-0.0.13_pre20060714/work/compiz/po'
if test -n ""; then \
/var/tmp/portage/compiz-0.0.13_pre20060714/image//usr/share; \
else \
/bin/sh ../mkinstalldirs /var/tmp/portage/compiz-0.0.13_pre20060714/image//usr/share; \
fi
/bin/sh: ../mkinstalldirs: No such file or directory
make[1]: *** [install-data-yes] Error 127
make[1]: Leaving directory `/var/tmp/portage/compiz-0.0.13_pre20060714/work/compiz/po'
make: *** [install-recursive] Error 1

!!! ERROR: x11-wm/compiz-0.0.13_pre20060714 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_install
ebuild.sh, line 1013: Called src_install
compiz-0.0.13_pre20060714.ebuild, line 60: Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/xgl-overlay'
#20 DAX on 2006-07-15 18:56 (Reply)
I have installed this compiz version without problems. Try to download the last overlay and compile all: libdrm mesa xorg-server-1.1.1-r1 and compiz
#20.1 hitz on 2006-07-16 16:53 (Reply)
I'm having the same problem right now. i've rebuilt everything except xorg server 1.1.1 because i need to stick to xorg 7.0
#20.2 rhc on 2006-07-17 04:33 (Reply)
Anybody knows how to solve my problem?
"compiz: No stencil buffer. Clipping of transformed windows is not going to be correct when screen is transformed."
#20.3 hitz on 2006-07-17 12:44 (Reply)
dunno if it's the right thing to do, but compiz does install with this:

sed -i -e '/^mkinstalldirs/a MKINSTALLDIRS=\$(install_sh) -d' /var/tmp/portage/compiz-0.0.13_pre20060714/work/compiz/po/Makefile*

i'm having the no glx_ext_... problem, so I can't tell if it works
#20.4 ken on 2006-07-17 18:47 (Reply)
Finally I was able to compile compiz. Simply I have downloaded the latest ~x86 mesa libdrm xorg-server and compiz (before i had done an emerge -Dun world). All plugins go (except water becouse GL_fragment_program extension is missing from my RADEON mobility 9200). I have only a question: I have noticed that when i scroll a web page in firefox scrolling is a little bit slow and X takes 70% of system resources so my pentium M scale increase cpu frequency and the fan became noiser...so am I using the hardware acc? How can I undrestand if I'm using it? The opengl screensaver go run well, maybe AIGLX is not working with 3d acc...
Do U noticed this problem too?
I have also a pc with XGL and it seems to be less cpu's hungry...
#21 dax on 2006-07-18 01:55 (Reply)
!!! ERROR: x11-wm/compiz-quinnstorm-0.0.13.20 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_compile
ebuild.sh, line 939: Called src_compile
compiz-quinnstorm-0.0.13.20.ebuild, line 59: Called gnome2_src_compile '--with-gl-libs=-Wl,-R/usr/lib/opengl/xorg-x11/lib/ -L/usr/lib/opengl/xorg-x11/lib/ -lGL' '--libdir=/usr/lib' '--enable-gnome' '--enable-libsvg-cairo' '--disable-kde'
gnome2.eclass, line 64: Called die

!!! compile failure
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/portage/local/layman/portage-xgl'
#22 defcon on 2006-08-16 06:23 (Reply)
hi

i have compile my X with aiglx an merge quinnstorm without problem.
how can i get this works for kde without gnome???

helpme please
#23 Carlos Moyano Cubillos on 2006-09-29 15:25 (Reply)

Add Comment

E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

 
 

About

This blog is written by Hanno Böck. Unless noted otherwise, its content is licensed as CC0.

You can find my web page with links to my work as a journalist here.

I am also publishing a newsletter about climate change and decarbonization technologies.

The blog uses the free software Serendipity and is hosted at schokokeks.org.

Hanno on Mastodon | Contact / Imprint | Privacy / Datenschutz