source: x/installing/xfree86/xfree86-inst.xml@ db14638

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb v5_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since db14638 was db14638, checked in by Bruce Dubbs <bdubbs@…>, 21 years ago

Added XFree86 patch file and moved fontconfig to X libraries

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@974 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 9.2 KB
Line 
1<sect2>
2<title>Installation of XFree86</title>
3
4<sect3>
5<title>Kernel Compilation Settings</title>
6<para>If you have an Intel P6 (Pentium Pro, Pentium II and later) it is recommended
7that you compile MTRR (Memory Type Range Registers) support into the kernel.
8The kernel can map Cyrix and AMD CPUs to the MTRR interface so selecting this
9option is useful for those processors also.
10This option is found in the
11"Processor type and features" menu. It can increase performance of
12image write operations 2.5 times or more on PCI or AGP video cards.</para>
13
14<para>In the "Character Devices" section, enable AGP Support and select the chipset
15support on your motherboard. If you do not know the chipset, you may select
16all the chip types at the expense of extra kernel size. You can usually
17determine your motherboard's chipset by doing:
18<screen><userinput>cat /proc/pci</userinput></screen></para>
19
20<para>In the "Character Devices" section, <emphasis>disable</emphasis> Direct
21Rendering Manager unless you have a Direct Rendering Infrastructure (DRI)
22supported video card. A complete list of DRI supported video cards can
23be found at <ulink url="http://dri.sourceforge.net" /> in the Status section.
24Currently,
25supported cards include those from 3dfx (Voodoo, Banshee), 3Dlabs,
26ATI (Rage Pro, Rage 128,
27Radeon 7X00, Radeon 2), Intel (i810, i815), and Matrox (G200, G400, G450).
28Additionally NVidia provides their own closed source binary drivers.
29If you do enable DRI here, make sure you select the video card(s) you want
30to support as a <emphasis>module</emphasis>.</para>
31
32<para>If you made any changes to the kernel configuration, recompile with
33<screen><userinput>make dep &amp;&amp;
34make bzImage &amp;&amp;
35make modules &amp;&amp;
36make modules_install</userinput></screen>
37</para>
38
39<para>Copy <filename>/usr/src/linux/arch/i386/boot/bzImage</filename> and
40<filename>/usr/src/linux/System.map</filename> to
41<filename>/boot</filename>, edit <filename>/etc/lilo.conf</filename>
42appropriately and run <filename>lilo</filename>. If you use
43<filename>grub</filename>, edit <filename>/boot/grub/grub.conf</filename>
44and add the new kernel to the boot menu.
45</para>
46
47<note><para>If you build XFree86 in a chroot environment, make sure the kernel
48version of the base system and the target system are the same. This is
49especially important if you enabled DRI support as a module as
50instructed above.</para></note>
51
52</sect3>
53
54<sect3><title>Creating <filename>host.def</filename></title>
55
56<para>Although XFree86 will compile without a host.def file, the following file
57is recommended for customizing the installation. Start from
58the <filename>xc</filename> directory.</para>
59
60<note><para>The <filename>host.def</filename> file is a c file, not the
61usual configuration file. If you make any changes, be sure the comment characters
62(<userinput>/*</userinput> and <userinput>*/</userinput>)
63are balanced. Most of the entries in the file below are
64commented out with the default settings shown.
65</para></note>
66
67<para><screen><userinput>cat &gt; config/cf/host.def &lt;&lt; "EOF"
68/* Begin XFree86 host.def file */
69
70/* System Related Information. If you read and configure only one
71 * section then it should be this one. The Intel architecture defaults are
72 * set for a i686 and higher. Axp is for the Alpha architecture and Ppc is
73 * for the Power PC. Note that there have been reports that the Ppc
74 * optimization line causes segmentation faults during build. If that
75 * happens, try building without the DefaultGcc2PpcOpt line. **************/
76
77/* #define DefaultGcc2i386Opt -O2 -fomit-frame-pointer -march=i686 */
78/* #define DefaultGcc2AxpOpt -O2 -mcpu=ev6 */
79/* #define DefaultGcc2PpcOpt -O2 -mcpu=750 */
80
81/* The following definitions are normally set properly by XFree86's scripts.
82 * You can uncomment them if you want to make sure. ************************/
83
84/* #define HasMTRRSupport YES */ /* Enabled in kernel see kernel docs*/
85/* #define HasMMXSupport NO */ /* Any i586 or above */
86/* #define HasKatmaiSupport NO */ /* PIII SSE instuctions */
87/* #define Has3DNowSupport NO */ /* AMD instructions */
88
89
90/* This setting reduces compile time a little by omitting rarely used input
91 * devices. You can find the complete list in config/cf/xfree86.cf ********/
92
93#define XInputDrivers mouse void
94
95/* VIDEO DRIVERS ***********************************************************/
96
97/* If you are sure you only want the drivers for one or a few video cards,
98 * you can delete the drivers you do not want. *****************************/
99
100
101#define XF86CardDrivers mga glint nv tga s3 s3virge sis rendition \
102 neomagic i740 tdfx savage \
103 cirrus vmware tseng trident chips apm \
104 GlideDriver fbdev i128 nsc \
105 ati i810 AgpGartDrivers DevelDrivers ark \
106 cyrix siliconmotion \
107 vesa vga \
108 dummy XF86OSCardDrivers XF86ExtraCardDrivers
109
110
111/* FONT SERVER AND LIBRARY SETTINGS ****************************************/
112
113/* These settings are the defaults ***************************************/
114
115/* #define BuildFontServer YES */ /* For GhostScript Print Server*/
116/* #define SharedLibFont YES */
117/* #define CompressAllFonts YES */
118/* #define GzipFontCompression YES */
119
120/* These settings ensure we use our libraries ******************************/
121#define HasFreetype2 YES
122#define HasFontconfig YES
123#define HasExpat YES
124#define HasLibpng YES
125#define HasZlib YES
126
127/* The font path can be redefined in the XF86Config file *******************/
128
129/*
130#define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/75dpi/,\
131$(FONTDIR)/100dpi/,$(FONTDIR)/Type1,$(FONTDIR)/local,\
132$(FONTDIR)/TrueType,$(FONTDIR)/CID,$(FONTDIR)/Speedo
133*/
134
135
136/* INTERNATIONAL FONTS. Change to YES if you need any of them. These are
137 * the defaults. ***********************************************************/
138
139/* #define BuildCyrillicFonts NO */
140/* #define BuildArabicFonts NO */
141/* #define BuildISO8859_6Fonts NO */
142/* #define BuildGreekFonts NO */
143/* #define BuildISO8859_7Fonts NO */
144/* #define BuildHebrewFonts NO */
145/* #define BuildISO8859_8Fonts NO */
146/* #define BuildKOI8_RFonts NO */
147/* #define BuildJapaneseFonts NO */
148/* #define BuildJISX0201Fonts NO */
149/* #define BuildKoreanFonts NO */
150/* #define BuildChineseFonts NO */
151
152/* DOCUMENTATION SETTINGS **************************************************/
153
154/* These setting are the defaults. *****************************************/
155
156/* #define BuildLinuxDocHtml NO */ /* X Docs in Html format */
157/* #define BuildLinuxDocPS NO */ /* PostScript format */
158/* #define BuildAllSpecsDocs NO */ /* Various docs */
159/* #define BuildHtmlManPages NO */
160
161/* GENERAL SETTINGS: You generally want to leave these alone when
162 * building X on an LFS system *********************************************/
163
164#define GccWarningOptions -pipe /* Speed up compiles */
165#define TermcapLibrary -lncurses
166#define XprtServer YES /* Needed by realplayer */
167#define XnestServer YES
168#define XAppLoadDir EtcX11Directory/app-defaults
169#define VarLibDir /var/lib
170#define XFree86Devel NO
171#define FSUseSyslog YES
172#define ThreadedX YES
173#define HasPam NO
174#define SystemManDirectory /usr/share/man /* Instead of /usr/man */
175#define HasLibCrypt YES
176#define InstallXinitConfig YES
177#define InstallXdmConfig YES
178#define ForceNormalLib YES
179#define BuildSpecsDocs NO
180
181/* End XFree86 host.def file */
182EOF</userinput></screen></para>
183
184<para>Edit the file for your hardware and desires.</para>
185
186</sect3>
187
188<sect3>
189<title>Build Commands</title>
190<para>Install XFree86 by running the following commands:</para>
191
192
193<para><screen><userinput>WORLDOPTS="" make World 2&gt;&amp;1 | tee xfree-compile.log &amp;&amp;
194make install &amp;&amp;
195make install.man &amp;&amp;
196ln -sf /usr/X11R6/bin /usr/bin/X11 &amp;&amp;
197ln -sf /usr/X11R6/lib/X11 /usr/lib/X11 &amp;&amp;
198ln -sf /usr/X11R6/include/X11 /usr/include/X11</userinput></screen></para>
199
200</sect3>
201
202<sect3>
203<title>Updating Direct Rendering Infrastructure (DRI)</title>
204<para>If you have one of the supported DRI cards and have enabled DRI kernel modules as explained
205above, you now need to update the kernel modules to ensure they are compatible with the
206current version of XFree86. To do this, perform the following:</para>
207
208<para><screen><userinput>cd programs/Xserver/hw/xfree86/os-support/linux/drm/kernel &amp;&amp;
209make -f Makefile.linux &amp;&amp;
210mkdir -p /lib/modules/`uname -r`/kernel/drivers/char/drm/ &amp;&amp;
211cp gamma.o radeon.o sis.o r128.o i810.o i830.o mga.o tdfx.o \
212 /lib/modules/`uname -r`/kernel/drivers/char/drm/ &amp;&amp;
213depmod -a</userinput></screen>
214</para>
215<warning><para>If you recompile or upgrade your kernel, you will need to re-copy the driver modules
216to the kernel module library and rerun depmod.</para></warning>
217</sect3>
218</sect2>
219
Note: See TracBrowser for help on using the repository browser.