source: x/installing/xfree86/xfree86-inst.xml@ 7db5869

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 v1_0 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 7db5869 was 7db5869, checked in by Bruce Dubbs <bdubbs@…>, 22 years ago

Fix typos in XFree86, add a warning about compiling in a chroot window, and changed XF86Config to XF86Config-4.

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

  • Property mode set to 100644
File size: 7.6 KB
Line 
1<sect2>
2<title>Installation of XFree86</title>
3
4
5<sect3>
6<title>Kernel Compilation Settings</title>
7<para>
8If you have an Intel P6 (Pentium Pro, Pentium II and later) it is recommneded
9that you compile MTRR (Memory Type Range Registers) support into the kernel.
10The kernel can map Cyrix and AMD CPUs to the MTRR interface so selecting this
11option is useful for those processors also.
12This option is found in the
13"Processor type and features" menu. It can increase performance of
14image write operations 2.5 times or more on PCI or AGP video cards.
15</para>
16
17<para>
18In the "Character Devices" section, enable AGP Support and select the chipset
19support on your motherboard. If you do not know the chipset, you may select
20all the chip types at the expense of extra kernel size. You can usually
21determine your motherboard's chipset by doing:
22<screen><userinput>cat /proc/pci</userinput></screen>
23</para>
24
25<para>
26In the "Character Devices" section, <emphasis>disable</emphasis> Direct
27Rendering Manager unless you have a Direct Rendering Infrastructure (DRI)
28supported video card. See the DRI section below for a list. If you do
29enable DRI here, make sure you select the video card(s) you want to support
30as a <emphasis>module</emphasis>.
31</para>
32
33<para>If you made any changes to the kernel configuration, recompile with
34<screen>make dep &amp;&amp;
35make bzImage &amp;&amp;
36make modules &amp;&amp;
37make modules_install</screen>
38</para>
39
40<para>
41Copy <filename>/usr/src/linux/arch/i386/boot/bzImage</filename> and
42<filename>/usr/src/linux/System.map</filename> to
43<filename>/boot</filename>, edit <filename>/etc/lilo.conf</filename>
44appropriately and run <userinput>lilo</userinput>.
45</para>
46
47<note><para>
48If you build XFree86 in a chroot environment, make sure the kernel version of the base
49system and the target system are the same. This is especially important if you
50enabled DRI support as a module as instructed above.
51</para></note>
52
53</sect3>
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<para><screen><userinput>cat &gt; config/cf/host.def &lt;&lt; "EOF"
61# Begin XFree86 hosts.def file
62
63/* System Related Information. If you read and configure only one
64 * section then it should be this one. The Intel architecture defaults are
65 * set for a i686 and higher. Axp is for the Alpha architecture and Ppc is
66 * for the Power PC. Note that there have been reports that the Ppc
67 * optimization line causes segmentation faults during build. If that
68 * happens, try building without the DefaultGcc2PpcOpt line. **************/
69
70#define DefaultGcc2i386Opt -O2 -fomit-frame-pointer -march=i686
71#define DefaultGcc2AxpOpt -O2 -mcpu=ev6
72#define DefaultGcc2PpcOpt -O2 -mcpu=750
73
74/* The following definitions are normally set properly by XFree86's scripts.
75 * You can uncomment them if you want to make sure. ************************/
76
77/* #define HasMTRRSupport YES */ /* Enabled in kernel see kernel docs */
78/* #define HasMMXSupport NO */ /* Any i586 or above */
79/* #define HasKatmaiSupport NO */ /* PIII SSE instuctions */
80/* #define Has3DNowSupport NO */ /* AMD instructions */
81
82
83/* This setting reduces compile time a little by omitting rarely used input
84 * devices. You can find the complete list in config/cf/xfree86.cf ********/
85
86#define XInputDrivers mouse void
87
88/* VIDEO DRIVERS ***********************************************************/
89
90/* If you are sure you only want the drivers for one or a few video cards,
91 * you can delete the drivers you do not want. *****************************/
92
93#define XF86CardDrivers mga glint nv tga s3virge rendition \
94 cirrus vmware tseng chips apm \
95 fbdev i128 \
96 ati AgpGartDrivers DevelDrivers ark cyrix \
97 vesa vga XF86OSCardDrivers
98
99/* FONT SERVER AND LIBRARY SETTINGS ****************************************/
100
101
102/* These setting should be set by default, but we are making sure. *********/
103
104#define BuildFontServer YES /* Need for GhostScript Print Server */
105#define BuildFreetype2Library YES /* For using TrueType Fonts */
106#define SharedLibFont YES /* Needed for Truetype */
107#define CompressAllFonts YES
108#define GzipFontCompression YES
109
110/* The font path can be redefined in the XF86Config file *******************/
111
112#define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/75dpi/,\
113$(FONTDIR)/100dpi/,$(FONTDIR)/Type1,$(FONTDIR)/local,\
114$(FONTDIR)/TrueType,$(FONTDIR)/CID,$(FONTDIR)/Speedo
115
116/* INTERNATIONAL FONTS. Change to YES if you need any of them. These are
117 * the defaults. ***********************************************************/
118
119#define BuildCyrillicFonts NO
120#define BuildArabicFonts NO
121#define BuildISO8859_6Fonts NO
122#define BuildGreekFonts NO
123#define BuildISO8859_7Fonts NO
124#define BuildHebrewFonts NO
125#define BuildISO8859_8Fonts NO
126#define BuildKOI8_RFonts NO
127#define BuildJapaneseFonts NO
128#define BuildJISX0201Fonts NO
129#define BuildKoreanFonts NO
130#define BuildChineseFonts NO
131
132/* DOCUMENTATION SETTINGS **************************************************/
133
134/* These setting are the defaults. *****************************************/
135
136#define BuildLinuxDocHtml NO /* X Docs in Html format */
137#define BuildLinuxDocPS NO /* X Docs in PostScript format */
138#define BuildAllSpecsDocs NO /* Various docs */
139#define BuildHtmlManPages NO
140
141/* Linux Distribution Information - Not essential that it is totally right.*/
142
143#define LinuxDistribution LFS
144#define LinuxCLimbMajorVersion 3
145#define LinuxCLimbMinorVersion 3
146#define LinuxCLimbTeenyVersion 0
147
148/* GENERAL SETTINGS: You generally want to leave these alone when
149 * building X on an LFS system *********************************************/
150
151#define GccWarningOptions -pipe
152#define TermcapLibrary -lncurses
153#define XprtServer YES /* Needed by realplayer */
154#define XnestServer YES
155#define XAppLoadDir EtcX11Directory/app-defaults
156#define VarLibDir /var/lib
157#define XFree86Devel NO
158#define FSUseSyslog YES
159#define ThreadedX YES
160#define HasZlib YES
161#define HasNCurses YES
162#define HasPam NO
163#define SystemManDirectory /usr/share/man
164#define HasLibCrypt YES
165#define InstallXinitConfig YES
166#define InstallXdmConfig YES
167#define ForceNormalLib YES
168#define BuildSpecsDocs NO
169
170# End XFree86 host.def file
171EOF</userinput></screen></para>
172
173<para>Edit the file for your hardware and desires.</para>
174</sect3>
175
176<sect3>
177<title>Build Commands</title>
178<para>Install XFree86 by running the following commands:</para>
179
180
181<para><screen><userinput>patch -Np1 -i ../4.2.0-libGLU-bad-extern.patch &amp;&amp;</userinput>
182<userinput>make World 2&gt;&amp;1 | tee xfree-compile.log &amp;&amp;</userinput>
183<userinput>make install &amp;&amp;</userinput>
184<userinput>make install.man &amp;&amp;</userinput>
185<userinput>ln -sf /usr/X11R6/bin /usr/bin/X11 &amp;&amp;</userinput>
186<userinput>ln -sf /usr/X11R6/lib/X11 /usr/lib/X11 &amp;&amp;</userinput>
187<userinput>ln -sf /usr/X11R6/include/X11 /usr/include/X11</userinput></screen></para>
188
189</sect3>
190</sect2>
191
Note: See TracBrowser for help on using the repository browser.