source: x/lib/gdk-pixbuf.xml@ 07cb2c5

lazarus trunk
Last change on this file since 07cb2c5 was c0bc0a9, checked in by Xi Ruoyao <xry111@…>, 4 months ago

Update to glib-2.80.0 and gobject-introspection-1.80.0

Merge gobject-introspection into glib page to better handle a circular
dependency between these two packages.

  • Property mode set to 100644
File size: 9.5 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY gdk-pixbuf-download-http
8 "&gnome-download-http;/gdk-pixbuf/2.42/gdk-pixbuf-&gdk-pixbuf-version;.tar.xz">
9 <!ENTITY gdk-pixbuf-download-ftp " ">
10 <!ENTITY gdk-pixbuf-md5sum "4a62f339cb1424693fba9bb7ffef8150">
11 <!ENTITY gdk-pixbuf-size "6.2 MB">
12 <!ENTITY gdk-pixbuf-buildsize "36 MB (with tests)">
13 <!ENTITY gdk-pixbuf-time "0.2 SBU (With tests; both using parallelism=4)">
14]>
15
16<sect1 id="gdk-pixbuf" xreflabel="gdk-pixbuf-&gdk-pixbuf-version;">
17 <?dbhtml filename="gdk-pixbuf.html"?>
18
19
20 <title>gdk-pixbuf-&gdk-pixbuf-version;</title>
21
22 <indexterm zone="gdk-pixbuf">
23 <primary sortas="a-gdk-pixbuf">gdk-pixbuf</primary>
24 </indexterm>
25
26 <sect2 role="package">
27 <title>Introduction to Gdk Pixbuf</title>
28
29 <para>
30 The <application>Gdk Pixbuf</application> package is a toolkit for image
31 loading and pixel buffer manipulation. It is used by
32 <application>GTK+ 2</application> and <application>GTK+ 3</application> to
33 load and manipulate images. In the past it was distributed as part of
34 <application>GTK+ 2</application> but it was split off into a separate
35 package in preparation for the change to <application>GTK+ 3</application>.
36 </para>
37
38 &lfs121_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&gdk-pixbuf-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&gdk-pixbuf-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &gdk-pixbuf-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &gdk-pixbuf-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &gdk-pixbuf-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &gdk-pixbuf-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Gdk Pixbuf Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required">
78 <xref linkend="glib2"/> (GObject Introspection required for GNOME),
79 <xref linkend="libjpeg"/>,
80 <xref linkend="libpng"/>, and
81 <xref linkend="shared-mime-info"/>
82 </para>
83
84 <bridgehead renderas="sect4">Recommended</bridgehead>
85 <para role="recommended">
86 <xref linkend="docutils"/>,
87 <xref role="runtime" linkend="librsvg"/> (runtime dependency, needed for
88 loading symbolic icons) and
89 <xref linkend="libtiff"/>
90 </para>
91
92 <bridgehead renderas="sect4">Optional</bridgehead>
93 <para role="optional">
94 <xref linkend="gi-docgen"/>
95 (to generate documentation),
96 <xref role="runtime" linkend="libavif"/>
97 (runtime dependency, needed for loading AVIF images), and
98 <xref role="runtime" linkend="webp-pixbuf-loader"/>
99 (runtime dependency, needed for loading WebP images)
100 </para>
101
102 </sect2>
103
104 <sect2 role="installation">
105 <title>Installation of Gdk Pixbuf</title>
106
107 <para>
108 Install <application>Gdk Pixbuf</application> by running the following
109 commands:
110 </para>
111
112<screen><userinput>mkdir build &amp;&amp;
113cd build &amp;&amp;
114
115meson setup .. \
116 --prefix=/usr \
117 --buildtype=release \
118 --wrap-mode=nofallback &amp;&amp;
119ninja</userinput></screen>
120
121 <para>
122 If you have <xref linkend='gi-docgen'/> installed and wish to build
123 the API documentation for this package, issue:
124 </para>
125
126<screen role='nodump'><userinput>sed "/docs_dir =/s@\$@ / 'gdk-pixbuf-&gdk-pixbuf-version;'@" -i ../docs/meson.build &amp;&amp;
127meson configure -Dgtk_doc=true &amp;&amp;
128ninja</userinput></screen>
129
130 <para>
131 To test the results, issue: <command>ninja test</command>. The tests
132 make a heavy use of disk.
133 </para>
134
135 <para>
136 Now, as the <systemitem class="username">root</systemitem> user:
137 </para>
138
139<screen role="root"><userinput>ninja install</userinput></screen>
140
141 <note>
142 <para>
143 If you installed the package on to your system using a
144 <quote>DESTDIR</quote> method, an important file was not installed and
145 should be copied and/or generated. Generate it using the following
146 command as the <systemitem class="username">root</systemitem> user:
147 </para>
148
149<screen role="root"><userinput>gdk-pixbuf-query-loaders --update-cache</userinput></screen>
150 </note>
151 </sect2>
152
153 <sect2 role="commands">
154 <title>Command Explanations</title>
155
156 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
157 href="../../xincludes/meson-buildtype-release.xml"/>
158
159 <!-- gi-docgen can get installed without this, if deps exist -->
160 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
161 href="../../xincludes/meson-wrap-nofallback.xml"/>
162
163 <!-- with 2.42.9, docutils must be installed to generate man pages.
164 Without this, you'll get the following output:
165 Program rst2man found: ../docs/meson.build:70:2: ERROR: Problem encountered:
166 No rst2man found, but man pages were explicitly enabled -->
167 <para>
168 <option>-Dman=false</option>: Use this option if you do not want to
169 generate manual pages, or if you do not want to install
170 <xref linkend="docutils" role="nodep"/>.
171 </para>
172 </sect2>
173
174 <sect2 role="content">
175 <title>Contents</title>
176
177 <segmentedlist>
178 <segtitle>Installed Programs</segtitle>
179 <segtitle>Installed Libraries</segtitle>
180 <segtitle>Installed Directories</segtitle>
181
182 <seglistitem>
183 <seg>
184 gdk-pixbuf-csource,
185 gdk-pixbuf-pixdata,
186 gdk-pixbuf-query-loaders, and
187 gdk-pixbuf-thumbnailer
188 </seg>
189 <seg>
190 libgdk_pixbuf-2.0.so
191 </seg>
192 <seg>
193 /usr/{include,lib}/gdk-pixbuf-2.0,
194 /usr/libexec/installed-tests/gdk-pixbuf,
195 /usr/share/installed-tests/gdk-pixbuf,
196 /usr/share/gtk-doc/html/gdk-pixbuf, and
197 /usr/share/thumbnailers
198 </seg>
199 </seglistitem>
200 </segmentedlist>
201
202 <variablelist>
203 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
204 <?dbfo list-presentation="list"?>
205 <?dbhtml list-presentation="table"?>
206
207 <varlistentry id="gdk-pixbuf-csource">
208 <term><command>gdk-pixbuf-csource</command></term>
209 <listitem>
210 <para>
211 is a small utility that generates C code containing images, used
212 for compiling images directly into programs
213 </para>
214 <indexterm zone="gdk-pixbuf gdk-pixbuf-csource">
215 <primary sortas="b-gdk-pixbuf-csource">gdk-pixbuf-csource</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
219
220 <varlistentry id="gdk-pixbuf-pixdata">
221 <term><command>gdk-pixbuf-pixdata</command></term>
222 <listitem>
223 <para>
224 is a tool used to convert GdkPixbuf to GdkPixdata
225 </para>
226 <indexterm zone="gdk-pixbuf gdk-pixbuf-pixdata">
227 <primary sortas="b-gdk-pixbuf-pixdata">gdk-pixbuf-pixdata</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 <varlistentry id="gdk-pixbuf-query-loaders">
233 <term><command>gdk-pixbuf-query-loaders</command></term>
234 <listitem>
235 <para>
236 collects information about loadable modules for
237 <application>Gdk Pixbuf</application> and writes it
238 to the default cache file location, or to stdout
239 </para>
240 <indexterm zone="gdk-pixbuf gdk-pixbuf-query-loaders">
241 <primary sortas="b-gdk-pixbuf-query-loaders">gdk-pixbuf-query-loaders</primary>
242 </indexterm>
243 </listitem>
244 </varlistentry>
245
246 <varlistentry id="gdk-pixbuf-thumbnailer">
247 <term><command>gdk-pixbuf-thumbnailer</command></term>
248 <listitem>
249 <para>
250 creates thumbnails of pictures for use in other applications
251 </para>
252 <indexterm zone="gdk-pixbuf gdk-pixbuf-thumbnailer">
253 <primary sortas="b-gdk-pixbuf-thumbnailer">gdk-pixbuf-thumbnailer</primary>
254 </indexterm>
255 </listitem>
256 </varlistentry>
257
258 <varlistentry id="libgdk_pixbuf-2">
259 <term><filename class="libraryfile">libgdk_pixbuf-2.0.so</filename></term>
260 <listitem>
261 <para>
262 contains functions used to load and render images
263 </para>
264 <indexterm zone="gdk-pixbuf libgdk_pixbuf-2">
265 <primary sortas="c-libgdk_pixbuf-2">libgdk_pixbuf-2.0.so</primary>
266 </indexterm>
267 </listitem>
268 </varlistentry>
269
270 <!-- Split off into gdk-pixbuf-xlib
271 <varlistentry id="libgdk_pixbuf_xlib-2">
272 <term><filename class="libraryfile">libgdk_pixbuf_xlib-2.0.so</filename></term>
273 <listitem>
274 <para>
275 contains functions used to manipulate images and interfaces with
276 <application>Xlib</application>
277 </para>
278 <indexterm zone="gdk-pixbuf libgdk_pixbuf_xlib-2">
279 <primary sortas="c-libgdk_pixbuf_xlib-2">libgdk_pixbuf_xlib-2.0.so</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283 -->
284 </variablelist>
285
286 </sect2>
287
288</sect1>
Note: See TracBrowser for help on using the repository browser.