1 TITLE: Installing XFree86-4.2.0 with DRI and Glide
3 AUTHOR: Luke A. Guest <laguest@nebulas.demon.co.uk>
6 This hint basically shows how to install XFree86-4.2.0 with DRI
7 and Glide support without the hassle the other hints go to.
11 1) Firstly, you'll need to download the correct packages.
13 * Get the X420src-1.tgz, X420src-2.tgz & X420src-1.tgz from
14 ftp.xfree86.org, also get the 4.2.0-libGLU-bad-extern.patch from
17 * From http://dri.sourceforge.net/res.phtml, download:
19 2) The glide3headers.tgz archive.
20 3) A libglide3.so for your platform.
22 2) Then you'll need to get the current Glide source out of CVS.
24 cvs -d:pserver:anonymous@cvs.glide.sourceforge.net:/cvsroot/glide login
25 cvs -z3 -d:pserver:anonymous@cvs.glide.sourceforge.net:/cvsroot/glide \
27 cvs -z3 -d:pserver:anonymous@cvs.glide.sourceforge.net:/cvsroot/glide \
30 tar -cvzpf glide3x-cvs.tgz glide3x
32 3) Install the Glide headers and library:
35 tar -xzpf glide3headers.tar.gz &&
36 cp libglide3.so /usr/lib/
38 4) Extract the X sources and apply the patch:
41 tar -xvpf X420src-1.tgz &&
42 tar -xvpf X420src-2.tgz &&
43 tar -xvpf X420src-3.tgz &&
44 patch -p2 < 4.2.0-libGLU-bad-extern.patch
46 5) Create a host.def file:
48 cp xc/config/cf/xf86site.def xc/config/cf/host/def
50 Now edit this file setting up preferences, I used the standard stuff and added
51 some extra defines from the other hints.
55 make World 2>&1 | tee compile.log
57 Check for errors and compile again if there are any.
59 N.B: The makefile will clean the directory of any compiled binaries every time,
60 so you may need to edit the makefile to fix this.
64 pushd config && make install &&
65 cd ../include && make install &&
66 cd ../programs && make install &&
67 cd ../fonts && make install &&
68 cd ../lib && make install &&
69 cd ../doc && make install &&
72 8) Compile NLS support:
74 export PATH=$PATH:/usr/X11R6/bin
79 9) Set up the symbolic links:
81 ln -s /usr/X11R6/include/X11 /usr/include/X11
82 ln -s /usr/X11R6/lib/X11 /usr/lib/X11
84 I'm really not sure if you actually nedd the lib one.
88 Follow the dri hint at this point and you should have a nice new version of
93 You really should use the sample config to get this working, or you could
94 use one of the tools. I used my existing X config and changed the mouse as I
95 don't have USB working yet.
97 12) Test your X installation:
101 Inside one of the xterm's type:
105 This should tell you whether you have a successfully installed DRI enabled X
110 Should give you an indication of the speed of OpenGL.