rev |
line source |
paul@226
|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
paul@226
|
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
paul@226
|
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
paul@226
|
4 <head>
|
paul@226
|
5 <title>SliTaz Scratchbook - Xorg</title>
|
paul@226
|
6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
|
paul@226
|
7 <meta name="description" content="" />
|
paul@226
|
8 <meta name="expires" content="never" />
|
paul@226
|
9 <meta name="modified" content="2008-11-22 17:00:00" />
|
paul@226
|
10 <meta name="publisher" content="www.slitaz.org" />
|
paul@226
|
11 <meta name="author" content="Christophe Lincoln"/>
|
paul@226
|
12 <link rel="shortcut icon" href="favicon.ico" />
|
paul@226
|
13 <link rel="stylesheet" type="text/css" href="book.css" />
|
paul@226
|
14 </head>
|
paul@226
|
15 <body bgcolor="#ffffff">
|
paul@226
|
16
|
paul@226
|
17 <!-- Header and quick navigation -->
|
paul@226
|
18 <div id="header">
|
paul@226
|
19 <div id="quicknav" align="right">
|
paul@226
|
20 <a name="top"></a>
|
paul@226
|
21 <a href="index.html">Table of contents</a>
|
paul@226
|
22 </div>
|
paul@226
|
23 <h1><font color="#3e1220">SliTaz Scratchbook</font></h1>
|
paul@226
|
24 </div>
|
paul@226
|
25
|
paul@226
|
26 <!-- Content. -->
|
paul@226
|
27 <div id="content">
|
paul@226
|
28 <div class="content-right"></div>
|
paul@226
|
29
|
paul@226
|
30
|
paul@226
|
31 <h2><font color="#df8f06">How-to Xorg - Modular graphical server</font></h2>
|
paul@226
|
32 <ul>
|
paul@226
|
33 <li><a href="#woking">Build Xorg automatically with Tazwok.</a></li>
|
paul@226
|
34 <li><a href="#get">Download Xorg using wget.</a></li>
|
paul@226
|
35 <li><a href="#make">Compile Xorg by hand.</a></li>
|
paul@226
|
36 </ul>
|
paul@226
|
37 <p>
|
paul@226
|
38 Note SliTaz uses the Xvesa server provided by XFree86 and Xorg libraries, this page describes
|
paul@226
|
39 the compilation of Xorg libraries used by SliTaz. This document is primarily aimed at
|
paul@269
|
40 developers and contributors to the project, but it may be useful to all those seeking to rebuild
|
paul@226
|
41 Xorg and Xlib libraries from source generating a minimum of dependencies.
|
paul@226
|
42 </p>
|
paul@226
|
43
|
paul@226
|
44 <a name="woking"></a>
|
paul@226
|
45 <h3>Build Xorg automatically with Tazwok</h3>
|
paul@226
|
46 <p>
|
paul@226
|
47 On SliTaz, if you have Tazwok installed, you can rebuild Xorg with a few commands.
|
paul@226
|
48 The wok contains a package called <code>xorg</code> and another named <code>xorg-dev</code>,
|
paul@269
|
49 these can compile/cook all the packages used by Xorg on SliTaz. To compile, you must have
|
paul@226
|
50 most of the development packages installed; if this is not the case:
|
paul@226
|
51 </p>
|
paul@226
|
52 <pre> # tazpkg get-install slitaz-dev-pkgs
|
paul@226
|
53 </pre>
|
paul@226
|
54 <p>
|
paul@226
|
55 Then you can start to cook (if everything is ready, wok and development packages, etc),
|
paul@226
|
56 starting with the protos' (xproto, etc):
|
paul@226
|
57 </p>
|
paul@226
|
58 <pre> # tazwok cook xorg-dev-proto
|
paul@226
|
59 # tazwok cook xorg
|
paul@226
|
60 # tazwok cook xorg-dev
|
paul@226
|
61 </pre>
|
paul@226
|
62
|
paul@226
|
63 <a name="get"></a>
|
paul@226
|
64 <h3>Download Xorg (7.2) using wget</h3>
|
paul@226
|
65 <p>
|
paul@226
|
66 Xorg is distributed in the form of modules, which is handy because you can only install what you want,
|
paul@226
|
67 but it takes a lot of downloads. To help, we have created a small script that downloads the minimum
|
paul@226
|
68 required for SliTaz; you can find the script <code>getXorg.sh</code> in
|
paul@226
|
69 <a href="http://www.slitaz.org/en/doc/cookbook/slitaz-tools.html">SliTaz tools (1.1)</a>.
|
paul@226
|
70 This script is no longer updated, developers use the
|
paul@226
|
71 <a href="http://www.slitaz.org/en/doc/cookbook/wok-tools.html">wok and tools</a>.
|
paul@226
|
72 To use the script, it must be placed in the directory where you want to download Xorg:
|
paul@226
|
73 </p>
|
paul@226
|
74 <pre> # cd ..
|
paul@226
|
75 # mkdir Xorg && cd Xorg
|
paul@226
|
76 # cp slitaz-tools-1.1/utils/getXorg-7.2.sh .
|
paul@226
|
77 # ./getXorg-7.2.sh
|
paul@226
|
78 </pre>
|
paul@226
|
79 <a name="make"></a>
|
paul@226
|
80 <h3>Compile Xorg by hand</h3>
|
paul@226
|
81 <p>
|
paul@226
|
82 Compiling Xorg can take a long time, there are many packages. To commence you need to
|
paul@269
|
83 compile the downloaded proto packages. You can use the command <code>make DESTDIR=$PWD/_pkg install</code> to
|
paul@226
|
84 install the package in a given directory. Example:
|
paul@226
|
85 </p>
|
paul@226
|
86 <pre> # cd proto
|
paul@226
|
87 # tar xzf xproto-X11R7.2-7.0.10.tar.gz
|
paul@226
|
88 # cd xproto-X11R7.2-7.0.10
|
paul@226
|
89 # ./configure --prefix=/usr --sysconfdir=/etc \
|
paul@226
|
90 --mandir=/usr/share/man --localstatedir=/var \
|
paul@226
|
91 --build=i486-pc-linux-gnu --host=i486-pc-linux-gnu
|
paul@226
|
92 # make
|
paul@226
|
93 # make install
|
paul@226
|
94 </pre>
|
paul@226
|
95 <p>
|
paul@269
|
96 Compile libraries by taking again the options used by proto. Example using the package to
|
paul@226
|
97 compile xtrans, remember to run <code>ldconfig</code> if you install the package on the development machine:
|
paul@226
|
98 </p>
|
paul@226
|
99 <pre> # cd .. && cd lib
|
paul@226
|
100 # tar xzf xtrans-X11R7.2-1.0.3.tar.gz
|
paul@226
|
101 # cd xtrans-X11R7.2-1.0.3
|
paul@226
|
102 # ./configure --prefix=/usr --sysconfdir=/etc \
|
paul@226
|
103 --mandir=/usr/share/man --localstatedir=/var \
|
paul@226
|
104 --build=i486-pc-linux-gnu --host=i486-pc-linux-gnu
|
paul@226
|
105 # make
|
paul@226
|
106 # make install
|
paul@226
|
107 # ldconfig
|
paul@226
|
108 </pre>
|
paul@226
|
109 <p>
|
paul@226
|
110 Once all the packaged libraries are compiled, you can begin to compile X applications such as the
|
paul@226
|
111 graphical terminal Xterm. Note: SliTaz uses the RGB package containing the /usr/share/X11/rgt.text
|
paul@226
|
112 file for defining colors. Example using the <code>xsetroot</code> application that permits
|
paul@226
|
113 you to change the background color of the screen (modify $VERSION for the version that you want downloaded):
|
paul@226
|
114 </p>
|
paul@226
|
115 <pre> # cd .. && cd app
|
paul@226
|
116 # tar xzf xsetroot-$VERSION.tar.gz
|
paul@226
|
117 # cd xsetroot-$VERSION
|
paul@226
|
118 # ./configure --prefix=/usr --sysconfdir=/etc \
|
paul@226
|
119 --mandir=/usr/share/man --localstatedir=/var \
|
paul@226
|
120 --build=i486-pc-linux-gnu --host=i486-pc-linux-gnu
|
paul@226
|
121 # make && make install
|
paul@226
|
122 </pre>
|
paul@226
|
123
|
paul@226
|
124
|
paul@226
|
125 <!-- End of content -->
|
paul@226
|
126 </div>
|
paul@226
|
127
|
paul@226
|
128 <!-- Footer. -->
|
paul@226
|
129 <div id="footer">
|
paul@226
|
130 <div class="footer-right"></div>
|
paul@226
|
131 <a href="#top">Top of the page</a> |
|
paul@226
|
132 <a href="index.html">Table of contents</a>
|
paul@226
|
133 </div>
|
paul@226
|
134
|
paul@226
|
135 <div id="copy">
|
paul@226
|
136 Copyright © 2008 <a href="http://www.slitaz.org/en/">SliTaz</a> -
|
paul@226
|
137 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>;<br />
|
paul@226
|
138 Documentation is under
|
paul@226
|
139 <a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License</a>
|
paul@226
|
140 and code is <a href="http://validator.w3.org/">valid xHTML 1.0</a>.
|
paul@226
|
141 </div>
|
paul@226
|
142
|
paul@226
|
143 </body>
|
paul@226
|
144 </html>
|