[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 " ">
|
---|
[7ca0e36] | 9 | <!ENTITY libdrm-md5sum "04f40d6a647e5149fe442cf536ae0a37">
|
---|
| 10 | <!ENTITY libdrm-size "480 KB">
|
---|
| 11 | <!ENTITY libdrm-buildsize "11 MB">
|
---|
[a07e9eb] | 12 | <!ENTITY libdrm-time "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 |
|
---|
[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 |
|
---|
[a07e9eb] | 38 | &lfs72_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 | <para>
|
---|
| 95 | Install <application>libdrm</application> by running the following
|
---|
| 96 | commands:
|
---|
| 97 | </para>
|
---|
[868c7c2] | 98 |
|
---|
[7ca0e36] | 99 | <screen><userinput>sed -e "/pthread-stubs/d" -i configure.ac &&
|
---|
| 100 | sed -e "/man\/Makefile/d" -i configure.ac &&
|
---|
| 101 | autoreconf -fi &&
|
---|
| 102 | ./configure --prefix=/usr --enable-udev &&
|
---|
[868c7c2] | 103 | make</userinput></screen>
|
---|
| 104 |
|
---|
[3bbf74c5] | 105 | <para>
|
---|
[a07e9eb] | 106 | To check the results, issue <command>make check</command>.
|
---|
[3bbf74c5] | 107 | </para>
|
---|
[ad54ac8] | 108 |
|
---|
[3bbf74c5] | 109 | <para>
|
---|
| 110 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 111 | </para>
|
---|
[868c7c2] | 112 |
|
---|
| 113 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 114 |
|
---|
| 115 | </sect2>
|
---|
| 116 |
|
---|
[7c472863] | 117 | <sect2 role="commands">
|
---|
| 118 | <title>Command Explanations</title>
|
---|
| 119 |
|
---|
[7ca0e36] | 120 | <para>
|
---|
| 121 | <command>sed -e "/pthread-stubs/d" -i configure.ac</command>:
|
---|
| 122 | This sed removes dependency on libpthread-stubs package
|
---|
| 123 | which is useless on Linux.
|
---|
| 124 | </para>
|
---|
| 125 |
|
---|
| 126 | <para>
|
---|
| 127 | <command>sed -e "/man\/Makefile/d" -i configure.ac</command>:
|
---|
| 128 | This sed prevents <command>configure</command> from failing
|
---|
| 129 | since <filename>man/Makefile.in</filename> is missing in the
|
---|
| 130 | source tarball.
|
---|
| 131 | </para>
|
---|
| 132 |
|
---|
[3bbf74c5] | 133 | <para>
|
---|
| 134 | <option>--enable-omap-experimental-api</option>: This option
|
---|
[a07e9eb] | 135 | enables use of OMAP's experimental kernel API. OMAP is a series
|
---|
| 136 | of system-on-chips (SoCs) developed by Texas Instruments.
|
---|
| 137 | </para>
|
---|
| 138 |
|
---|
| 139 | <para>
|
---|
| 140 | <option>--enable-exynos-experimental-api</option>: This option
|
---|
| 141 | enables use of Exynos experimental kernel API. Exynos is a
|
---|
| 142 | series of system-on-chips (SoCs) developed by Samsung.
|
---|
[3bbf74c5] | 143 | </para>
|
---|
[7c472863] | 144 |
|
---|
| 145 | </sect2>
|
---|
| 146 |
|
---|
[868c7c2] | 147 | <sect2 role="content">
|
---|
| 148 | <title>Contents</title>
|
---|
| 149 |
|
---|
| 150 | <segmentedlist>
|
---|
[c3c56b2] | 151 | <segtitle>Installed Programs</segtitle>
|
---|
[a1e27dc] | 152 | <segtitle>Installed Libraries</segtitle>
|
---|
[86f7fa0] | 153 | <segtitle>Installed Directories</segtitle>
|
---|
[868c7c2] | 154 |
|
---|
| 155 | <seglistitem>
|
---|
[c3c56b2] | 156 | <seg>
|
---|
| 157 | None
|
---|
| 158 | </seg>
|
---|
[3bbf74c5] | 159 | <seg>
|
---|
[a07e9eb] | 160 | libdrm.so, libdrm_exynos.so, libdrm_intel.so,
|
---|
| 161 | libdrm_nouveau.so, libdrm_omap.so,
|
---|
[3bbf74c5] | 162 | libdrm_radeon.so and libkms.so
|
---|
| 163 | </seg>
|
---|
| 164 | <seg>
|
---|
[a07e9eb] | 165 | /usr/include/exynos,
|
---|
| 166 | /usr/include/libdrm,
|
---|
| 167 | /usr/include/libkms and
|
---|
| 168 | /usr/include/omap
|
---|
[3bbf74c5] | 169 | </seg>
|
---|
[868c7c2] | 170 | </seglistitem>
|
---|
| 171 | </segmentedlist>
|
---|
| 172 |
|
---|
| 173 | <variablelist>
|
---|
| 174 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 175 | <?dbfo list-presentation="list"?>
|
---|
| 176 | <?dbhtml list-presentation="table"?>
|
---|
| 177 |
|
---|
| 178 | <varlistentry id="libdrm-lib">
|
---|
[a07e9eb] | 179 | <term><filename class="libraryfile">libdrm.so</filename></term>
|
---|
[868c7c2] | 180 | <listitem>
|
---|
[3bbf74c5] | 181 | <para>
|
---|
[a07e9eb] | 182 | contains the Direct Rendering Manager API functions.
|
---|
[3bbf74c5] | 183 | </para>
|
---|
[868c7c2] | 184 | <indexterm zone="libdrm libdrm-lib">
|
---|
[a07e9eb] | 185 | <primary sortas="c-libdrm">libdrm.so</primary>
|
---|
| 186 | </indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
| 189 |
|
---|
| 190 | <varlistentry id="libdrm_exynos">
|
---|
| 191 | <term><filename class="libraryfile">libdrm_exynos.so</filename></term>
|
---|
| 192 | <listitem>
|
---|
| 193 | <para>
|
---|
| 194 | contains the Samsung Exynos specific Direct Rendering
|
---|
| 195 | Manager functions.
|
---|
| 196 | </para>
|
---|
| 197 | <indexterm zone="libdrm libdrm_exynos">
|
---|
| 198 | <primary sortas="c-libdrm_exynos">libdrm_exynos.so</primary>
|
---|
| 199 | </indexterm>
|
---|
| 200 | </listitem>
|
---|
| 201 | </varlistentry>
|
---|
| 202 |
|
---|
| 203 | <varlistentry id="libdrm_intel">
|
---|
| 204 | <term><filename class="libraryfile">libdrm_intel.so</filename></term>
|
---|
| 205 | <listitem>
|
---|
| 206 | <para>
|
---|
| 207 | contains the Intel specific Direct Rendering Manager
|
---|
| 208 | functions.
|
---|
| 209 | </para>
|
---|
| 210 | <indexterm zone="libdrm libdrm_intel">
|
---|
| 211 | <primary sortas="c-libdrm_intel">libdrm_intel.so</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
| 215 |
|
---|
| 216 | <varlistentry id="libdrm_nouveau">
|
---|
| 217 | <term><filename class="libraryfile">libdrm_nouveau.so</filename></term>
|
---|
| 218 | <listitem>
|
---|
| 219 | <para>
|
---|
| 220 | contains the open source nVidia (Nouveau) specific Direct
|
---|
| 221 | Rendering Manager functions.
|
---|
| 222 | </para>
|
---|
| 223 | <indexterm zone="libdrm libdrm_nouveau">
|
---|
| 224 | <primary sortas="c-libdrm_nouveau">libdrm_nouveau.so</primary>
|
---|
| 225 | </indexterm>
|
---|
| 226 | </listitem>
|
---|
| 227 | </varlistentry>
|
---|
| 228 |
|
---|
| 229 | <varlistentry id="libdrm_omap">
|
---|
| 230 | <term><filename class="libraryfile">libdrm_omap.so</filename></term>
|
---|
| 231 | <listitem>
|
---|
| 232 | <para>
|
---|
| 233 | contains the TI Omap specific Direct Rendering Manager
|
---|
| 234 | functions.
|
---|
| 235 | </para>
|
---|
| 236 | <indexterm zone="libdrm libdrm_omap">
|
---|
| 237 | <primary sortas="c-libdrm_omap">libdrm_omap.so</primary>
|
---|
| 238 | </indexterm>
|
---|
| 239 | </listitem>
|
---|
| 240 | </varlistentry>
|
---|
| 241 |
|
---|
| 242 | <varlistentry id="libdrm_radeon">
|
---|
| 243 | <term><filename class="libraryfile">libdrm_radeon.so</filename></term>
|
---|
| 244 | <listitem>
|
---|
| 245 | <para>
|
---|
| 246 | contains the AMD Radeon specific Direct Rendering Manager
|
---|
| 247 | functions.
|
---|
| 248 | </para>
|
---|
| 249 | <indexterm zone="libdrm libdrm_radeon">
|
---|
| 250 | <primary sortas="c-libdrm_radeon">libdrm_radeon.so</primary>
|
---|
[7c472863] | 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
[3bbf74c5] | 254 |
|
---|
[a07e9eb] | 255 | <varlistentry id="libkms">
|
---|
| 256 | <term><filename class="libraryfile">libkms.so</filename></term>
|
---|
[7c472863] | 257 | <listitem>
|
---|
[3bbf74c5] | 258 | <para>
|
---|
[a07e9eb] | 259 | contains API functions necessary for kernel modesetting.
|
---|
[3bbf74c5] | 260 | </para>
|
---|
[a07e9eb] | 261 | <indexterm zone="libdrm libkms">
|
---|
[7c472863] | 262 | <primary sortas="c-libkms">libkms.so</primary>
|
---|
[868c7c2] | 263 | </indexterm>
|
---|
| 264 | </listitem>
|
---|
| 265 | </varlistentry>
|
---|
| 266 |
|
---|
| 267 | </variablelist>
|
---|
| 268 |
|
---|
| 269 | </sect2>
|
---|
| 270 |
|
---|
| 271 | </sect1>
|
---|