source: general/graphlib/jasper.xml@ 846bcc9

trunk
Last change on this file since 846bcc9 was 846bcc9, checked in by Xi Ruoyao <xry111@…>, 3 weeks ago

Add xinclude for -DCMAKE_SKIP_INSTALL_RPATH explanation and use it

Always use "ON" for this boolean value.

Why does cmake allow too many boolean values (ON/OFF, TRUE/FALSE,
YES/NO) anyway?!

  • Property mode set to 100644
File size: 7.0 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 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 "aa4df693b90223fe6848b34cf1208624">
10 <!ENTITY jasper-size "1.9 MB">
11 <!ENTITY jasper-buildsize "9.4 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 &lfs121_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 &amp;&amp;
114cd BUILD &amp;&amp;
115
116cmake -DCMAKE_INSTALL_PREFIX=/usr \
117 -DCMAKE_BUILD_TYPE=Release \
118 -DCMAKE_SKIP_INSTALL_RPATH=ON \
119 -DJAS_ENABLE_DOC=NO \
120 -DALLOW_IN_SOURCE_BUILD=YES \
121 -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/jasper-&jasper-version; \
122 .. &amp;&amp;
123make</userinput></screen>
124
125 <para>
126 To test the results, issue: <command>make test</command>.
127 </para>
128
129 <para>
130 Now, as the <systemitem class="username">root</systemitem> user:
131 </para>
132
133<screen role="root"><userinput>make install</userinput></screen>
134
135 </sect2>
136
137 <sect2 role="commands">
138 <title>Command Explanations</title>
139
140 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
141 href="../../xincludes/cmake-skip-install-rpath.xml"/>
142
143 <para>
144 <parameter>-DJAS_ENABLE_DOC=NO</parameter>: This option disables
145 rebuilding the pdf documentation if <xref linkend="texlive"/>
146 is installed.
147 </para>
148
149 <para>
150 <parameter>-DALLOW_IN_SOURCE_BUILD=YES</parameter>: This switch allows
151 building from within the source tree. In our case, this is needed to
152 allow us to build inside of the BUILD directory instead of needing to
153 create another directory outside of the source tree.
154 </para>
155
156 </sect2>
157
158 <sect2 role="content">
159 <title>Contents</title>
160
161 <segmentedlist>
162 <segtitle>Installed Programs</segtitle>
163 <segtitle>Installed Library</segtitle>
164 <segtitle>Installed Directories</segtitle>
165
166 <seglistitem>
167 <seg>imgcmp, imginfo, jasper, and jiv</seg>
168 <seg>libjasper.so</seg>
169 <seg>/usr/include/jasper and /usr/share/doc/jasper-&jasper-version;</seg>
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="imgcmp">
179 <term><command>imgcmp</command></term>
180 <listitem>
181 <para>
182 compares two images of the same geometry
183 </para>
184 <indexterm zone="jasper imgcmp">
185 <primary sortas="b-imgcmp">imgcmp</primary>
186 </indexterm>
187 </listitem>
188 </varlistentry>
189
190 <varlistentry id="imginfo">
191 <term><command>imginfo</command></term>
192 <listitem>
193 <para>
194 displays information about an image
195 </para>
196 <indexterm zone="jasper imginfo">
197 <primary sortas="b-imginfo">imginfo</primary>
198 </indexterm>
199 </listitem>
200 </varlistentry>
201
202 <varlistentry id="jasper-command">
203 <term><command>jasper</command></term>
204 <listitem>
205 <para>
206 converts images between formats (BMP, JPS, JPC, JPG, PGX, PNM, MIF,
207 and RAS)
208 </para>
209 <indexterm zone="jasper jasper">
210 <primary sortas="b-jasper">jasper</primary>
211 </indexterm>
212 </listitem>
213 </varlistentry>
214
215 <varlistentry id="jiv">
216 <term><command>jiv</command></term>
217 <listitem>
218 <para>
219 displays images
220 </para>
221 <indexterm zone="jasper jiv">
222 <primary sortas="b-jiv">jiv</primary>
223 </indexterm>
224 </listitem>
225 </varlistentry>
226
227 <varlistentry id="jasper-lib">
228 <term><filename class="libraryfile">libjasper.so</filename></term>
229 <listitem>
230 <para>
231 is a library used by programs for reading and writing
232 JPEG2000 format files
233 </para>
234 <indexterm zone="jasper jasper-lib">
235 <primary sortas="c-libjasper">libjasper.so</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 </variablelist>
241
242 </sect2>
243
244</sect1>
Note: See TracBrowser for help on using the repository browser.