Typo
[linux_from_scratch_hints.git] / OLD / xfree86_4.2.0_dri.txt
blob109dd0a8f297b81773684f492d544837221e0380
1 TITLE:          Installing XFree86-4.2.0 with DRI and Glide
2 LFS VERSION:    All
3 AUTHOR:         Luke A. Guest <laguest@nebulas.demon.co.uk>
5 SYNOPSIS:
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.
9 HINT:
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
15            the fixes directory.
17          * From http://dri.sourceforge.net/res.phtml, download:
18            1) An X config file.
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 \
26      co glide3x
27  cvs -z3 -d:pserver:anonymous@cvs.glide.sourceforge.net:/cvsroot/glide \
28      co swlibs
29  mv swlibs glide3x/
30  tar -cvzpf glide3x-cvs.tgz glide3x
32 3) Install the Glide headers and library:
34  cd /usr/include &&
35  tar -xzpf glide3headers.tar.gz &&
36  cp libglide3.so /usr/lib/
38 4) Extract the X sources and apply the patch:
40  cd /usr/src &&
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.
53 6) Compile:
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.
62 7) Install X:
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 &&
70  popd
72 8) Compile NLS support:
74  export PATH=$PATH:/usr/X11R6/bin
75  cd nls &&
76  xmkmf &&
77  make && make install
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.
86 10) Recompile Glide:
88 Follow the dri hint at this point and you should have a nice new version of
89 Glide installed.
91 11) Configure X:
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:
99  startx
101 Inside one of the xterm's type:
103  glxinfo
105 This should tell you whether you have a successfully installed DRI enabled X
106 server; also:
108  glxgears
110 Should give you an indication of the speed of OpenGL.
112 That's it.