Latest Xgl code
Rich Wareham
rjw57 at hermes.cam.ac.uk
Mon Jan 9 01:54:20 PST 2006
Christian Güdel wrote:
> On Wed, 2006-01-04 at 10:08 +0000, Rich Wareham wrote:
>> I also managed to get it working under Ubuntu (just plain ol' x86 this
>> time) along with patched Mesa and glxcompmgr.
>
> Could you please describe just in a few sentences what you've done? I'd
> like to test this out too but I never managed to build Xgl on Ubuntu.
From memory so YMMV:
0) I compiled against a self-built X.org release rather than use the
Ubuntu X11 dev packages since I was playing with the former beforehand.
I don't know quite what packages one requires but most of libx*-dev
probably :).
1) Make sure you have latest Mesa source and patch with patches
available from this list.
2) Compile with 'make linux-dri-x86'. I had to modify configs/linux-dri
to change the X include/linker directories but that was because I
already had an X snapshot insstalled elsewhere.
3) The Mesa libs should be installed in the Mesa build tree.
4) Check out the latest kdrive CVS and build with (note I had an Xorg
snapshot built in $HOME/Development/xgl-build/).
$ export PREFIX="$HOME/Development/xgl-build/"
$ export XSERVER_CFLAGS="-I$PREFIX/include/X11 -I$PREFIX/include/"
$ export CFLAGS="-I$PREFIX/include/ -I$PREFIX/include/X11/"
$ export XSERVER_LIBS="-L$PREFIX/lib/ -L$PREFIX/lib/X11/"
$ export LDFLAGS="-L$PREFIX/lib/ -L$PREFIX/lib/X11/"
$ export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig/"
$ ./configure --enable-xglserver --enable-glx --enable-xkb
--prefix=$PREFIX --with-mesa-source=$HOME/Development/xgl/Mesa
--disable-kdriveserver
5) A quick 'make all install' later and we're home and dry.
6) Start your new server:
$ cd $PREFIX/bin
$ startx xterm -- ./Xgl :1 -ac -accel xv -accel glx -fullscreen
(You may need to set LD_PRELOAD="/usr/lib/libGL.so" depending on how
exactly your environment is set up).
More information about the xorg
mailing list