source: x/installing/xfree86/xfree86-inst.xml@ 36cc0aa

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

Deleted duplicate define in xfree86's hosts.def file.

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

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