source: x/installing/xfree86/xfree86-inst.xml@ 19e9cee

10.0 10.1 11.0 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 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb v1_0 v5_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 19e9cee was 19e9cee, checked in by Bruce Dubbs <bdubbs@…>, 19 years ago

Added freetype2 to xfree86; removed objprelink from kde; Update kde to 3.0.3

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

  • Property mode set to 100644
File size: 7.5 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#define LinuxCLimbMajorVersion 3
139#define LinuxCLimbMinorVersion 3
140#define LinuxCLimbTeenyVersion 0
141
142/* GENERAL SETTINGS: You generally want to leave these alone when
143 * building X on an LFS system *********************************************/
144
145#define GccWarningOptions -pipe
146#define TermcapLibrary -lncurses
147#define XprtServer YES /* Needed by realplayer */
148#define XnestServer YES
149#define XAppLoadDir EtcX11Directory/app-defaults
150#define VarLibDir /var/lib
151#define XFree86Devel NO
152#define FSUseSyslog YES
153#define ThreadedX YES
154#define HasZlib YES
155#define HasNCurses YES
156#define HasPam NO
157#define SystemManDirectory /usr/share/man
158#define HasLibCrypt YES
159#define InstallXinitConfig YES
160#define InstallXdmConfig YES
161#define ForceNormalLib YES
162#define BuildSpecsDocs NO
163
164# End XFree86 host.def file
165EOF</userinput></screen></para>
166
167<para>Edit the file for your hardware and desires.</para>
168
169</sect3>
170
171<sect3>
172<title>Build Commands</title>
173<para>Install XFree86 by running the following commands:</para>
174
175
176<para><screen><userinput>patch -Np1 -i ../4.2.0-4.2.1.diff &amp;&amp;
177make World 2&gt;&amp;1 | tee xfree-compile.log &amp;&amp;
178make install &amp;&amp;
179make install.man &amp;&amp;
180ln -sf /usr/X11R6/bin /usr/bin/X11 &amp;&amp;
181ln -sf /usr/X11R6/lib/X11 /usr/lib/X11 &amp;&amp;
182ln -sf /usr/X11R6/include/X11 /usr/include/X11</userinput></screen></para>
183
184</sect3>
185</sect2>
186
Note: See TracBrowser for help on using the repository browser.