[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 " ">
|
---|
[121d292] | 9 | <!ENTITY libdrm-md5sum "eb2a76720af5051b1687328a2240daed">
|
---|
| 10 | <!ENTITY libdrm-size "444 KB">
|
---|
| 11 | <!ENTITY libdrm-buildsize "10 MB">
|
---|
| 12 | <!ENTITY libdrm-time "0.2 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 |
|
---|
[3bbf74c5] | 32 | <para>
|
---|
| 33 | <application>libdrm</application> provides core library routines
|
---|
| 34 | for the X Window System to directly interface with video hardware using
|
---|
| 35 | the Linux kernel's Direct Rendering Manager (DRM).
|
---|
| 36 | </para>
|
---|
[868c7c2] | 37 |
|
---|
[719353d] | 38 | &lfs71_checked;
|
---|
[1ed7820] | 39 |
|
---|
[868c7c2] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[3bbf74c5] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&libdrm-download-http;"/>
|
---|
| 45 | </para>
|
---|
[868c7c2] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[3bbf74c5] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&libdrm-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[868c7c2] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[3bbf74c5] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &libdrm-md5sum;
|
---|
| 55 | </para>
|
---|
[868c7c2] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[3bbf74c5] | 58 | <para>
|
---|
| 59 | Download size: &libdrm-size;
|
---|
| 60 | </para>
|
---|
[868c7c2] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[3bbf74c5] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &libdrm-buildsize;
|
---|
| 65 | </para>
|
---|
[868c7c2] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[3bbf74c5] | 68 | <para>
|
---|
| 69 | Estimated build time: &libdrm-time;
|
---|
| 70 | </para>
|
---|
[868c7c2] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
[10e02da] | 74 | <bridgehead renderas="sect3">libdrm Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[0d6e0af] | 77 | <para role="required">
|
---|
[3bbf74c5] | 78 | <xref linkend="xorg7-lib"/>
|
---|
[0d6e0af] | 79 | </para>
|
---|
[10e02da] | 80 |
|
---|
[0d6e0af] | 81 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 82 | <para role="optional">
|
---|
[3bbf74c5] | 83 | <ulink url="http://www.valgrind.org/">Valgrind</ulink>
|
---|
[0d6e0af] | 84 | </para>
|
---|
[14dcfecb] | 85 |
|
---|
[c5c2654] | 86 | <para condition="html" role="usernotes">User Notes:
|
---|
[3bbf74c5] | 87 | <ulink url="&blfs-wiki;/libdrm"/>
|
---|
| 88 | </para>
|
---|
[868c7c2] | 89 | </sect2>
|
---|
| 90 |
|
---|
| 91 | <sect2 role="installation">
|
---|
| 92 | <title>Installation of libdrm</title>
|
---|
| 93 |
|
---|
[3bbf74c5] | 94 | <warning>
|
---|
| 95 | <para>
|
---|
| 96 | You may notice that there are several newer version of
|
---|
| 97 | <application>libdrm</application> available upstream.
|
---|
| 98 | However, we do not recommend using any later version than
|
---|
| 99 | this one if you are going to build
|
---|
| 100 | <xref linkend="mesalib"/> using BLFS instructions.
|
---|
| 101 | </para>
|
---|
| 102 | </warning>
|
---|
| 103 |
|
---|
| 104 | <para>
|
---|
| 105 | Install <application>libdrm</application> by running the following
|
---|
| 106 | commands:
|
---|
| 107 | </para>
|
---|
[868c7c2] | 108 |
|
---|
[a4a88173] | 109 | <screen><userinput>./configure --prefix=$XORG_PREFIX \
|
---|
| 110 | --enable-udev \
|
---|
| 111 | --enable-vmwgfx-experimental-api \
|
---|
[14dcfecb] | 112 | --enable-nouveau-experimental-api &&
|
---|
[868c7c2] | 113 | make</userinput></screen>
|
---|
| 114 |
|
---|
[3bbf74c5] | 115 | <para>
|
---|
| 116 | To check the results, issue <command>make check</command>. Note that
|
---|
| 117 | some tests may fail depending on the video hardware installed in the
|
---|
| 118 | machine.
|
---|
| 119 | </para>
|
---|
[ad54ac8] | 120 |
|
---|
[3bbf74c5] | 121 | <para>
|
---|
| 122 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 123 | </para>
|
---|
[868c7c2] | 124 |
|
---|
| 125 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 126 |
|
---|
| 127 | </sect2>
|
---|
| 128 |
|
---|
[7c472863] | 129 | <sect2 role="commands">
|
---|
| 130 | <title>Command Explanations</title>
|
---|
| 131 |
|
---|
[3bbf74c5] | 132 | <para>
|
---|
| 133 | <option>--enable-nouveau-experimental-api</option>: This parameter
|
---|
| 134 | enables building of Nouveau (Open Source NVidia drivers) DRM interface
|
---|
| 135 | library as well as corresponding headers.
|
---|
| 136 | </para>
|
---|
[14dcfecb] | 137 |
|
---|
[3bbf74c5] | 138 | <para>
|
---|
| 139 | <option>--enable-vmwgfx-experimental-api</option>: This parameter
|
---|
| 140 | enables use of vmwgfx experimental kernel API used by the
|
---|
| 141 | VMware 3D Gallium driver.
|
---|
| 142 | </para>
|
---|
| 143 |
|
---|
| 144 | <para>
|
---|
| 145 | <option>--enable-omap-experimental-api</option>: This option
|
---|
| 146 | enables use of OMAP's experimental kernel API. OMAP is a series of
|
---|
| 147 | system-on-chips (SoCs) developed by Texas Instruments.
|
---|
| 148 | </para>
|
---|
[7c472863] | 149 |
|
---|
| 150 | </sect2>
|
---|
| 151 |
|
---|
[868c7c2] | 152 | <sect2 role="content">
|
---|
| 153 | <title>Contents</title>
|
---|
| 154 |
|
---|
| 155 | <segmentedlist>
|
---|
[a1e27dc] | 156 | <segtitle>Installed Libraries</segtitle>
|
---|
[86f7fa0] | 157 | <segtitle>Installed Directories</segtitle>
|
---|
[868c7c2] | 158 |
|
---|
| 159 | <seglistitem>
|
---|
[3bbf74c5] | 160 | <seg>
|
---|
| 161 | libdrm.so, libdrm_intel.so, libdrm_nouveau.so, libdrm_omap.so
|
---|
| 162 | libdrm_radeon.so and libkms.so
|
---|
| 163 | </seg>
|
---|
| 164 | <seg>
|
---|
| 165 | <envar>$XORG_PREFIX</envar>/include/{libdrm,libkms,nouveau,omap}
|
---|
| 166 | </seg>
|
---|
[868c7c2] | 167 | </seglistitem>
|
---|
| 168 | </segmentedlist>
|
---|
| 169 |
|
---|
| 170 | <variablelist>
|
---|
| 171 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 172 | <?dbfo list-presentation="list"?>
|
---|
| 173 | <?dbhtml list-presentation="table"?>
|
---|
| 174 |
|
---|
| 175 | <varlistentry id="libdrm-lib">
|
---|
[3bbf74c5] | 176 | <term><filename class='libraryfile'>libdrm{,_intel,_nouveau,_omap,_radeon}.so</filename></term>
|
---|
[868c7c2] | 177 | <listitem>
|
---|
[3bbf74c5] | 178 | <para>
|
---|
| 179 | contains the Direct Rendering Manager library functions, and
|
---|
| 180 | additional vendor specific functions for Intel, nVidia, Omap
|
---|
| 181 | and Radeon devices.
|
---|
| 182 | </para>
|
---|
[868c7c2] | 183 | <indexterm zone="libdrm libdrm-lib">
|
---|
[3bbf74c5] | 184 | <primary sortas="c-libdrm">libdrm{,_intel,_nouveau,_omap,_radeon}.so</primary>
|
---|
[7c472863] | 185 | </indexterm>
|
---|
| 186 | </listitem>
|
---|
| 187 | </varlistentry>
|
---|
[3bbf74c5] | 188 |
|
---|
[7c472863] | 189 | <varlistentry id="libkms-lib">
|
---|
| 190 | <term><filename class='libraryfile'>libkms.so</filename></term>
|
---|
| 191 | <listitem>
|
---|
[3bbf74c5] | 192 | <para>
|
---|
| 193 | contains functions necessary for kernel modesetting.
|
---|
| 194 | </para>
|
---|
[7c472863] | 195 | <indexterm zone="libdrm libkms-lib">
|
---|
| 196 | <primary sortas="c-libkms">libkms.so</primary>
|
---|
[868c7c2] | 197 | </indexterm>
|
---|
| 198 | </listitem>
|
---|
| 199 | </varlistentry>
|
---|
| 200 |
|
---|
| 201 | </variablelist>
|
---|
| 202 |
|
---|
| 203 | </sect2>
|
---|
| 204 |
|
---|
| 205 | </sect1>
|
---|