[ed733658] | 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 |
|
---|
[1f355410] | 7 | <!ENTITY jasper-download-http "https://github.com/jasper-software/jasper/archive/version-&jasper-version;/jasper-&jasper-version;.tar.gz">
|
---|
[13fdaba] | 8 | <!ENTITY jasper-download-ftp " ">
|
---|
[b8e40524] | 9 | <!ENTITY jasper-md5sum "1578be3c1e329fdaae35d98dd804ed95">
|
---|
[77a8b67] | 10 | <!ENTITY jasper-size "1.9 MB">
|
---|
[406a2743] | 11 | <!ENTITY jasper-buildsize "9.5 MB (with tests)">
|
---|
[c4ab3292] | 12 | <!ENTITY jasper-time "0.3 SBU (with tests)">
|
---|
[ed733658] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="jasper" xreflabel="JasPer-&jasper-version;">
|
---|
| 16 | <?dbhtml filename="jasper.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
[880c568] | 19 | <title>JasPer-&jasper-version;</title>
|
---|
[ed733658] | 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 |
|
---|
[09f0998] | 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>
|
---|
[ed733658] | 33 |
|
---|
[30c1c72] | 34 | &lfs120_checked;
|
---|
[ed733658] | 35 |
|
---|
| 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
[09f0998] | 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&jasper-download-http;"/>
|
---|
| 41 | </para>
|
---|
[ed733658] | 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
[09f0998] | 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&jasper-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
[ed733658] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[09f0998] | 49 | <para>
|
---|
| 50 | Download MD5 sum: &jasper-md5sum;
|
---|
| 51 | </para>
|
---|
[ed733658] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[09f0998] | 54 | <para>
|
---|
| 55 | Download size: &jasper-size;
|
---|
| 56 | </para>
|
---|
[ed733658] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[09f0998] | 59 | <para>
|
---|
| 60 | Estimated disk space required: &jasper-buildsize;
|
---|
| 61 | </para>
|
---|
[ed733658] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[09f0998] | 64 | <para>
|
---|
| 65 | Estimated build time: &jasper-time;
|
---|
| 66 | </para>
|
---|
[ed733658] | 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
[13fdaba] | 70 | <bridgehead renderas="sect3">JasPer Dependencies</bridgehead>
|
---|
[ed733658] | 71 |
|
---|
[25e7f9b7] | 72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 73 | <para role="required">
|
---|
| 74 | <xref linkend="cmake"/>
|
---|
| 75 | </para>
|
---|
| 76 |
|
---|
[ed733658] | 77 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[f18a6f9] | 78 | <para role="recommended">
|
---|
[f11b659] | 79 | <xref linkend="libjpeg"/>
|
---|
| 80 | </para>
|
---|
| 81 |
|
---|
| 82 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 83 | <para role="optional">
|
---|
[8558044] | 84 | <xref linkend="freeglut"/> (required for <command>jiv</command>),
|
---|
[e37f388] | 85 | <xref linkend="doxygen"/> (needed for generating html documentation), and
|
---|
[b9c353b] | 86 | <xref linkend="texlive"/> (needed to regenerate the pdf documentation)
|
---|
[f11b659] | 87 | </para>
|
---|
[ed733658] | 88 |
|
---|
| 89 | </sect2>
|
---|
| 90 |
|
---|
| 91 | <sect2 role="installation">
|
---|
[13fdaba] | 92 | <title>Installation of JasPer</title>
|
---|
[ed733658] | 93 |
|
---|
[5c4a616] | 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>
|
---|
[c4ab3292] | 101 | <!--
|
---|
[827b59db] | 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>
|
---|
[c4ab3292] | 107 | -->
|
---|
[5c4a616] | 108 | <para>
|
---|
| 109 | Install <application>JasPer</application> by running the following
|
---|
| 110 | commands:
|
---|
| 111 | </para>
|
---|
| 112 |
|
---|
[e37f388] | 113 | <screen><userinput>mkdir BUILD &&
|
---|
| 114 | cd BUILD &&
|
---|
| 115 |
|
---|
[86918e9] | 116 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 117 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 118 | -DCMAKE_SKIP_INSTALL_RPATH=YES \
|
---|
[c6afa0d] | 119 | -DJAS_ENABLE_DOC=NO \
|
---|
[14f0e13e] | 120 | -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/jasper-&jasper-version; \
|
---|
[e37f388] | 121 | .. &&
|
---|
[ed733658] | 122 | make</userinput></screen>
|
---|
| 123 |
|
---|
[09f0998] | 124 | <para>
|
---|
| 125 | To test the results, issue: <command>make test</command>.
|
---|
| 126 | </para>
|
---|
[ed733658] | 127 |
|
---|
[09f0998] | 128 | <para>
|
---|
| 129 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 130 | </para>
|
---|
[ed733658] | 131 |
|
---|
| 132 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 133 |
|
---|
| 134 | </sect2>
|
---|
| 135 |
|
---|
| 136 | <sect2 role="commands">
|
---|
| 137 | <title>Command Explanations</title>
|
---|
| 138 |
|
---|
[aa41434] | 139 | <para>
|
---|
| 140 | <parameter>-DCMAKE_SKIP_INSTALL_RPATH=YES</parameter>: This option
|
---|
| 141 | removes embedded library search paths.
|
---|
| 142 | </para>
|
---|
[e37f388] | 143 |
|
---|
[aa41434] | 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>
|
---|
[c6afa0d] | 149 |
|
---|
[ed733658] | 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>
|
---|
[e37f388] | 161 | <seg>imgcmp, imginfo, jasper, and jiv</seg>
|
---|
[a9880a8b] | 162 | <seg>libjasper.so</seg>
|
---|
[ed733658] | 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>
|
---|
[09f0998] | 175 | <para>
|
---|
[4c24eb0a] | 176 | compares two images of the same geometry
|
---|
[09f0998] | 177 | </para>
|
---|
[ed733658] | 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>
|
---|
[09f0998] | 187 | <para>
|
---|
[4c24eb0a] | 188 | displays information about an image
|
---|
[09f0998] | 189 | </para>
|
---|
[ed733658] | 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>
|
---|
[09f0998] | 199 | <para>
|
---|
| 200 | converts images between formats (BMP, JPS, JPC, JPG, PGX, PNM, MIF,
|
---|
[4c24eb0a] | 201 | and RAS)
|
---|
[09f0998] | 202 | </para>
|
---|
[ed733658] | 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>
|
---|
[09f0998] | 212 | <para>
|
---|
[4c24eb0a] | 213 | displays images
|
---|
[09f0998] | 214 | </para>
|
---|
[ed733658] | 215 | <indexterm zone="jasper jiv">
|
---|
| 216 | <primary sortas="b-jiv">jiv</primary>
|
---|
| 217 | </indexterm>
|
---|
| 218 | </listitem>
|
---|
| 219 | </varlistentry>
|
---|
| 220 |
|
---|
| 221 | <varlistentry id="jasper-lib">
|
---|
[4c24eb0a] | 222 | <term><filename class="libraryfile">libjasper.so</filename></term>
|
---|
[ed733658] | 223 | <listitem>
|
---|
[09f0998] | 224 | <para>
|
---|
| 225 | is a library used by programs for reading and writing
|
---|
[4c24eb0a] | 226 | JPEG2000 format files
|
---|
[09f0998] | 227 | </para>
|
---|
[ed733658] | 228 | <indexterm zone="jasper jasper-lib">
|
---|
[a9880a8b] | 229 | <primary sortas="c-libjasper">libjasper.so</primary>
|
---|
[ed733658] | 230 | </indexterm>
|
---|
| 231 | </listitem>
|
---|
| 232 | </varlistentry>
|
---|
| 233 |
|
---|
| 234 | </variablelist>
|
---|
| 235 |
|
---|
| 236 | </sect2>
|
---|
| 237 |
|
---|
| 238 | </sect1>
|
---|