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 jasper-download-http "https://github.com/jasper-software/jasper/archive/version-&jasper-version;/jasper-&jasper-version;.tar.gz">
|
---|
8 | <!ENTITY jasper-download-ftp " ">
|
---|
9 | <!ENTITY jasper-md5sum "1578be3c1e329fdaae35d98dd804ed95">
|
---|
10 | <!ENTITY jasper-size "1.9 MB">
|
---|
11 | <!ENTITY jasper-buildsize "9.5 MB (with tests)">
|
---|
12 | <!ENTITY jasper-time "0.3 SBU (with tests)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="jasper" xreflabel="JasPer-&jasper-version;">
|
---|
16 | <?dbhtml filename="jasper.html"?>
|
---|
17 |
|
---|
18 |
|
---|
19 | <title>JasPer-&jasper-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="jasper">
|
---|
22 | <primary sortas="a-jasper-&jasper-version;">JasPer</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect2 role="package">
|
---|
26 | <title>Introduction to JasPer</title>
|
---|
27 |
|
---|
28 | <para>
|
---|
29 | The <application>JasPer</application> Project is an open-source
|
---|
30 | initiative to provide a free software-based reference implementation
|
---|
31 | of the JPEG-2000 codec.
|
---|
32 | </para>
|
---|
33 |
|
---|
34 | &lfs120_checked;
|
---|
35 |
|
---|
36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
37 | <itemizedlist spacing="compact">
|
---|
38 | <listitem>
|
---|
39 | <para>
|
---|
40 | Download (HTTP): <ulink url="&jasper-download-http;"/>
|
---|
41 | </para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (FTP): <ulink url="&jasper-download-ftp;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download MD5 sum: &jasper-md5sum;
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download size: &jasper-size;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Estimated disk space required: &jasper-buildsize;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated build time: &jasper-time;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | </itemizedlist>
|
---|
69 |
|
---|
70 | <bridgehead renderas="sect3">JasPer Dependencies</bridgehead>
|
---|
71 |
|
---|
72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
73 | <para role="required">
|
---|
74 | <xref linkend="cmake"/>
|
---|
75 | </para>
|
---|
76 |
|
---|
77 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
78 | <para role="recommended">
|
---|
79 | <xref linkend="libjpeg"/>
|
---|
80 | </para>
|
---|
81 |
|
---|
82 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
83 | <para role="optional">
|
---|
84 | <xref linkend="freeglut"/> (required for <command>jiv</command>),
|
---|
85 | <xref linkend="doxygen"/> (needed for generating html documentation), and
|
---|
86 | <xref linkend="texlive"/> (needed to regenerate the pdf documentation)
|
---|
87 | </para>
|
---|
88 |
|
---|
89 | </sect2>
|
---|
90 |
|
---|
91 | <sect2 role="installation">
|
---|
92 | <title>Installation of JasPer</title>
|
---|
93 |
|
---|
94 | <note>
|
---|
95 | <para>
|
---|
96 | The tarball <emphasis>jasper-&jasper-version;.tar.gz</emphasis> will
|
---|
97 | extract to
|
---|
98 | <emphasis>jasper-version-&jasper-version;</emphasis>.
|
---|
99 | </para>
|
---|
100 | </note>
|
---|
101 | <!--
|
---|
102 | <para>
|
---|
103 | First, fix a problem that happens due to cmake-3.22:
|
---|
104 | </para>
|
---|
105 |
|
---|
106 | <screen><userinput remap="pre">sed -i '/GLUT_glut_LIBRARY/s/^/#/' build/cmake/modules/JasOpenGL.cmake</userinput></screen>
|
---|
107 | -->
|
---|
108 | <para>
|
---|
109 | Install <application>JasPer</application> by running the following
|
---|
110 | commands:
|
---|
111 | </para>
|
---|
112 |
|
---|
113 | <screen><userinput>mkdir BUILD &&
|
---|
114 | cd BUILD &&
|
---|
115 |
|
---|
116 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
117 | -DCMAKE_BUILD_TYPE=Release \
|
---|
118 | -DCMAKE_SKIP_INSTALL_RPATH=YES \
|
---|
119 | -DJAS_ENABLE_DOC=NO \
|
---|
120 | -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/jasper-&jasper-version; \
|
---|
121 | .. &&
|
---|
122 | make</userinput></screen>
|
---|
123 |
|
---|
124 | <para>
|
---|
125 | To test the results, issue: <command>make test</command>.
|
---|
126 | </para>
|
---|
127 |
|
---|
128 | <para>
|
---|
129 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
130 | </para>
|
---|
131 |
|
---|
132 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
133 |
|
---|
134 | </sect2>
|
---|
135 |
|
---|
136 | <sect2 role="commands">
|
---|
137 | <title>Command Explanations</title>
|
---|
138 |
|
---|
139 | <para>
|
---|
140 | <parameter>-DCMAKE_SKIP_INSTALL_RPATH=YES</parameter>: This option
|
---|
141 | removes embedded library search paths.
|
---|
142 | </para>
|
---|
143 |
|
---|
144 | <para>
|
---|
145 | <parameter>-DJAS_ENABLE_DOC=NO</parameter>: This option disables
|
---|
146 | rebuilding the pdf documentation if <xref linkend="texlive"/>
|
---|
147 | is installed.
|
---|
148 | </para>
|
---|
149 |
|
---|
150 | </sect2>
|
---|
151 |
|
---|
152 | <sect2 role="content">
|
---|
153 | <title>Contents</title>
|
---|
154 |
|
---|
155 | <segmentedlist>
|
---|
156 | <segtitle>Installed Programs</segtitle>
|
---|
157 | <segtitle>Installed Library</segtitle>
|
---|
158 | <segtitle>Installed Directories</segtitle>
|
---|
159 |
|
---|
160 | <seglistitem>
|
---|
161 | <seg>imgcmp, imginfo, jasper, and jiv</seg>
|
---|
162 | <seg>libjasper.so</seg>
|
---|
163 | <seg>/usr/include/jasper and /usr/share/doc/jasper-&jasper-version;</seg>
|
---|
164 | </seglistitem>
|
---|
165 | </segmentedlist>
|
---|
166 |
|
---|
167 | <variablelist>
|
---|
168 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
169 | <?dbfo list-presentation="list"?>
|
---|
170 | <?dbhtml list-presentation="table"?>
|
---|
171 |
|
---|
172 | <varlistentry id="imgcmp">
|
---|
173 | <term><command>imgcmp</command></term>
|
---|
174 | <listitem>
|
---|
175 | <para>
|
---|
176 | compares two images of the same geometry
|
---|
177 | </para>
|
---|
178 | <indexterm zone="jasper imgcmp">
|
---|
179 | <primary sortas="b-imgcmp">imgcmp</primary>
|
---|
180 | </indexterm>
|
---|
181 | </listitem>
|
---|
182 | </varlistentry>
|
---|
183 |
|
---|
184 | <varlistentry id="imginfo">
|
---|
185 | <term><command>imginfo</command></term>
|
---|
186 | <listitem>
|
---|
187 | <para>
|
---|
188 | displays information about an image
|
---|
189 | </para>
|
---|
190 | <indexterm zone="jasper imginfo">
|
---|
191 | <primary sortas="b-imginfo">imginfo</primary>
|
---|
192 | </indexterm>
|
---|
193 | </listitem>
|
---|
194 | </varlistentry>
|
---|
195 |
|
---|
196 | <varlistentry id="jasper-command">
|
---|
197 | <term><command>jasper</command></term>
|
---|
198 | <listitem>
|
---|
199 | <para>
|
---|
200 | converts images between formats (BMP, JPS, JPC, JPG, PGX, PNM, MIF,
|
---|
201 | and RAS)
|
---|
202 | </para>
|
---|
203 | <indexterm zone="jasper jasper">
|
---|
204 | <primary sortas="b-jasper">jasper</primary>
|
---|
205 | </indexterm>
|
---|
206 | </listitem>
|
---|
207 | </varlistentry>
|
---|
208 |
|
---|
209 | <varlistentry id="jiv">
|
---|
210 | <term><command>jiv</command></term>
|
---|
211 | <listitem>
|
---|
212 | <para>
|
---|
213 | displays images
|
---|
214 | </para>
|
---|
215 | <indexterm zone="jasper jiv">
|
---|
216 | <primary sortas="b-jiv">jiv</primary>
|
---|
217 | </indexterm>
|
---|
218 | </listitem>
|
---|
219 | </varlistentry>
|
---|
220 |
|
---|
221 | <varlistentry id="jasper-lib">
|
---|
222 | <term><filename class="libraryfile">libjasper.so</filename></term>
|
---|
223 | <listitem>
|
---|
224 | <para>
|
---|
225 | is a library used by programs for reading and writing
|
---|
226 | JPEG2000 format files
|
---|
227 | </para>
|
---|
228 | <indexterm zone="jasper jasper-lib">
|
---|
229 | <primary sortas="c-libjasper">libjasper.so</primary>
|
---|
230 | </indexterm>
|
---|
231 | </listitem>
|
---|
232 | </varlistentry>
|
---|
233 |
|
---|
234 | </variablelist>
|
---|
235 |
|
---|
236 | </sect2>
|
---|
237 |
|
---|
238 | </sect1>
|
---|