LWN.net Logo

HOWTO Xgl under Mandriva

From:  Matthieu DUCHEMIN <alkahan-AT-free.fr>
To:  cooker-AT-mandrivalinux.org
Subject:  HOWTO Xgl under Mandriva
Date:  Mon, 13 Feb 2006 11:47:34 +0100
Archive-link:  Article, Thread

This is how I have done to run Xgl with compiz under Mandriva 2006

HOWTO XGL :
create /usr/share/aclocal/dirlist file
add the following line
/opt/fdo/share/aclocal

export PKG_CONFIG_PATH="/opt/fdo/lib/pkgconfig:$PKG_CONFIG_PATH"

cd /opt/cvs
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/cairo co glitz
cd glitz
./autogen.sh --prefix=/opt/fdo
make
make install
cd ..

cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/dri co drm
cd drm
./autogen.sh --prefix=/opt/fdo
make
make install
cd ..

mkdir xorg
cd xorg
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co util/macros
cd util/macros
./autogen.sh --prefix=/opt/fdo
make 
make install
cd /opt/cvs/xorg

compile all apps/libs/proto with
./autogen.sh --prefix=/opt/fdo
make
make install

in this order :
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/BigReqs
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/X11
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/XExt
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/XCMisc
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/KB
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/Input
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/XF86DRI
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/GL
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/Randr
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/Render
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/Fixes
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/Damage
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/XF86BigFont
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/XF86Misc
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/XF86VidMode
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/ScrnSaver
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/Resource
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/Fonts
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/XF86DGA
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/Video
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/Composite
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/Trap
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/Record
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/Xinerama
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/EvIE
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto/Fontcache

cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/xtrans
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/Xdmcp
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/Xau
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/X11
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/xkbfile
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/fontenc
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/Xfont
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/Xext
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/XRes
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/Xrender
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/Xrandr
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/Xfixes
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/Xdamage
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/Xcomposite
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/ICE
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/SM
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/Xt
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/xkbui
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/Xxf86vm
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/Xxf86misc
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/Xmu
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/Xpm
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co lib/Xaw

Now, the can compile Mesa...
cd /opt/cvs
cvs -d:pserver:anonymous@pdx.freedesktop.org:/cvs/mesa co Mesa
cd Mesa
make linux-dri-x86
cd ..

and xorg/Xgl
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co -r xgl-0-0-1 -d 
xgl-0.0.1 xserver/xorg
cd xgl
cat ../xgl-mesa-makefile-fix.diff | patch -p1
(if you use an ATI card with r200, you need one more patch)
./autogen --prefix=/opt/fdo --enable-xgl --enable-xglx --disable-xprint 
--disable-dmx --disable-xvfb --disable-xnest --with-mesa-source=/opt/cvs/Mesa
make
make install

link fonts from actual xorg to your new Xgl
cd /opt/fdo/lib/X11
ln -s fonts /usr/lib/X11/fonts

launch Xgl from a consol (TTY1) :
/opt/fdo/bin/Xgl -ac -accel xv -accel glx:pbuffer & xterm
or
/opt/fdo/bin/Xgl -ac -accel xv -accel glx:pbuffer :2 & xterm -display :2


---- to use compiz --------
cd /opt/cvs/xorg
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co app/compiz
cd app/compiz
./autogen.sh --prefix=/opt/fdo
make
make install

in your xterm (under Xgl) type :
startkde or startgnome
open a new xterm and type:
LD_LIBRARY_PATH=/opt/fdo/lib:/opt/cvs/Mesa/lib  /opt/fdo/bin/compiz --replace 
decoration wobbly fade minimize cube rotate zoom scale move resize place menu

or if you are under gnome
LD_LIBRARY_PATH=/opt/fdo/lib:/opt/cvs/Mesa/lib  /opt/fdo/bin/compiz --replace 
gconf
then, you can change setttings with gconf under apps/compiz


-- 
Mon Blog :
http://alkahan.free.fr
Le Sans fil au Mans :
http://www.lemans-sansfil.net

--- xgl-xorg/GL/mesa/swrast/Makefile.am.orig	2006-02-11 00:28:18.035057750 +0100
+++ xgl-xorg/GL/mesa/swrast/Makefile.am	2006-02-11 01:01:56.533206000 +0100
@@ -29,19 +29,17 @@
                       s_drawpix.c \
                       s_feedback.c \
                       s_fog.c \
-                      s_fragprog_to_c.c \
                       s_imaging.c \
                       s_lines.c \
                       s_logic.c \
                       s_masking.c \
                       s_nvfragprog.c \
-                      s_pixeltex.c \
                       s_points.c \
                       s_readpix.c \
                       s_span.c \
                       s_stencil.c \
-                      s_tcc.c \
+                      s_texcombine.c \
+                      s_texfilter.c \
                       s_texstore.c \
-                      s_texture.c \
                       s_triangle.c \
                       s_zoom.c



(Log in to post comments)

HOWTO Xgl under Mandriva

Posted Feb 26, 2006 22:15 UTC (Sun) by hanus (guest, #36143) [Link]

Hi, I did not succeed, any suggestion? Thanx
PS: the patch code seems reverse...

[root@hanus_ntb xgl-0.0.1]# ./autogen.sh --prefix=/opt/fdo --enable-xgl --enable-xglx --disable-xprint --disable-dmx --disable-xvfb --disable-xnest --with-mesa-source=/opt/cvs/Mesa
autoreconf-2.5x: Entering directory `.'
autoreconf-2.5x: configure.ac: not using Gettext
autoreconf-2.5x: running: aclocal --output=aclocal.m4t
autoreconf-2.5x: `aclocal.m4' is created
autoreconf-2.5x: configure.ac: tracing
autoreconf-2.5x: running: libtoolize --copy
autoreconf-2.5x: `aclocal.m4' is unchanged
autoreconf-2.5x: running: /usr/bin/autoconf
autoreconf-2.5x: running: /usr/bin/autoheader
autoreconf-2.5x: running: automake --add-missing --copy
configure.ac: installing `./install-sh'
configure.ac: installing `./mkinstalldirs'
configure.ac: installing `./missing'
GL/glx/Makefile.am: installing `./depcomp'
GL/mesa/Makefile.am: installing `./compile'
bin_PROGRAMS: variable `Xglx_programs' is used but `Xglx_programs' is undefined
autoreconf-2.5x: automake failed with exit status: 1
[root@hanus_ntb xgl-0.0.1]#

HOWTO Xgl under Mandriva

Posted Feb 28, 2006 18:26 UTC (Tue) by hanus (guest, #36143) [Link]

Found solution myself (Google): install automake 1.9.
PS: about patch: reverese signalled because CVS already patched as of Feb 16th.

Copyright © 2006, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds