2004-06-14 03:03:42 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-04-04 04:52:42 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-06-14 03:03:42 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2005-06-11 03:22:37 +08:00
|
|
|
<!ENTITY xfree86-download-http "http://gnu.kookel.org/ftp/XFree86/&xfree86-version;/source/">
|
|
|
|
<!ENTITY xfree86-download-ftp "ftp://ftp.xfree86.org/pub/XFree86/&xfree86-version;/source/">
|
|
|
|
<!ENTITY xfree86-md5sum "ftp://ftp.xfree86.org/pub/XFree86/&xfree86-version;/source/SUMS.md5sum">
|
|
|
|
<!ENTITY xfree86-size "51 MB">
|
2006-05-12 02:15:29 +08:00
|
|
|
<!ENTITY xfree86-buildsize "740 MB">
|
2005-06-11 03:22:37 +08:00
|
|
|
<!ENTITY xfree86-time "12 SBU">
|
2004-06-14 03:03:42 +08:00
|
|
|
]>
|
|
|
|
|
2003-10-02 23:28:50 +08:00
|
|
|
<sect1 id="xfree86" xreflabel="XFree86-&xfree86-version;">
|
2005-05-20 02:32:05 +08:00
|
|
|
<?dbhtml filename="xfree86.html" ?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
2005-12-08 19:41:26 +08:00
|
|
|
<keywordset>
|
|
|
|
<keyword role="package">XFree86-&xfree86-version;-src-1.tar</keyword>
|
2005-12-09 04:32:55 +08:00
|
|
|
<keyword role="ftpdir">XFree86</keyword>
|
2005-12-08 19:41:26 +08:00
|
|
|
</keywordset>
|
2005-05-20 02:32:05 +08:00
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>XFree86-&xfree86-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="xfree86">
|
|
|
|
<primary sortas="a-xfree86">XFree86</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to XFree86</title>
|
|
|
|
|
|
|
|
<para><application>XFree86</application> is a freely redistributable
|
|
|
|
open-source implementation of the <application>X Window
|
|
|
|
System</application>. <application>XFree86</application> provides a
|
|
|
|
client/server interface between display hardware (the mouse, keyboard,
|
|
|
|
and video displays) and the desktop environment, while also providing
|
|
|
|
both the windowing infrastructure and a standardized application
|
|
|
|
interface (API).</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&xfree86-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&xfree86-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &xfree86-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &xfree86-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &xfree86-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &xfree86-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">XFree86 Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2005-12-08 19:41:26 +08:00
|
|
|
<para role="required"><xref linkend="libpng"/></para>
|
2005-05-20 02:32:05 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2005-12-08 19:41:26 +08:00
|
|
|
<para role="optional"><xref linkend="linux-pam"/>; the
|
2005-05-20 02:32:05 +08:00
|
|
|
following packages are included in the <application>XFree86</application>
|
|
|
|
package, however they are updated more often than the
|
2005-02-07 14:19:38 +08:00
|
|
|
<application>XFree86</application> package and are highly recommended:
|
2005-05-20 02:32:05 +08:00
|
|
|
<xref linkend="expat"/>, <xref linkend="freetype2"/>,
|
|
|
|
<xref linkend="fontconfig"/>.</para>
|
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>If you choose not to install <application>expat</application>,
|
|
|
|
<application>FreeType2</application>, and
|
|
|
|
<application>Fontconfig</application>, the
|
|
|
|
<filename>host.def</filename> file below will have to be modified to
|
|
|
|
instruct <application>XFree86</application> to build them.</para>
|
|
|
|
</note>
|
|
|
|
|
2006-04-01 09:32:36 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url='&blfs-wiki;/XFree86-&xfree86-version;'/></para>
|
2006-03-28 22:55:44 +08:00
|
|
|
|
2005-05-20 02:32:05 +08:00
|
|
|
<bridgehead renderas="sect3">Download Instructions</bridgehead>
|
|
|
|
|
|
|
|
<para>There are several files that need to be fetched from the download
|
|
|
|
location:</para>
|
|
|
|
|
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<listitem>
|
2005-06-11 03:22:37 +08:00
|
|
|
<para><filename>XFree86-&xfree86-version;-src-1.tgz</filename></para>
|
2005-05-20 02:32:05 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2005-06-11 03:22:37 +08:00
|
|
|
<para><filename>XFree86-&xfree86-version;-src-2.tgz</filename></para>
|
2005-05-20 02:32:05 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2005-06-11 03:22:37 +08:00
|
|
|
<para><filename>XFree86-&xfree86-version;-src-3.tgz</filename></para>
|
2005-05-20 02:32:05 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2005-06-11 03:22:37 +08:00
|
|
|
<para><filename>XFree86-&xfree86-version;-src-4.tgz</filename></para>
|
2005-05-20 02:32:05 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2005-06-11 03:22:37 +08:00
|
|
|
<para><filename>XFree86-&xfree86-version;-src-5.tgz</filename></para>
|
2005-05-20 02:32:05 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2005-06-11 03:22:37 +08:00
|
|
|
<para><filename>XFree86-&xfree86-version;-src-6.tgz</filename></para>
|
2005-05-20 02:32:05 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2005-06-11 03:22:37 +08:00
|
|
|
<para><filename>XFree86-&xfree86-version;-src-7.tgz</filename></para>
|
2005-05-20 02:32:05 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<para>The first three packages are the <application>XFree86</application>
|
|
|
|
programs, the fourth and fifth are fonts, the sixth is normal documentation,
|
2006-05-12 02:15:29 +08:00
|
|
|
and the seventh is hardcopy documentation.</para>
|
2005-05-20 02:32:05 +08:00
|
|
|
|
|
|
|
<para>To check your downloads for integrity, download the
|
|
|
|
<filename>SUMS.md5sum</filename> file. Then:</para>
|
|
|
|
|
|
|
|
<screen><userinput>md5sum -c SUMS.md5sum</userinput></screen>
|
|
|
|
|
|
|
|
<para>The only errors you should see are for <filename>README</filename>,
|
2005-06-11 22:18:31 +08:00
|
|
|
<filename>doctools-1.3.x.tgz</filename>, <filename>utils-1.1.x.tgz</filename>
|
2005-05-20 02:32:05 +08:00
|
|
|
and <filename>XFree86-xtest-4.0.x.tar.bz2</filename> files if you did not
|
|
|
|
download them.</para>
|
2004-06-14 03:03:42 +08:00
|
|
|
|
2005-05-20 02:32:05 +08:00
|
|
|
</sect2>
|
2004-06-14 03:03:42 +08:00
|
|
|
|
2005-05-20 02:32:05 +08:00
|
|
|
<sect2 role="kernel" id='xfree86-kernel'>
|
|
|
|
<title>Kernel Configuration</title>
|
2005-02-07 14:19:38 +08:00
|
|
|
|
2005-05-20 02:32:05 +08:00
|
|
|
<para>If you have an Intel P6 (Pentium Pro, Pentium II and later), it is
|
|
|
|
recommended that you compile MTRR (Memory Type Range Registers) support
|
|
|
|
into the kernel. The kernel can map Cyrix and AMD CPUs to the MTRR
|
|
|
|
interface, so selecting this option is useful for those processors also.
|
|
|
|
This option is found in the "Processor type and features" menu. It can
|
|
|
|
increase performance of image write operations 2.5 times or more on PCI
|
|
|
|
or AGP video cards.</para>
|
2005-02-07 14:19:38 +08:00
|
|
|
|
2005-05-20 02:32:05 +08:00
|
|
|
<indexterm zone="xfree86 xfree86-kernel">
|
|
|
|
<primary sortas="d-xfree86">XFree86</primary>
|
|
|
|
</indexterm>
|
2005-02-07 14:19:38 +08:00
|
|
|
|
2005-05-20 02:32:05 +08:00
|
|
|
<para>In the "Character Devices" section, enable AGP Support and select
|
|
|
|
the chipset support on your motherboard. If you do not know the chipset,
|
|
|
|
you may select all the chip types at the expense of extra kernel size.
|
|
|
|
You can usually determine your motherboard's chipset by running the
|
|
|
|
command <command>lspci</command>, a program from the
|
|
|
|
<xref linkend="pciutils"/> package.</para>
|
|
|
|
|
|
|
|
<para>In the "Character Devices" section, <emphasis>disable</emphasis>
|
|
|
|
Direct Rendering Manager unless you have a Direct Rendering Infrastructure
|
|
|
|
(DRI) supported video card. A complete list of DRI supported video cards
|
|
|
|
can be found at <ulink url="http://dri.sourceforge.net" /> in the Status
|
|
|
|
section. Currently, supported cards include those from 3dfx (Voodoo,
|
|
|
|
Banshee), 3Dlabs, ATI (Rage Pro, Rage 128, Radeon 7X00, Radeon 2), Intel
|
|
|
|
(i810, i815), and Matrox (G200, G400, G450).</para>
|
|
|
|
|
|
|
|
<para>Additionally NVidia provides their own closed source binary drivers,
|
|
|
|
which do not make use of DRI. If you intend to use these drivers, do not
|
|
|
|
enable DRI.</para>
|
|
|
|
|
|
|
|
<para>If you made any changes to the kernel configuration, recompile and
|
|
|
|
install the new kernel.</para>
|
|
|
|
|
|
|
|
</sect2>
|
2005-02-07 14:19:38 +08:00
|
|
|
|
2005-05-20 02:32:05 +08:00
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of XFree86</title>
|
|
|
|
|
2005-06-11 03:22:37 +08:00
|
|
|
<sect3>
|
2006-05-14 01:22:14 +08:00
|
|
|
<title>Glibc build fix</title>
|
|
|
|
|
|
|
|
<!-- To be removed if/when proposed glibc patch is added to LFS SVN
|
|
|
|
Leave in in for a couple of weeks with 'you may need' and a testcase
|
|
|
|
around it to save the support list silly questions. Should remove in
|
|
|
|
a couple of weeks -->
|
|
|
|
<para>Xfree86 may have a problem with <filename>sys/kd.h</filename>
|
|
|
|
installed with some recent versions of <application>Glibc</application>.
|
|
|
|
This has recently been fixed in LFS SVN. Execute the
|
|
|
|
following commands to work around a broken <filename>kd.h</filename>
|
|
|
|
file. The <command>grep</command> command is to ensure the modification
|
|
|
|
is only made if it is needed. Run these commands from within the
|
|
|
|
<filename class="directory">xc</filename> folder:</para>
|
|
|
|
|
|
|
|
<screen><userinput>grep "__undef_LINUX" \
|
|
|
|
/usr/include/sys/kd.h 2>&1 > /dev/null || \
|
|
|
|
sed -i.bak '/X.h/i #include <linux/types.h>' \
|
|
|
|
programs/Xserver/hw/xfree86/os-support/linux/lnx_agp.c</userinput></screen>
|
|
|
|
<!-- End remove -->
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
<sect3>
|
|
|
|
|
2005-06-11 03:22:37 +08:00
|
|
|
<title>Setting Up a Shadow Directory</title>
|
|
|
|
|
|
|
|
<para>When building <application>XFree86</application>, you should create
|
|
|
|
a shadow directory of symbolic links for the compiled code. To do that,
|
|
|
|
first make <command>lndir</command>. Starting from the
|
|
|
|
<filename class='directory'>xc</filename> directory:</para>
|
|
|
|
|
2006-05-12 02:15:29 +08:00
|
|
|
<screen><userinput>make -C config/util -f Makefile.ini lndir</userinput></screen>
|
2005-06-11 03:22:37 +08:00
|
|
|
|
|
|
|
<para>Now create the shadow tree:</para>
|
|
|
|
|
|
|
|
<screen><userinput>mkdir ../xcbuild &&
|
|
|
|
cd ../xcbuild &&
|
2006-02-24 12:11:31 +08:00
|
|
|
../xc/config/util/lndir ../xc</userinput></screen>
|
2005-06-11 03:22:37 +08:00
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
2005-05-20 02:32:05 +08:00
|
|
|
<sect3>
|
|
|
|
<title>Creating 'host.def'</title>
|
|
|
|
|
|
|
|
<para>Although <application>XFree86</application> will compile without
|
|
|
|
a <filename>host.def</filename> file, the following file is recommended
|
|
|
|
for customizing the installation. Start from the
|
2005-06-11 22:18:31 +08:00
|
|
|
<filename class="directory">xcbuild</filename> directory.</para>
|
2005-05-20 02:32:05 +08:00
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>The <filename>host.def</filename> file is a
|
|
|
|
<application>C</application> file, not the usual configuration file.
|
|
|
|
If you make any changes, be sure the comment characters (/* and */)
|
|
|
|
are balanced. Most of the entries in the file below are commented
|
|
|
|
out with the default settings shown.</para>
|
|
|
|
</note>
|
|
|
|
|
|
|
|
<screen><userinput>cat > config/cf/host.def << "EOF"
|
|
|
|
<literal>/* Begin XFree86 host.def file */
|
2004-06-14 03:03:42 +08:00
|
|
|
|
|
|
|
/* System Related Information. If you read and configure only one
|
2005-05-20 02:32:05 +08:00
|
|
|
* section then it should be this one. The Intel architecture defaults
|
|
|
|
* are set for a i686 and higher. Axp is for the Alpha architecture
|
|
|
|
* and Ppc is for the Power PC. Note that there have been reports that
|
2005-01-13 13:20:16 +08:00
|
|
|
* the Ppc optimization line causes segmentation faults during build.
|
|
|
|
* If that happens, try building without the DefaultGcc2PpcOpt line. */
|
2004-06-14 03:03:42 +08:00
|
|
|
|
|
|
|
/* #define DefaultGcc2i386Opt -O2 -fomit-frame-pointer -march=i686 */
|
|
|
|
/* #define DefaultGcc2AxpOpt -O2 -mcpu=ev6 */
|
|
|
|
/* #define DefaultGcc2PpcOpt -O2 -mcpu=750 */
|
|
|
|
|
2005-05-20 02:32:05 +08:00
|
|
|
/* The following definitions are normally set properly by XFree86's
|
2005-01-13 13:20:16 +08:00
|
|
|
* scripts. You can uncomment them if you want to make sure. *********/
|
2005-05-20 02:32:05 +08:00
|
|
|
|
2005-01-13 13:20:16 +08:00
|
|
|
/* #define HasMTRRSupport YES */ /* Enabled in kernel; */
|
|
|
|
/* see kernel docs */
|
2004-06-14 03:03:42 +08:00
|
|
|
/* #define HasMMXSupport NO */ /* Any i586 or above */
|
|
|
|
/* #define HasKatmaiSupport NO */ /* PIII SSE instructions */
|
|
|
|
/* #define Has3DNowSupport NO */ /* AMD instructions */
|
|
|
|
|
|
|
|
|
2005-05-20 02:32:05 +08:00
|
|
|
/* This setting reduces compile time a little by omitting rarely used
|
|
|
|
* input devices. You can find the complete list in
|
2005-01-13 13:20:16 +08:00
|
|
|
* config/cf/xfree86.cf *********************************************/
|
2005-05-20 02:32:05 +08:00
|
|
|
|
2004-06-14 03:03:42 +08:00
|
|
|
#define XInputDrivers mouse void
|
|
|
|
|
2005-01-13 13:20:16 +08:00
|
|
|
/* VIDEO DRIVERS ****************************************************/
|
2004-06-14 03:03:42 +08:00
|
|
|
|
2005-05-20 02:32:05 +08:00
|
|
|
/* If you are sure you only want the drivers for one or a few video
|
|
|
|
* cards, you can delete the drivers you do not want. ***************/
|
2004-06-14 03:03:42 +08:00
|
|
|
|
|
|
|
|
|
|
|
#define XF86CardDrivers mga glint nv tga s3 s3virge sis rendition \
|
|
|
|
neomagic i740 tdfx savage \
|
|
|
|
cirrus vmware tseng trident chips apm \
|
|
|
|
GlideDriver fbdev i128 nsc \
|
2005-07-21 12:25:41 +08:00
|
|
|
ati i810 DevelDrivers ark \
|
2004-06-14 03:03:42 +08:00
|
|
|
cyrix siliconmotion \
|
|
|
|
vesa vga \
|
|
|
|
dummy XF86OSCardDrivers XF86ExtraCardDrivers
|
|
|
|
|
|
|
|
|
2005-01-13 13:20:16 +08:00
|
|
|
/* USER AND SYSTEM DEFAULT PATHS *************************************/
|
2004-06-14 03:03:42 +08:00
|
|
|
|
2005-01-13 13:20:16 +08:00
|
|
|
/* These settings set the PATH variables used by xdm. See README for */
|
|
|
|
/* detailed description and modify the following as per your need. ***/
|
2004-06-14 03:03:42 +08:00
|
|
|
|
2005-01-13 13:20:16 +08:00
|
|
|
/* #define DefaultSystemPath \
|
|
|
|
/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin */
|
2004-06-14 03:03:42 +08:00
|
|
|
/* #define DefaultUserPath /usr/bin:/bin:/usr/X11R6/bin */
|
|
|
|
|
2005-01-13 13:20:16 +08:00
|
|
|
/* FONT SERVER AND LIBRARY SETTINGS **********************************/
|
2004-06-14 03:03:42 +08:00
|
|
|
|
2005-01-13 13:20:16 +08:00
|
|
|
/* These settings are the defaults **********************************/
|
2004-06-14 03:03:42 +08:00
|
|
|
|
2005-01-13 13:20:16 +08:00
|
|
|
/* #define BuildFontServer YES */ /*For Ghostscript Print Server*/
|
|
|
|
/* #define SharedLibFont YES */
|
|
|
|
/* #define CompressAllFonts YES */
|
|
|
|
/* #define GzipFontCompression YES */
|
2004-06-14 03:03:42 +08:00
|
|
|
|
2005-01-13 13:20:16 +08:00
|
|
|
/* These settings ensure we use our libraries ************************/
|
2004-06-14 03:03:42 +08:00
|
|
|
#define HasFreetype2 YES
|
|
|
|
#define HasFontconfig YES
|
|
|
|
#define HasExpat YES
|
|
|
|
#define HasLibpng YES
|
|
|
|
#define HasZlib YES
|
|
|
|
|
2005-01-13 13:20:16 +08:00
|
|
|
/* INTERNATIONAL FONTS. Change to YES if you need any of them. These
|
|
|
|
* are the defaults. **************************************************/
|
2004-06-14 03:03:42 +08:00
|
|
|
|
|
|
|
/* #define BuildCyrillicFonts NO */
|
|
|
|
/* #define BuildArabicFonts NO */
|
|
|
|
/* #define BuildISO8859_6Fonts NO */
|
|
|
|
/* #define BuildGreekFonts NO */
|
|
|
|
/* #define BuildISO8859_7Fonts NO */
|
|
|
|
/* #define BuildHebrewFonts NO */
|
|
|
|
/* #define BuildISO8859_8Fonts NO */
|
|
|
|
/* #define BuildKOI8_RFonts NO */
|
|
|
|
/* #define BuildJapaneseFonts NO */
|
|
|
|
/* #define BuildJISX0201Fonts NO */
|
|
|
|
/* #define BuildKoreanFonts NO */
|
|
|
|
/* #define BuildChineseFonts NO */
|
|
|
|
|
2005-01-13 13:20:16 +08:00
|
|
|
/* DOCUMENTATION SETTINGS ********************************************/
|
2004-06-14 03:03:42 +08:00
|
|
|
|
2005-01-13 13:20:16 +08:00
|
|
|
/* These setting are the defaults. ***********************************/
|
2004-06-14 03:03:42 +08:00
|
|
|
|
2005-01-13 13:20:16 +08:00
|
|
|
/* #define BuildLinuxDocHtml NO */ /* X Docs in Html format */
|
|
|
|
/* #define BuildLinuxDocPS NO */ /* PostScript format */
|
|
|
|
/* #define BuildAllSpecsDocs NO */ /* Various docs */
|
|
|
|
/* #define BuildHtmlManPages NO */
|
2004-06-14 03:03:42 +08:00
|
|
|
|
|
|
|
/* GENERAL SETTINGS: You generally want to leave these alone when
|
2005-01-13 13:20:16 +08:00
|
|
|
* building X on an LFS system ***************************************/
|
2004-06-14 03:03:42 +08:00
|
|
|
|
|
|
|
#define GccWarningOptions -pipe /* Speed up compiles */
|
|
|
|
#define TermcapLibrary -lncurses
|
|
|
|
#define XprtServer YES /* Needed by realplayer */
|
|
|
|
#define XnestServer YES
|
|
|
|
#define XAppLoadDir EtcX11Directory/app-defaults
|
|
|
|
#define VarLibDir /var/lib
|
|
|
|
#define XFree86Devel NO
|
|
|
|
#define FSUseSyslog YES
|
|
|
|
#define ThreadedX YES
|
2005-05-20 02:32:05 +08:00
|
|
|
#define HasPam NO
|
2005-01-13 13:20:16 +08:00
|
|
|
#define SystemManDirectory /usr/share/man /*Instead of /usr/man*/
|
2004-06-14 03:03:42 +08:00
|
|
|
#define HasLibCrypt YES
|
|
|
|
#define InstallXinitConfig YES
|
|
|
|
#define InstallXdmConfig YES
|
|
|
|
#define ForceNormalLib YES
|
|
|
|
#define BuildSpecsDocs NO
|
2006-05-12 02:32:17 +08:00
|
|
|
#define DocDir /usr/share/doc/xfree86-4.6.0
|
2006-05-12 02:15:29 +08:00
|
|
|
|
|
|
|
/* Installation prefix. The default is to install into /usr/X11R6. If you
|
|
|
|
* would like to install into /usr, uncomment these options. */
|
|
|
|
|
|
|
|
/* #define ProjectRoot /usr */
|
|
|
|
/* #define LinkGLToUsrLib NO */
|
|
|
|
/* #define LinkGLToUsrInclude NO */
|
2004-06-14 03:03:42 +08:00
|
|
|
|
2005-05-20 02:32:05 +08:00
|
|
|
/* End XFree86 host.def file */</literal>
|
|
|
|
EOF</userinput></screen>
|
2004-06-14 03:03:42 +08:00
|
|
|
|
2005-05-20 02:32:05 +08:00
|
|
|
<para>Edit the file for your hardware and desires.</para>
|
2004-06-14 03:03:42 +08:00
|
|
|
|
2005-05-20 02:32:05 +08:00
|
|
|
</sect3>
|
2004-06-14 03:03:42 +08:00
|
|
|
|
2005-05-20 02:32:05 +08:00
|
|
|
<sect3>
|
|
|
|
<title>Build Commands</title>
|
2004-10-14 11:01:15 +08:00
|
|
|
|
2005-05-20 02:32:05 +08:00
|
|
|
<para>Install <application>XFree86</application> by running the
|
|
|
|
following commands:</para>
|
2004-06-14 03:03:42 +08:00
|
|
|
|
2006-05-12 02:15:29 +08:00
|
|
|
<screen><userinput>sed -i 's:^.*asm.*$:# define PAGE_MASK (~(getpagesize() - 1)):' \
|
|
|
|
../xc/programs/Xserver/hw/xfree86/fbdevhw/fbdevhw.c &&
|
2005-06-11 03:22:37 +08:00
|
|
|
sed -i -e "s@^#include <linux/config.h>@/* & */@" \
|
2006-05-12 02:15:29 +08:00
|
|
|
`grep -lr linux/config.h ../xc` &&
|
|
|
|
( make World 2>&1 | tee xfree-compile.log && exit $PIPESTATUS )
|
|
|
|
</userinput></screen>
|
|
|
|
|
|
|
|
<para>This package does not come with a test suite.</para>
|
2005-05-20 02:32:05 +08:00
|
|
|
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem>
|
|
|
|
user:</para>
|
2005-02-07 14:19:38 +08:00
|
|
|
|
2005-05-20 02:32:05 +08:00
|
|
|
<screen role="root"><userinput>make install &&
|
2004-06-14 03:03:42 +08:00
|
|
|
make install.man &&
|
2006-05-12 02:15:29 +08:00
|
|
|
ln -v -s ../X11R6/bin /usr/bin/X11 &&
|
|
|
|
ln -v -s ../X11R6/lib/X11 /usr/lib/X11 &&
|
|
|
|
ln -v -s ../X11R6/include/X11 /usr/include/X11</userinput></screen>
|
2005-05-20 02:32:05 +08:00
|
|
|
|
2006-03-28 22:55:44 +08:00
|
|
|
<para>The <application>XFree86</application> fonts have been installed
|
|
|
|
outside of <application>Fontconfig</application>'s default search path
|
|
|
|
of <filename class="directory">/usr/share/fonts</filename>. In order
|
|
|
|
for <application>Fontconfig</application> to find the installed TrueType
|
|
|
|
fonts, you should make symlinks to their directories. Assuming you've
|
|
|
|
installed <application>XFree86</application> in the default prefix, run the
|
|
|
|
following commands as the <systemitem class="username">root</systemitem>
|
|
|
|
user:</para>
|
|
|
|
|
2006-04-16 12:04:51 +08:00
|
|
|
<screen role="root"><userinput>install -d -m755 /usr/share/fonts &&
|
|
|
|
ln -svn /usr/X11R6/lib/X11/fonts/OTF /usr/share/fonts/X11-OTF &&
|
2006-03-28 22:55:44 +08:00
|
|
|
ln -svn /usr/X11R6/lib/X11/fonts/TTF /usr/share/fonts/X11-TTF</userinput></screen>
|
|
|
|
|
2005-09-21 06:01:54 +08:00
|
|
|
<para><application>XFree86</application> installs the
|
2005-10-17 04:42:04 +08:00
|
|
|
<application>XRender</application> and
|
|
|
|
<application>XExtensions</application> extension libraries but does not
|
|
|
|
install the corresponding <application>pkg-config</application> files.
|
|
|
|
Create the files by issuing the following commands as the
|
2005-09-21 06:01:54 +08:00
|
|
|
<systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>cat > /usr/X11R6/lib/pkgconfig/xrender.pc << "EOF"
|
|
|
|
<literal>prefix=/usr/X11R6
|
|
|
|
exec_prefix=${prefix}
|
|
|
|
libdir=${exec_prefix}/lib
|
|
|
|
includedir=${prefix}/include
|
|
|
|
|
|
|
|
Name: Xrender
|
|
|
|
Description: X Render Library
|
|
|
|
Version: 0.8.3
|
|
|
|
Cflags: -I${includedir} -I/usr/X11R6/include
|
|
|
|
Libs: -L${libdir} -lXrender -L/usr/X11R6/lib -lX11</literal>
|
2005-10-17 04:42:04 +08:00
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat > /usr/X11R6/lib/pkgconfig/xextensions.pc << "EOF"
|
|
|
|
<literal>prefix=/usr/X11R6
|
|
|
|
exec_prefix=${prefix}
|
|
|
|
libdir=${exec_prefix}/lib
|
|
|
|
includedir=${prefix}/include
|
|
|
|
|
|
|
|
Name: XExtensions
|
|
|
|
Description: Sundry X extension headers
|
|
|
|
Version: 1.0.1
|
|
|
|
Cflags: -I${includedir}</literal>
|
|
|
|
|
2005-09-21 06:01:54 +08:00
|
|
|
EOF</userinput></screen>
|
|
|
|
|
2006-05-05 15:01:37 +08:00
|
|
|
<para>You should now continue on to the <xref linkend="x-setup"/> section
|
|
|
|
to complete the configuration of
|
|
|
|
<application>XFree86</application>.</para>
|
|
|
|
|
2005-05-20 02:32:05 +08:00
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2006-05-12 02:15:29 +08:00
|
|
|
<para><command>sed -i 's:^.*asm.* ... fbdevhw.c</command>: This sed fixes a
|
|
|
|
problem compiling against kernel headers since linux-2.6.8.</para>
|
|
|
|
|
2005-05-20 02:32:05 +08:00
|
|
|
<para><command>sed -i -e "s@^#include <linux/config.h>@...</command>:
|
|
|
|
The <application>Linux-Libc-Headers</application> package installed in
|
|
|
|
LFS installs a <filename>/usr/include/linux/config.h</filename> file which
|
|
|
|
is not compatible with userspace applications. The recommended fix for
|
|
|
|
applications including this file is to remove it (see <ulink
|
|
|
|
url="http://ep09.pld-linux.org/~mmazur/linux-libc-headers/doc/FAQ">
|
|
|
|
linux-libc-headers FAQ</ulink>). The <command>sed</command> uses
|
2005-07-31 04:03:23 +08:00
|
|
|
<command>grep -lr</command> to replace all occurrences. If you desire, just
|
2005-05-20 02:32:05 +08:00
|
|
|
remove (comment) the line in the appropriate video driver file if you
|
|
|
|
customized <filename>host.def</filename>.</para>
|
|
|
|
|
2006-05-12 02:15:29 +08:00
|
|
|
<para><command>( make World 2>&1 | tee xfree-compile.log
|
2005-05-20 02:32:05 +08:00
|
|
|
&& exit $PIPESTATUS )</command>:
|
|
|
|
This command runs multiple <filename>Makefile</filename>s to completely
|
2006-05-12 02:15:29 +08:00
|
|
|
rebuild the system. <option>2>&1</option>
|
2005-05-20 02:32:05 +08:00
|
|
|
redirects error messages to the same location as standard output. The
|
|
|
|
<command>tee</command> command allows viewing of the output while logging
|
|
|
|
the results to a file. The parentheses around the command runs the entire
|
2005-07-31 04:03:23 +08:00
|
|
|
command in a subshell and finally the <command>exit $PIPESTATUS</command>
|
2005-05-20 02:32:05 +08:00
|
|
|
ensures the result of the <command>make</command> is returned as the result
|
|
|
|
and not the result of the <command>tee</command> command.</para>
|
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>When rebuilding <application>XFree86</application>, a separate
|
|
|
|
command that may be used if only minor changes are made to the sources
|
|
|
|
is <command>make Everything</command>. This does not automatically
|
|
|
|
remove generated files and only rebuilds those files or programs that
|
|
|
|
are out of date.</para>
|
|
|
|
</note>
|
|
|
|
|
|
|
|
<para><command>ln -v -sf ...</command>: These commands are present to
|
|
|
|
enable other (broken) packages to build against
|
|
|
|
<application>XFree86</application>, even though the Filesystem Hierarchy
|
|
|
|
Standard says: <quote>In general, software must not be installed or managed
|
|
|
|
via the above symbolic links. They are intended for utilization by
|
|
|
|
users only.</quote></para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 id="xfree86-contents" role="content"
|
|
|
|
xreflabel="XFree86 Contents and Descriptions">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<para>The <application>XFree86</application> package contains the
|
|
|
|
<application>X Window System</application> for Linux (and other operating
|
|
|
|
systems). It includes the <application>X</application> server, fonts,
|
|
|
|
<command>xterm</command>, a simple window manager (<command>twm</command>),
|
|
|
|
various utilities, video output drivers, and various input drivers
|
|
|
|
including the mouse and keyboard.</para>
|
|
|
|
|
|
|
|
<para><application>XFree86</application> also contains libraries and header
|
|
|
|
files for development of the <application>X Window System</application>
|
|
|
|
programs.</para>
|
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>The following lists are not comprehensive. The full list of
|
2006-05-12 02:15:29 +08:00
|
|
|
programs is (if you install into
|
|
|
|
<filename class="directory">/usr/X11R6</filename>) in
|
|
|
|
<filename class="directory">/usr/X11R6/bin</filename>.
|
2005-05-20 02:32:05 +08:00
|
|
|
For additional information about these programs, see the respective
|
|
|
|
man page.</para>
|
|
|
|
</note>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>XFree86, xf86config, xf86cfg, startx, xinit, twm, xterm,
|
|
|
|
xwininfo, x11perf, xlsfonts, xvidtune, xload, xcalc, xclock,
|
|
|
|
oclock, and xmodmap</seg>
|
|
|
|
<seg>libGL.so, libGLU.so, libSM.so, libXi.so, libXrender.so,
|
|
|
|
libXt.so, and libXfont.so</seg>
|
|
|
|
<seg>/usr/X11R6/ and /etc/X11/</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="XFree86">
|
|
|
|
<term><command>XFree86</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is the X11R6 implementation of the <application>X Window
|
|
|
|
System</application> server.</para>
|
|
|
|
<indexterm zone="xfree86 XFree86">
|
|
|
|
<primary sortas="b-XFree86">XFree86</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xf86config">
|
|
|
|
<term><command>xf86config</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is an interactive program for generating an
|
|
|
|
<filename>XF86Config</filename> file for use with
|
|
|
|
<application>XFree86</application> <application>X</application>
|
|
|
|
servers.</para>
|
|
|
|
<indexterm zone="xfree86 xf86config">
|
|
|
|
<primary sortas="b-xf86config">xf86config</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xf86cfg">
|
|
|
|
<term><command>xf86cfg</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a tool to configure <application>XFree86</application>
|
|
|
|
that can be used to either write the initial configuration file
|
|
|
|
or make customizations to the current configuration.</para>
|
|
|
|
<indexterm zone="xfree86 xf86cfg">
|
|
|
|
<primary sortas="b-xf86cfg">xf86cfg</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="startx">
|
|
|
|
<term><command>startx</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a script to initialize the <application>X</application>
|
|
|
|
session. It runs <command>xinit</command>.</para>
|
|
|
|
<indexterm zone="xfree86 startx">
|
|
|
|
<primary sortas="b-startx">startx</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xinit">
|
|
|
|
<term><command>xinit</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is used to start the <application>X Window
|
|
|
|
System</application> server.</para>
|
|
|
|
<indexterm zone="xfree86 xinit">
|
|
|
|
<primary sortas="b-xinit">xinit</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="twm">
|
|
|
|
<term><command>twm</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>(Tab Window Manager) is a window manager included with the
|
|
|
|
<application>X Window System</application>.</para>
|
|
|
|
<indexterm zone="xfree86 twm">
|
|
|
|
<primary sortas="b-twm">twm</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xterm">
|
|
|
|
<term><command>xterm</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a terminal emulator for <application>X</application>.</para>
|
|
|
|
<indexterm zone="xfree86 xterm">
|
|
|
|
<primary sortas="b-xterm">xterm</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xwininfo">
|
|
|
|
<term><command>xwininfo</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a window information utility for
|
|
|
|
<application>X</application>.</para>
|
|
|
|
<indexterm zone="xfree86 xwininfo">
|
|
|
|
<primary sortas="b-xwininfo">xwininfo</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="x11perf">
|
|
|
|
<term><command>x11perf</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is an <application>X</application>11 server performance
|
|
|
|
test program.</para>
|
|
|
|
<indexterm zone="xfree86 x11perf">
|
|
|
|
<primary sortas="b-x11perf">x11perf</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xlsfonts">
|
|
|
|
<term><command>xlsfonts</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a program to list fonts available to the
|
|
|
|
<application>X</application> server.</para>
|
|
|
|
<indexterm zone="xfree86 xlsfonts">
|
|
|
|
<primary sortas="b-xlsfonts">xlsfonts</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xvidtune">
|
|
|
|
<term><command>xvidtune</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a video mode tuner for
|
|
|
|
<application>XFree86</application>.</para>
|
|
|
|
<indexterm zone="xfree86 xvidtune">
|
|
|
|
<primary sortas="b-xvidtune">xvidtune</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xload">
|
|
|
|
<term><command>xload</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para> is a system load average display for
|
|
|
|
<application>X</application>.</para>
|
|
|
|
<indexterm zone="xfree86 xload">
|
|
|
|
<primary sortas="b-xload">xload</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xcalc">
|
|
|
|
<term><command>xcalc</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a scientific calculator for
|
|
|
|
<application>X</application>.</para>
|
|
|
|
<indexterm zone="xfree86 xcalc">
|
|
|
|
<primary sortas="b-xcalc">xcalc</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xclock">
|
|
|
|
<term><command>xclock</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a clock programs for <application>X</application>.</para>
|
|
|
|
<indexterm zone="xfree86 xclock">
|
|
|
|
<primary sortas="b-xclock">xclock</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="oclock">
|
|
|
|
<term><command>oclock</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a clock programs for <application>X</application>.</para>
|
|
|
|
<indexterm zone="xfree86 oclock">
|
|
|
|
<primary sortas="b-oclock">oclock</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xmodmap">
|
|
|
|
<term><command>xmodmap</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a utility for modifying keymaps and pointer button
|
|
|
|
mappings in <application>X</application>.</para>
|
|
|
|
<indexterm zone="xfree86 xmodmap">
|
|
|
|
<primary sortas="b-xmodmap">xmodmap</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2002-07-08 04:28:42 +08:00
|
|
|
</sect1>
|