glfs/general/genlib/libdrm.xml
Ragnar Thomsen 86f7fa016a libdrm 2.4.34
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10185 af4574ff-66df-0310-9fd7-8a98e5e911e0
2012-05-12 19:24:04 +00:00

161 lines
5.3 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY libdrm-download-http "http://dri.freedesktop.org/libdrm/libdrm-&libdrm-version;.tar.bz2">
<!ENTITY libdrm-download-ftp " ">
<!ENTITY libdrm-md5sum "293cb2b31392d52caa02ab0861dfc2c9">
<!ENTITY libdrm-size "559 KB">
<!ENTITY libdrm-buildsize "7.2 MB">
<!ENTITY libdrm-time "less than 0.1 SBU">
]>
<sect1 id="libdrm" xreflabel="libdrm-&libdrm-version;">
<?dbhtml filename="libdrm.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<title>libdrm-&libdrm-version;</title>
<indexterm zone="libdrm">
<primary sortas="a-libdrm">libdrm</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to libdrm</title>
<para><application>libdrm</application> provides core library routines
for the X Window System to directly interface with video hardware using
the Linux kernel's Direct Rendering Modules (DRM).</para>
&lfs71_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&libdrm-download-http;"/></para>
</listitem>
<listitem>
<para>Download (FTP): <ulink url="&libdrm-download-ftp;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &libdrm-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &libdrm-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required: &libdrm-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time: &libdrm-time;</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">libdrm Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required"><xref linkend="libpthread-stubs"/> and
<xref linkend="libatomic_ops"/> (required on x86 only)</para>
<!-- Although configure checks for Cairo and the makefiles set CAIRO_CFLAGS
and CAIRO_LIBS, it doesn't seem to use cairo at all. There is code in
tests/modetest/modetest.c which suggests that they will use Cairo for
testing in the future, but at the moment it seems that code isn't used
Andy 2012-05-01
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional"><xref linkend="cairo"/></para>
-->
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/libdrm"/></para>
</sect2>
<sect2 role="installation">
<title>Installation of libdrm</title>
<para>Install <application>libdrm</application> by running the following
commands:</para>
<screen><userinput>./configure --prefix=$XORG_PREFIX \
--enable-udev \
--enable-vmwgfx-experimental-api &amp;&amp;
make</userinput></screen>
<para>To check the results, issue <command>make check</command>. Note that
some tests may fail depending on the video hardware installed in the
machine.</para>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para><option>--enable-vmwgfx-experimental-api</option>: This parameter
enables use of vmwgfx's experimental kernel API.</para>
<para><option>--enable-omap-experimental-api</option>: This option
enables use of OMAP's experimental kernel API. OMAP is a series of
system-on-chips (SoCs) developed by Texas Instruments.</para>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>None</seg>
<seg>libdrm.so, libdrm_intel.so, libdrm_nouveau.so,
libdrm_radeon.so and libkms.so</seg>
<seg><envar>$XORG_PREFIX</envar>/include/{libdrm,libkms}</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="libdrm-lib">
<term><filename class='libraryfile'>libdrm{,_intel,_nouveau,_radeon}.so</filename></term>
<listitem>
<para>contains the Direct Rendering Module library functions, and
additional vendor specific functions for Intel, NVidia and Radeon
devices.</para>
<indexterm zone="libdrm libdrm-lib">
<primary sortas="c-libdrm">libdrm{,_intel,_nouveau,_radeon}.so</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libkms-lib">
<term><filename class='libraryfile'>libkms.so</filename></term>
<listitem>
<para>contains functions necessary for kernel modesetting.</para>
<indexterm zone="libdrm libkms-lib">
<primary sortas="c-libkms">libkms.so</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>