slitaz-doc-wiki-data view pages/en/scratchbook/xorg.txt @ rev 45

Update pages/en folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun May 01 07:41:07 2011 +0000 (2011-05-01)
parents
children
line source
1 ====== How-to Xorg - Modular graphical server ======
3 Note SliTaz uses the Xvesa server provided by XFree86 and Xorg libraries, this page describes the compilation of Xorg libraries used by SliTaz. This document is primarily aimed at developers and contributors to the project, but it may be useful to all those seeking to rebuild Xorg and Xlib libraries from source generating a minimum of dependencies.
5 ===== Build Xorg automatically with Tazwok =====
7 On SliTaz, if you have Tazwok installed, you can rebuild Xorg with a few commands. The wok contains a package called "xorg" and another named "xorg-dev", these can compile/cook all the packages used by Xorg on SliTaz. To compile, you must have most of the development packages installed; if this is not the case:
9 # tazpkg get-install slitaz-dev-pkgs
11 Then you can start to cook (if everything is ready, wok and development packages, etc), starting with the protos' (xproto, etc):
13 # tazwok cook xorg-dev-proto
14 # tazwok cook xorg
15 # tazwok cook xorg-dev
17 ===== Download Xorg (7.2) using wget =====
19 Xorg is distributed in the form of modules, which is handy because you can only install what you want, but it takes a lot of downloads. To help, we have created a small script that downloads the minimum required for SliTaz; you can find the script "getXorg.sh" in [[http://www.slitaz.org/en/doc/cookbook/slitaz-tools.html|SliTaz tools (1.1)]]. This script is no longer updated, developers use the [[http://www.slitaz.org/en/doc/cookbook/wok-tools.html|wok and tools]]. To use the script, it must be placed in the directory where you want to download Xorg:
21 # cd ..
22 # mkdir Xorg && cd Xorg
23 # cp slitaz-tools-1.1/utils/getXorg-7.2.sh .
24 # ./getXorg-7.2.sh
26 ===== Compile Xorg by hand =====
28 Compiling Xorg can take a long time, there are many packages. To commence you need to compile the downloaded proto packages. You can use the command "make DESTDIR=$PWD/_pkg install" to install the package in a given directory. Example:
30 # cd proto
31 # tar xzf xproto-X11R7.2-7.0.10.tar.gz
32 # cd xproto-X11R7.2-7.0.10
33 # ./configure --prefix=/usr --sysconfdir=/etc \\
34 --mandir=/usr/share/man --localstatedir=/var \\
35 --build=i486-pc-linux-gnu --host=i486-pc-linux-gnu
36 # make
37 # make install
39 Compile libraries by taking again the options used by proto. Example using the package to compile xtrans, remember to run "ldconfig" if you install the package on the development machine:
41 # cd .. && cd lib
42 # tar xzf xtrans-X11R7.2-1.0.3.tar.gz
43 # cd xtrans-X11R7.2-1.0.3
44 # ./configure --prefix=/usr --sysconfdir=/etc \\
45 --mandir=/usr/share/man --localstatedir=/var \\
46 --build=i486-pc-linux-gnu --host=i486-pc-linux-gnu
47 # make
48 # make install
49 # ldconfig
51 Once all the packaged libraries are compiled, you can begin to compile X applications such as the graphical terminal Xterm. Note: SliTaz uses the RGB package containing the /usr/share/X11/rgt.text file for defining colors. Example using the "xsetroot" application that permits you to change the background color of the screen (modify $VERSION for the version that you want downloaded):
53 # cd .. && cd app
54 # tar xzf xsetroot-$VERSION.tar.gz
55 # cd xsetroot-$VERSION
56 # ./configure --prefix=/usr --sysconfdir=/etc \\
57 --mandir=/usr/share/man --localstatedir=/var \\
58 --build=i486-pc-linux-gnu --host=i486-pc-linux-gnu
59 # make && make install