source: x/lib/libdrm.xml@ 9a82a965

12.0 12.1 gimp3 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128 xry111/xf86-video-removal
Last change on this file since 9a82a965 was 91318eb, checked in by Pierre Labastie <pierre.labastie@…>, 18 months ago

Add "setup" to meson commands

I've not been very consistent on typography, but it is a start

  • Property mode set to 100644
File size: 8.5 KB
RevLine 
[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
[0f5317a4]7 <!ENTITY libdrm-download-http "https://dri.freedesktop.org/libdrm/libdrm-&libdrm-version;.tar.xz">
[aa7a7fb]8 <!ENTITY libdrm-download-ftp " ">
[cce533d]9 <!ENTITY libdrm-md5sum "5403981a20c964f4c893ff91393652bd">
10 <!ENTITY libdrm-size "459 KB">
11 <!ENTITY libdrm-buildsize "8.6 MB (with tests)">
12 <!ENTITY libdrm-time "less than 0.1 SBU (with tests) with parallelism=4">
[f4327ad9]13 <!-- With version 2.4.102, the tests add 1 second to my build. -->
[f1a479c7]14 <!-- The 'threaded' test adds about 15 seconds if you're on an NVIDIA system
15 due to it directly interacting with the GPU. -->
[868c7c2]16]>
17
18<sect1 id="libdrm" xreflabel="libdrm-&libdrm-version;">
19 <?dbhtml filename="libdrm.html"?>
20
21
[a0e08b2]22 <title>Libdrm-&libdrm-version;</title>
[868c7c2]23
24 <indexterm zone="libdrm">
25 <primary sortas="a-libdrm">libdrm</primary>
26 </indexterm>
27
28 <sect2 role="package">
[a0e08b2]29 <title>Introduction to Libdrm</title>
[868c7c2]30
[3bbf74c5]31 <para>
[a0e08b2]32 <application>Libdrm</application> provides a userspace library for
33 accessing the direct rendering manager (DRM) on operating systems that
34 support the ioctl interface. Libdrm is a low-level library, typically used
[3538884]35 by graphics drivers such as the Mesa DRI drivers, the X drivers, libva and
36 similar projects.
[3bbf74c5]37 </para>
[868c7c2]38
[18aa9339]39 &lfs113_checked;
[1ed7820]40
[868c7c2]41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
[3bbf74c5]44 <para>
45 Download (HTTP): <ulink url="&libdrm-download-http;"/>
46 </para>
[868c7c2]47 </listitem>
48 <listitem>
[3bbf74c5]49 <para>
50 Download (FTP): <ulink url="&libdrm-download-ftp;"/>
51 </para>
[868c7c2]52 </listitem>
53 <listitem>
[3bbf74c5]54 <para>
55 Download MD5 sum: &libdrm-md5sum;
56 </para>
[868c7c2]57 </listitem>
58 <listitem>
[3bbf74c5]59 <para>
60 Download size: &libdrm-size;
61 </para>
[868c7c2]62 </listitem>
63 <listitem>
[3bbf74c5]64 <para>
65 Estimated disk space required: &libdrm-buildsize;
66 </para>
[868c7c2]67 </listitem>
68 <listitem>
[3bbf74c5]69 <para>
70 Estimated build time: &libdrm-time;
71 </para>
[868c7c2]72 </listitem>
73 </itemizedlist>
74
[10e02da]75 <bridgehead renderas="sect3">libdrm Dependencies</bridgehead>
76
[3538884]77 <bridgehead renderas="sect4">Recommended</bridgehead>
78 <para role="recommended">
[6121fe5]79 <xref linkend="xorg7-lib"/> (for Intel KMS API support required by Mesa)
[0d6e0af]80 </para>
[10e02da]81
[0d6e0af]82 <bridgehead renderas="sect4">Optional</bridgehead>
83 <para role="optional">
[597ac4bd]84 <xref linkend="cairo"/> (for tests),
[7292e01]85 <xref linkend="cmake"/> (could be used to find dependencies without pkgconfig files),
[e520239f]86 <xref linkend="DocBook"/>,
[4d59e9e]87 <xref linkend="docbook-xsl"/>,
88 <xref linkend="docutils"/>, and
[597ac4bd]89 <xref linkend="libxslt"/> (to build manual pages),
[7292e01]90 <xref linkend="libatomic_ops"/> (required by architectures without native atomic operations),
[597ac4bd]91 <xref linkend="valgrind"/>, and
[2974f01]92 <ulink url="https://cunit.sourceforge.net/">CUnit</ulink> (for AMDGPU tests)
[0d6e0af]93 </para>
[14dcfecb]94
[c5c2654]95 <para condition="html" role="usernotes">User Notes:
[3bbf74c5]96 <ulink url="&blfs-wiki;/libdrm"/>
97 </para>
[868c7c2]98 </sect2>
99
100 <sect2 role="installation">
[a0e08b2]101 <title>Installation of Libdrm</title>
[868c7c2]102
[3bbf74c5]103 <para>
104 Install <application>libdrm</application> by running the following
105 commands:
106 </para>
[868c7c2]107
[49df687a]108<screen><userinput>mkdir build &amp;&amp;
[431f388]109cd build &amp;&amp;
110
[91318eb]111meson setup --prefix=$XORG_PREFIX \
112 --buildtype=release \
113 -Dudev=true \
114 -Dvalgrind=disabled \
115 .. &amp;&amp;
[49df687a]116ninja</userinput></screen>
[868c7c2]117
[3bbf74c5]118 <para>
[f4327ad9]119 To check the results, issue <command>ninja test</command>. <!--One test,
[8558044]120 'threaded' in the nouveau subdirectory, is known to fail with a
[f4327ad9]121 30 second timeout.-->
122 <!-- Regarding the 'threaded' test, it's now skipped by default (2.4.102)
123 -renodr -->
[8558044]124
[17756081]125 <!-- Tests may hang
[0f09c2b8]126 for unknown reasons. --><!-- If nouveau threaded test hangs, you can disable it
[68d5b0e]127 with
[8558044]128 <command>sed -i 's/^TESTS/#&amp;/' tests/nouveau/Makefile.in</command>.
129
[17756081]130 Now that tests are run with ninja, the test merely times out after 30 seconds.
131 -->
[3bbf74c5]132 </para>
[ad54ac8]133
[3bbf74c5]134 <para>
135 Now, as the <systemitem class="username">root</systemitem> user:
136 </para>
[868c7c2]137
[49df687a]138<screen role="root"><userinput>ninja install</userinput></screen>
[868c7c2]139
140 </sect2>
141
[7c472863]142 <sect2 role="commands">
143 <title>Command Explanations</title>
144
[adf17153]145 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
146 href="../../xincludes/meson-buildtype-release.xml"/>
147
[6eceb9c8]148 <para>
[49df687a]149 <parameter>-Dudev=true</parameter>: This parameter enables support for using
[6eceb9c8]150 <application>Udev</application> instead of <command>mknod</command>.
151 </para>
[a9ae025]152
[724fc4d1]153 <para>
[80eea7aa]154 <parameter>-Dvalgrind=disabled</parameter>: This parameter disables
155 building libdrm with valgrind support. This fixes building sysprof and
156 other packages that use libdrm. Change this parameter to "enabled"
157 (or remove it) if you need support for valgrind.
[724fc4d1]158 </para>
159
[7c472863]160 </sect2>
161
[868c7c2]162 <sect2 role="content">
163 <title>Contents</title>
164
165 <segmentedlist>
[c3c56b2]166 <segtitle>Installed Programs</segtitle>
[a1e27dc]167 <segtitle>Installed Libraries</segtitle>
[86f7fa0]168 <segtitle>Installed Directories</segtitle>
[868c7c2]169
170 <seglistitem>
[c3c56b2]171 <seg>
172 None
173 </seg>
[3bbf74c5]174 <seg>
[68d5b0e]175 libdrm_amdgpu.so, libdrm_intel.so, libdrm_nouveau.so,
[4956ae3]176 libdrm_radeon.so, and libdrm.so<!--, and libkms.so-->
[3bbf74c5]177 </seg>
178 <seg>
[1fe05eb]179 /usr/include/libdrm <!--,/usr/include/libkms,-->
[4956ae3]180 and /usr/share/libdrm
[3bbf74c5]181 </seg>
[868c7c2]182 </seglistitem>
183 </segmentedlist>
184
185 <variablelist>
186 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
187 <?dbfo list-presentation="list"?>
188 <?dbhtml list-presentation="table"?>
189
[68d5b0e]190 <varlistentry id="libdrm_amdgpu">
191 <term><filename class="libraryfile">libdrm_amdgpu.so</filename></term>
[868c7c2]192 <listitem>
[3bbf74c5]193 <para>
[4c24eb0a]194 contains the AMDGPU specific Direct Rendering Manager functions
[3bbf74c5]195 </para>
[68d5b0e]196 <indexterm zone="libdrm libdrm_amdgpu">
197 <primary sortas="c-libdrm_amdgpu">libdrm_amdgpu.so</primary>
[a07e9eb]198 </indexterm>
199 </listitem>
200 </varlistentry>
201
202 <varlistentry id="libdrm_intel">
203 <term><filename class="libraryfile">libdrm_intel.so</filename></term>
204 <listitem>
205 <para>
206 contains the Intel specific Direct Rendering Manager
[4c24eb0a]207 functions
[a07e9eb]208 </para>
209 <indexterm zone="libdrm libdrm_intel">
210 <primary sortas="c-libdrm_intel">libdrm_intel.so</primary>
211 </indexterm>
212 </listitem>
213 </varlistentry>
214
215 <varlistentry id="libdrm_nouveau">
216 <term><filename class="libraryfile">libdrm_nouveau.so</filename></term>
217 <listitem>
218 <para>
219 contains the open source nVidia (Nouveau) specific Direct
[4c24eb0a]220 Rendering Manager functions
[a07e9eb]221 </para>
222 <indexterm zone="libdrm libdrm_nouveau">
223 <primary sortas="c-libdrm_nouveau">libdrm_nouveau.so</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
[34122fa4]228 <varlistentry id="libdrm_radeon">
229 <term><filename class="libraryfile">libdrm_radeon.so</filename></term>
[68d5b0e]230 <listitem>
231 <para>
[34122fa4]232 contains the AMD Radeon specific Direct Rendering Manager
[4c24eb0a]233 functions
[68d5b0e]234 </para>
[34122fa4]235 <indexterm zone="libdrm libdrm_radeon">
236 <primary sortas="c-libdrm_radeon">libdrm_radeon.so</primary>
[68d5b0e]237 </indexterm>
238 </listitem>
239 </varlistentry>
240
[34122fa4]241 <varlistentry id="libdrm-lib">
242 <term><filename class="libraryfile">libdrm.so</filename></term>
[a07e9eb]243 <listitem>
244 <para>
[4c24eb0a]245 contains the Direct Rendering Manager API functions
[a07e9eb]246 </para>
[34122fa4]247 <indexterm zone="libdrm libdrm-lib">
248 <primary sortas="c-libdrm">libdrm.so</primary>
[7c472863]249 </indexterm>
250 </listitem>
251 </varlistentry>
[3bbf74c5]252
[4956ae3]253 <!-- Removed in 2.4.111
[a07e9eb]254 <varlistentry id="libkms">
255 <term><filename class="libraryfile">libkms.so</filename></term>
[7c472863]256 <listitem>
[3bbf74c5]257 <para>
[4c24eb0a]258 contains API functions for kernel mode setting abstraction
[3bbf74c5]259 </para>
[a07e9eb]260 <indexterm zone="libdrm libkms">
[7c472863]261 <primary sortas="c-libkms">libkms.so</primary>
[868c7c2]262 </indexterm>
263 </listitem>
264 </varlistentry>
[4956ae3]265 -->
[868c7c2]266
267 </variablelist>
268
269 </sect2>
270
271</sect1>
Note: See TracBrowser for help on using the repository browser.