[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 |
|
---|
[ac0d66d] | 34 | &lfs113_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 | <para condition="html" role="usernotes">User Notes:
|
---|
| 90 | <ulink url="&blfs-wiki;/jasper"/></para>
|
---|
| 91 |
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 | <sect2 role="installation">
|
---|
[13fdaba] | 95 | <title>Installation of JasPer</title>
|
---|
[ed733658] | 96 |
|
---|
[5c4a616] | 97 | <note>
|
---|
| 98 | <para>
|
---|
| 99 | The tarball <emphasis>jasper-&jasper-version;.tar.gz</emphasis> will
|
---|
| 100 | extract to
|
---|
| 101 | <emphasis>jasper-version-&jasper-version;</emphasis>.
|
---|
| 102 | </para>
|
---|
| 103 | </note>
|
---|
[c4ab3292] | 104 | <!--
|
---|
[827b59db] | 105 | <para>
|
---|
| 106 | First, fix a problem that happens due to cmake-3.22:
|
---|
| 107 | </para>
|
---|
| 108 |
|
---|
| 109 | <screen><userinput remap="pre">sed -i '/GLUT_glut_LIBRARY/s/^/#/' build/cmake/modules/JasOpenGL.cmake</userinput></screen>
|
---|
[c4ab3292] | 110 | -->
|
---|
[5c4a616] | 111 | <para>
|
---|
| 112 | Install <application>JasPer</application> by running the following
|
---|
| 113 | commands:
|
---|
| 114 | </para>
|
---|
| 115 |
|
---|
[e37f388] | 116 | <screen><userinput>mkdir BUILD &&
|
---|
| 117 | cd BUILD &&
|
---|
| 118 |
|
---|
[86918e9] | 119 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 120 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 121 | -DCMAKE_SKIP_INSTALL_RPATH=YES \
|
---|
[c6afa0d] | 122 | -DJAS_ENABLE_DOC=NO \
|
---|
[14f0e13e] | 123 | -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/jasper-&jasper-version; \
|
---|
[e37f388] | 124 | .. &&
|
---|
[ed733658] | 125 | make</userinput></screen>
|
---|
| 126 |
|
---|
[09f0998] | 127 | <para>
|
---|
| 128 | To test the results, issue: <command>make test</command>.
|
---|
| 129 | </para>
|
---|
[ed733658] | 130 |
|
---|
[09f0998] | 131 | <para>
|
---|
| 132 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 133 | </para>
|
---|
[ed733658] | 134 |
|
---|
| 135 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 136 |
|
---|
| 137 | </sect2>
|
---|
| 138 |
|
---|
| 139 | <sect2 role="commands">
|
---|
| 140 | <title>Command Explanations</title>
|
---|
| 141 |
|
---|
[aa41434] | 142 | <para>
|
---|
| 143 | <parameter>-DCMAKE_SKIP_INSTALL_RPATH=YES</parameter>: This option
|
---|
| 144 | removes embedded library search paths.
|
---|
| 145 | </para>
|
---|
[e37f388] | 146 |
|
---|
[aa41434] | 147 | <para>
|
---|
| 148 | <parameter>-DJAS_ENABLE_DOC=NO</parameter>: This option disables
|
---|
| 149 | rebuilding the pdf documentation if <xref linkend="texlive"/>
|
---|
| 150 | is installed.
|
---|
| 151 | </para>
|
---|
[c6afa0d] | 152 |
|
---|
[ed733658] | 153 | </sect2>
|
---|
| 154 |
|
---|
| 155 | <sect2 role="content">
|
---|
| 156 | <title>Contents</title>
|
---|
| 157 |
|
---|
| 158 | <segmentedlist>
|
---|
| 159 | <segtitle>Installed Programs</segtitle>
|
---|
| 160 | <segtitle>Installed Library</segtitle>
|
---|
| 161 | <segtitle>Installed Directories</segtitle>
|
---|
| 162 |
|
---|
| 163 | <seglistitem>
|
---|
[e37f388] | 164 | <seg>imgcmp, imginfo, jasper, and jiv</seg>
|
---|
[a9880a8b] | 165 | <seg>libjasper.so</seg>
|
---|
[ed733658] | 166 | <seg>/usr/include/jasper and /usr/share/doc/jasper-&jasper-version;</seg>
|
---|
| 167 | </seglistitem>
|
---|
| 168 | </segmentedlist>
|
---|
| 169 |
|
---|
| 170 | <variablelist>
|
---|
| 171 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 172 | <?dbfo list-presentation="list"?>
|
---|
| 173 | <?dbhtml list-presentation="table"?>
|
---|
| 174 |
|
---|
| 175 | <varlistentry id="imgcmp">
|
---|
| 176 | <term><command>imgcmp</command></term>
|
---|
| 177 | <listitem>
|
---|
[09f0998] | 178 | <para>
|
---|
[4c24eb0a] | 179 | compares two images of the same geometry
|
---|
[09f0998] | 180 | </para>
|
---|
[ed733658] | 181 | <indexterm zone="jasper imgcmp">
|
---|
| 182 | <primary sortas="b-imgcmp">imgcmp</primary>
|
---|
| 183 | </indexterm>
|
---|
| 184 | </listitem>
|
---|
| 185 | </varlistentry>
|
---|
| 186 |
|
---|
| 187 | <varlistentry id="imginfo">
|
---|
| 188 | <term><command>imginfo</command></term>
|
---|
| 189 | <listitem>
|
---|
[09f0998] | 190 | <para>
|
---|
[4c24eb0a] | 191 | displays information about an image
|
---|
[09f0998] | 192 | </para>
|
---|
[ed733658] | 193 | <indexterm zone="jasper imginfo">
|
---|
| 194 | <primary sortas="b-imginfo">imginfo</primary>
|
---|
| 195 | </indexterm>
|
---|
| 196 | </listitem>
|
---|
| 197 | </varlistentry>
|
---|
| 198 |
|
---|
| 199 | <varlistentry id="jasper-command">
|
---|
| 200 | <term><command>jasper</command></term>
|
---|
| 201 | <listitem>
|
---|
[09f0998] | 202 | <para>
|
---|
| 203 | converts images between formats (BMP, JPS, JPC, JPG, PGX, PNM, MIF,
|
---|
[4c24eb0a] | 204 | and RAS)
|
---|
[09f0998] | 205 | </para>
|
---|
[ed733658] | 206 | <indexterm zone="jasper jasper">
|
---|
| 207 | <primary sortas="b-jasper">jasper</primary>
|
---|
| 208 | </indexterm>
|
---|
| 209 | </listitem>
|
---|
| 210 | </varlistentry>
|
---|
| 211 |
|
---|
| 212 | <varlistentry id="jiv">
|
---|
| 213 | <term><command>jiv</command></term>
|
---|
| 214 | <listitem>
|
---|
[09f0998] | 215 | <para>
|
---|
[4c24eb0a] | 216 | displays images
|
---|
[09f0998] | 217 | </para>
|
---|
[ed733658] | 218 | <indexterm zone="jasper jiv">
|
---|
| 219 | <primary sortas="b-jiv">jiv</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 | </listitem>
|
---|
| 222 | </varlistentry>
|
---|
| 223 |
|
---|
| 224 | <varlistentry id="jasper-lib">
|
---|
[4c24eb0a] | 225 | <term><filename class="libraryfile">libjasper.so</filename></term>
|
---|
[ed733658] | 226 | <listitem>
|
---|
[09f0998] | 227 | <para>
|
---|
| 228 | is a library used by programs for reading and writing
|
---|
[4c24eb0a] | 229 | JPEG2000 format files
|
---|
[09f0998] | 230 | </para>
|
---|
[ed733658] | 231 | <indexterm zone="jasper jasper-lib">
|
---|
[a9880a8b] | 232 | <primary sortas="c-libjasper">libjasper.so</primary>
|
---|
[ed733658] | 233 | </indexterm>
|
---|
| 234 | </listitem>
|
---|
| 235 | </varlistentry>
|
---|
| 236 |
|
---|
| 237 | </variablelist>
|
---|
| 238 |
|
---|
| 239 | </sect2>
|
---|
| 240 |
|
---|
| 241 | </sect1>
|
---|