[868c7c2] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[868c7c2] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[62334bfc] | 7 | <!ENTITY libdrm-download-http "http://dri.freedesktop.org/libdrm/libdrm-&libdrm-version;.tar.bz2">
|
---|
[aa7a7fb] | 8 | <!ENTITY libdrm-download-ftp " ">
|
---|
[86f7fa0] | 9 | <!ENTITY libdrm-md5sum "293cb2b31392d52caa02ab0861dfc2c9">
|
---|
| 10 | <!ENTITY libdrm-size "559 KB">
|
---|
| 11 | <!ENTITY libdrm-buildsize "7.2 MB">
|
---|
[62334bfc] | 12 | <!ENTITY libdrm-time "less than 0.1 SBU">
|
---|
[868c7c2] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libdrm" xreflabel="libdrm-&libdrm-version;">
|
---|
| 16 | <?dbhtml filename="libdrm.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>libdrm-&libdrm-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="libdrm">
|
---|
| 26 | <primary sortas="a-libdrm">libdrm</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to libdrm</title>
|
---|
| 31 |
|
---|
[d9c80e1] | 32 | <para><application>libdrm</application> provides core library routines
|
---|
| 33 | for the X Window System to directly interface with video hardware using
|
---|
[86f7fa0] | 34 | the Linux kernel's Direct Rendering Modules (DRM).</para>
|
---|
[868c7c2] | 35 |
|
---|
[719353d] | 36 | &lfs71_checked;
|
---|
[1ed7820] | 37 |
|
---|
[868c7c2] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&libdrm-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&libdrm-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &libdrm-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &libdrm-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &libdrm-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &libdrm-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
[10e02da] | 60 | <bridgehead renderas="sect3">libdrm Dependencies</bridgehead>
|
---|
| 61 |
|
---|
| 62 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[0d6e0af] | 63 | <para role="required">
|
---|
| 64 | <xref linkend="xorg7-lib"/>
|
---|
| 65 | </para>
|
---|
[10e02da] | 66 |
|
---|
[0d6e0af] | 67 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 68 | <para role="optional">
|
---|
| 69 | <ulink url="http://www.valgrind.org/">Valgrind</ulink>
|
---|
| 70 | </para>
|
---|
| 71 |
|
---|
[68d01360] | 72 | <!-- Although configure checks for Cairo and the makefiles set CAIRO_CFLAGS
|
---|
| 73 | and CAIRO_LIBS, it doesn't seem to use cairo at all. There is code in
|
---|
| 74 | tests/modetest/modetest.c which suggests that they will use Cairo for
|
---|
| 75 | testing in the future, but at the moment it seems that code isn't used
|
---|
| 76 | Andy 2012-05-01
|
---|
| 77 |
|
---|
[7c472863] | 78 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 79 | <para role="optional"><xref linkend="cairo"/></para>
|
---|
[68d01360] | 80 | -->
|
---|
[7c472863] | 81 |
|
---|
[c5c2654] | 82 | <para condition="html" role="usernotes">User Notes:
|
---|
| 83 | <ulink url="&blfs-wiki;/libdrm"/></para>
|
---|
| 84 |
|
---|
[868c7c2] | 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 role="installation">
|
---|
| 88 | <title>Installation of libdrm</title>
|
---|
| 89 |
|
---|
| 90 | <para>Install <application>libdrm</application> by running the following
|
---|
| 91 | commands:</para>
|
---|
| 92 |
|
---|
[719353d] | 93 | <screen><userinput>./configure --prefix=$XORG_PREFIX \
|
---|
[86f7fa0] | 94 | --enable-udev \
|
---|
| 95 | --enable-vmwgfx-experimental-api &&
|
---|
[868c7c2] | 96 | make</userinput></screen>
|
---|
| 97 |
|
---|
[a1e27dc] | 98 | <para>To check the results, issue <command>make check</command>. Note that
|
---|
| 99 | some tests may fail depending on the video hardware installed in the
|
---|
| 100 | machine.</para>
|
---|
[ad54ac8] | 101 |
|
---|
[868c7c2] | 102 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 103 |
|
---|
| 104 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 105 |
|
---|
| 106 | </sect2>
|
---|
| 107 |
|
---|
[7c472863] | 108 | <sect2 role="commands">
|
---|
| 109 | <title>Command Explanations</title>
|
---|
| 110 |
|
---|
[bad6be19] | 111 | <para><option>--enable-vmwgfx-experimental-api</option>: This parameter
|
---|
| 112 | enables use of vmwgfx's experimental kernel API.</para>
|
---|
[86f7fa0] | 113 |
|
---|
| 114 | <para><option>--enable-omap-experimental-api</option>: This option
|
---|
| 115 | enables use of OMAP's experimental kernel API. OMAP is a series of
|
---|
| 116 | system-on-chips (SoCs) developed by Texas Instruments.</para>
|
---|
[7c472863] | 117 |
|
---|
| 118 | </sect2>
|
---|
| 119 |
|
---|
[868c7c2] | 120 | <sect2 role="content">
|
---|
| 121 | <title>Contents</title>
|
---|
| 122 |
|
---|
| 123 | <segmentedlist>
|
---|
[759586e] | 124 | <segtitle>Installed Programs</segtitle>
|
---|
[a1e27dc] | 125 | <segtitle>Installed Libraries</segtitle>
|
---|
[86f7fa0] | 126 | <segtitle>Installed Directories</segtitle>
|
---|
[868c7c2] | 127 |
|
---|
| 128 | <seglistitem>
|
---|
[759586e] | 129 | <seg>None</seg>
|
---|
[7c472863] | 130 | <seg>libdrm.so, libdrm_intel.so, libdrm_nouveau.so,
|
---|
[86f7fa0] | 131 | libdrm_radeon.so and libkms.so</seg>
|
---|
| 132 | <seg><envar>$XORG_PREFIX</envar>/include/{libdrm,libkms}</seg>
|
---|
[868c7c2] | 133 | </seglistitem>
|
---|
| 134 | </segmentedlist>
|
---|
| 135 |
|
---|
| 136 | <variablelist>
|
---|
| 137 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 138 | <?dbfo list-presentation="list"?>
|
---|
| 139 | <?dbhtml list-presentation="table"?>
|
---|
| 140 |
|
---|
| 141 | <varlistentry id="libdrm-lib">
|
---|
[0d6e0af] | 142 | <term><filename class='libraryfile'>libdrm{_intel,_nouveau,_radeon}.so</filename></term>
|
---|
[868c7c2] | 143 | <listitem>
|
---|
[c52f1b3] | 144 | <para>contains the Direct Rendering Module library functions, and
|
---|
[0d6e0af] | 145 | additional vendor specific functions for Intel, nVidia and Radeon
|
---|
[c52f1b3] | 146 | devices.</para>
|
---|
[868c7c2] | 147 | <indexterm zone="libdrm libdrm-lib">
|
---|
[0d6e0af] | 148 | <primary sortas="c-libdrm">libdrm{_intel,_nouveau,_radeon}.so</primary>
|
---|
[7c472863] | 149 | </indexterm>
|
---|
| 150 | </listitem>
|
---|
| 151 | </varlistentry>
|
---|
| 152 | <varlistentry id="libkms-lib">
|
---|
| 153 | <term><filename class='libraryfile'>libkms.so</filename></term>
|
---|
| 154 | <listitem>
|
---|
| 155 | <para>contains functions necessary for kernel modesetting.</para>
|
---|
| 156 | <indexterm zone="libdrm libkms-lib">
|
---|
| 157 | <primary sortas="c-libkms">libkms.so</primary>
|
---|
[868c7c2] | 158 | </indexterm>
|
---|
| 159 | </listitem>
|
---|
| 160 | </varlistentry>
|
---|
| 161 |
|
---|
| 162 | </variablelist>
|
---|
| 163 |
|
---|
| 164 | </sect2>
|
---|
| 165 |
|
---|
| 166 | </sect1>
|
---|