source: general/graphlib/libraw.xml@ c8216c3d

10.0 10.1 11.0 11.1 11.2 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind lazarus perl-modules plabs/python-mods qt5new trunk upgradedb xry111/intltool xry111/soup3 xry111/test-20220226
Last change on this file since c8216c3d was c8216c3d, checked in by Ken Moffat <ken@…>, 5 years ago

Fix LibRaw for glibc-2.27. Reported by Spiky, fix from Armin.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19766 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 10.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
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 libraw-download-http "http://www.libraw.org/data/LibRaw-&libraw-version;.tar.gz">
8 <!ENTITY libraw-download-ftp " ">
9 <!ENTITY libraw-md5sum "36722a982a65c7969fb6a30272ea2836">
10 <!ENTITY libraw-size "1.2 MB">
11 <!ENTITY libraw-buildsize "14 MB">
12 <!ENTITY libraw-time "0.2 SBU">
13]>
14
15<sect1 id="libraw" xreflabel="libraw-&libraw-version;">
16 <?dbhtml filename="libraw.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>libraw-&libraw-version;</title>
24
25 <indexterm zone="libraw">
26 <primary sortas="a-libraw">libraw</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to libraw</title>
31
32 <para>
33 <application>Libraw</application> is a library for reading RAW files
34 obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others).
35 </para>
36
37 &lfs81_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&libraw-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&libraw-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &libraw-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &libraw-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &libraw-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &libraw-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">libraw Dependencies</bridgehead>
74
75 <bridgehead renderas="sect4">Recommended</bridgehead>
76 <para role="recommended">
77 <xref linkend="libjpeg"/>,
78 <xref linkend="jasper"/>, and
79 <xref linkend="lcms2"/>
80 </para>
81
82 <bridgehead renderas="sect4">Optional</bridgehead>
83 <para role="optional">
84 <ulink url="http://www.libraw.org/download">LibRaw-demosaic-pack-GPL2</ulink> and
85 <ulink url="http://www.libraw.org/download">LibRaw-demosaic-pack-GPL3</ulink>
86 </para>
87
88 <para condition="html" role="usernotes">User Notes:
89 <ulink url="&blfs-wiki;/libraw"/>
90 </para>
91 </sect2>
92
93 <sect2 role="installation">
94 <title>Installation of libraw</title>
95
96 <para>
97 Install <application>libraw</application> by running the following
98 commands:
99 </para>
100
101<screen><userinput>sed -i "s#powf64#dc_&amp;#g" internal/dcraw_common.cpp &amp;&amp;
102./configure --prefix=/usr \
103 --enable-jpeg \
104 --enable-jasper \
105 --enable-lcms \
106 --disable-static \
107 --docdir=/usr/share/doc/libraw-&libraw-version; &amp;&amp;
108make</userinput></screen>
109
110 <para>
111 This package does not come with a test suite.
112 </para>
113
114 <para>
115 Now, as the <systemitem class="username">root</systemitem> user:
116 </para>
117
118<screen role="root"><userinput>make install</userinput></screen>
119
120 </sect2>
121
122 <sect2 role="commands">
123 <title>Command Explanations</title>
124
125 <para>
126 <parameter>sed -i "s#powf64#dc_&amp;#g" internal/dcraw_common.cpp</parameter>:
127 Glibc from v2.27 onwards now provides powf64(). Rename the internal
128 version so that the package will build.
129 </para>
130
131 <!-- we seem to have lost this
132 <para>
133 <envar>CXX="g++ -Wno-narrowing"</envar>: This environment variable
134 disables a warning that prevents the package from compiling.
135 </para>-->
136
137 <para>
138 <parameter>--enable-jpeg</parameter>: This switch enables
139 support for jpeg. Remove if you don't have
140 <xref linkend="libjpeg"/> installed.
141 </para>
142
143 <para>
144 <parameter>--enable-jasper</parameter>: This switch enables
145 support for jasper. Remove if you don't have
146 <xref linkend="jasper"/> installed.
147 </para>
148
149 <para>
150 <parameter>--enable-lcms</parameter>: This switch enables
151 support for Little CMS2. Remove if you don't have
152 <xref linkend="lcms2"/> installed.
153 </para>
154
155 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
156 href="../../xincludes/static-libraries.xml"/>
157
158 </sect2>
159
160 <sect2 role="content">
161 <title>Contents</title>
162
163 <note>
164 <para>
165 All the installed programs are examples of libraw use.
166 </para>
167 </note>
168
169 <segmentedlist>
170 <segtitle>Installed Programs</segtitle>
171 <segtitle>Installed Library</segtitle>
172 <segtitle>Installed Directories</segtitle>
173
174 <seglistitem>
175 <seg>
176 4channels, dcraw_emu, dcraw_half, half_mt, mem_image,
177 multirender_test, postprocessing_benchmark, raw-identify,
178 simple_dcraw, and unprocessed_raw
179 </seg>
180 <seg>
181 libraw.so and libraw_r.so
182 </seg>
183 <seg>
184 /usr/include/libraw and
185 /usr/share/doc/libraw-&libraw-version;
186 </seg>
187 </seglistitem>
188 </segmentedlist>
189
190 <variablelist>
191 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
192 <?dbfo list-presentation="list"?>
193 <?dbhtml list-presentation="table"?>
194
195 <varlistentry id="_4channels">
196 <term><command>4channels</command></term>
197 <listitem>
198 <para>
199 generates four TIFF files from RAW data, one file per channel.
200 </para>
201 <indexterm zone="libraw _4channels">
202 <primary sortas="b-_4channels">4channels</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 <varlistentry id="dcraw_half">
208 <term><command>dcraw_half</command></term>
209 <listitem>
210 <para>
211 emulates "dcraw -h" (see <ulink
212 url="http://www.cybercom.net/~dcoffin/dcraw/dcraw.1.html">
213 DCRAW manpage</ulink>).
214 </para>
215 <indexterm zone="libraw dcraw_half">
216 <primary sortas="b-dcraw_half">dcraw_half</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 <varlistentry id="mem_image">
222 <term><command>mem_image</command></term>
223 <listitem>
224 <para>
225 emulates "dcraw [-4] [-6] [-e]" (see <ulink
226 url="http://www.cybercom.net/~dcoffin/dcraw/dcraw.1.html">
227 DCRAW manpage</ulink>).
228 </para>
229 <indexterm zone="libraw mem_image">
230 <primary sortas="b-mem_image">mem_image</primary>
231 </indexterm>
232 </listitem>
233 </varlistentry>
234
235 <varlistentry id="postprocessing_benchmark">
236 <term><command>postprocessing_benchmark</command></term>
237 <listitem>
238 <para>
239 creates eight different renderings from one source file.
240 The first and fourth one should be identical.
241 </para>
242 <indexterm zone="libraw postprocessing_benchmark">
243 <primary sortas="b-postprocessing_benchmark">
244 postprocessing_benchmark</primary>
245 </indexterm>
246 </listitem>
247 </varlistentry>
248
249 <varlistentry id="simple_dcraw">
250 <term><command>simple_dcraw</command></term>
251 <listitem>
252 <para>
253 emulates call to "dcraw [-D] [-T] [-v] [-e] [-4]" (see <ulink
254 url="http://www.cybercom.net/~dcoffin/dcraw/dcraw.1.html">
255 DCRAW manpage</ulink>).
256 </para>
257 <indexterm zone="libraw simple_dcraw">
258 <primary sortas="b-simple_dcraw">simple_dcraw</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
263 <varlistentry id="dcraw_emu">
264 <term><command>dcraw_emu</command></term>
265 <listitem>
266 <para>
267 is an almost complete dcraw emulator (see <ulink
268 url="http://www.cybercom.net/~dcoffin/dcraw/dcraw.1.html">
269 DCRAW manpage</ulink>).
270 </para>
271 <indexterm zone="libraw dcraw_emu">
272 <primary sortas="b-dcraw_emu">dcraw_emu</primary>
273 </indexterm>
274 </listitem>
275 </varlistentry>
276
277 <varlistentry id="half_mt">
278 <term><command>half_mt</command></term>
279 <listitem>
280 <para>
281 emulates call to "dcraw -h [-w] [-a] [-v]" (see <ulink
282 url="http://www.cybercom.net/~dcoffin/dcraw/dcraw.1.html">
283 DCRAW manpage</ulink>).
284 </para>
285 <indexterm zone="libraw half_mt">
286 <primary sortas="b-half_mt">half_mt</primary>
287 </indexterm>
288 </listitem>
289 </varlistentry>
290
291 <varlistentry id="multirender_test">
292 <term><command>multirender_test</command></term>
293 <listitem>
294 <para>
295 creates eight different renderings from one source file.
296 The first and fourth one should be identical.
297 </para>
298 <indexterm zone="libraw multirender_test">
299 <primary sortas="b-multirender_test">multirender_test</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
303
304 <varlistentry id="raw-identify">
305 <term><command>raw-identify</command></term>
306 <listitem>
307 <para>
308 emulates call to "dcraw -i [-v]" (see <ulink
309 url="http://www.cybercom.net/~dcoffin/dcraw/dcraw.1.html">
310 DCRAW manpage</ulink>).
311 </para>
312 <indexterm zone="libraw raw-identify">
313 <primary sortas="b-raw-identify">half_mt</primary>
314 </indexterm>
315 </listitem>
316 </varlistentry>
317
318 <varlistentry id="unprocessed_raw">
319 <term><command>unprocessed_raw</command></term>
320 <listitem>
321 <para>
322 generates unprocessed raw image: with masked pixels and without
323 black subtraction.
324 </para>
325 <indexterm zone="libraw unprocessed_raw">
326 <primary sortas="b-unprocessed_raw">unprocessed_raw</primary>
327 </indexterm>
328 </listitem>
329 </varlistentry>
330
331<!-- <varlistentry id="libraw-lib">
332 <term><filename class='libraryfile'>libraw.so</filename></term>
333 <listitem>
334 <para>
335 contains functions used for parsing, editing, and saving
336 data.
337 </para>
338 <indexterm zone="libraw libraw-lib">
339 <primary sortas="c-libraw">libraw.so</primary>
340 </indexterm>
341 </listitem>
342 </varlistentry> -->
343
344 </variablelist>
345
346 </sect2>
347
348</sect1>
Note: See TracBrowser for help on using the repository browser.