source: x/installing/xfree86/xfree86-inst.xml@ 6cab80b

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

Deleted incorrect statements from xfree86 host.def

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

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