[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[ed733658] | 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 " ">
|
---|
[90edaa1] | 9 | <!ENTITY jasper-md5sum "aa4df693b90223fe6848b34cf1208624">
|
---|
[77a8b67] | 10 | <!ENTITY jasper-size "1.9 MB">
|
---|
[f5b2c6c] | 11 | <!ENTITY jasper-buildsize "9.4 MB (with tests)">
|
---|
| 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 |
|
---|
[e8b3f50] | 34 | &lfs121_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 |
|
---|
[cbfa153] | 116 | cmake -D CMAKE_INSTALL_PREFIX=/usr \
|
---|
| 117 | -D CMAKE_BUILD_TYPE=Release \
|
---|
| 118 | -D CMAKE_SKIP_INSTALL_RPATH=ON \
|
---|
| 119 | -D JAS_ENABLE_DOC=NO \
|
---|
| 120 | -D ALLOW_IN_SOURCE_BUILD=YES \
|
---|
| 121 | -D CMAKE_INSTALL_DOCDIR=/usr/share/doc/jasper-&jasper-version; \
|
---|
[e37f388] | 122 | .. &&
|
---|
[ed733658] | 123 | make</userinput></screen>
|
---|
| 124 |
|
---|
[09f0998] | 125 | <para>
|
---|
| 126 | To test the results, issue: <command>make test</command>.
|
---|
| 127 | </para>
|
---|
[ed733658] | 128 |
|
---|
[09f0998] | 129 | <para>
|
---|
| 130 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 131 | </para>
|
---|
[ed733658] | 132 |
|
---|
| 133 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 134 |
|
---|
| 135 | </sect2>
|
---|
| 136 |
|
---|
| 137 | <sect2 role="commands">
|
---|
| 138 | <title>Command Explanations</title>
|
---|
| 139 |
|
---|
[846bcc9] | 140 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 141 | href="../../xincludes/cmake-skip-install-rpath.xml"/>
|
---|
[e37f388] | 142 |
|
---|
[aa41434] | 143 | <para>
|
---|
[cbfa153] | 144 | <parameter>-D JAS_ENABLE_DOC=NO</parameter>: This option disables
|
---|
[aa41434] | 145 | rebuilding the pdf documentation if <xref linkend="texlive"/>
|
---|
| 146 | is installed.
|
---|
| 147 | </para>
|
---|
[c6afa0d] | 148 |
|
---|
[1fe47db] | 149 | <para>
|
---|
[cbfa153] | 150 | <parameter>-D ALLOW_IN_SOURCE_BUILD=YES</parameter>: This switch allows
|
---|
[1fe47db] | 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 |
|
---|
[ed733658] | 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>
|
---|
[e37f388] | 167 | <seg>imgcmp, imginfo, jasper, and jiv</seg>
|
---|
[a9880a8b] | 168 | <seg>libjasper.so</seg>
|
---|
[ed733658] | 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>
|
---|
[09f0998] | 181 | <para>
|
---|
[4c24eb0a] | 182 | compares two images of the same geometry
|
---|
[09f0998] | 183 | </para>
|
---|
[ed733658] | 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>
|
---|
[09f0998] | 193 | <para>
|
---|
[4c24eb0a] | 194 | displays information about an image
|
---|
[09f0998] | 195 | </para>
|
---|
[ed733658] | 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>
|
---|
[09f0998] | 205 | <para>
|
---|
| 206 | converts images between formats (BMP, JPS, JPC, JPG, PGX, PNM, MIF,
|
---|
[4c24eb0a] | 207 | and RAS)
|
---|
[09f0998] | 208 | </para>
|
---|
[ed733658] | 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>
|
---|
[09f0998] | 218 | <para>
|
---|
[4c24eb0a] | 219 | displays images
|
---|
[09f0998] | 220 | </para>
|
---|
[ed733658] | 221 | <indexterm zone="jasper jiv">
|
---|
| 222 | <primary sortas="b-jiv">jiv</primary>
|
---|
| 223 | </indexterm>
|
---|
| 224 | </listitem>
|
---|
| 225 | </varlistentry>
|
---|
| 226 |
|
---|
| 227 | <varlistentry id="jasper-lib">
|
---|
[4c24eb0a] | 228 | <term><filename class="libraryfile">libjasper.so</filename></term>
|
---|
[ed733658] | 229 | <listitem>
|
---|
[09f0998] | 230 | <para>
|
---|
| 231 | is a library used by programs for reading and writing
|
---|
[4c24eb0a] | 232 | JPEG2000 format files
|
---|
[09f0998] | 233 | </para>
|
---|
[ed733658] | 234 | <indexterm zone="jasper jasper-lib">
|
---|
[a9880a8b] | 235 | <primary sortas="c-libjasper">libjasper.so</primary>
|
---|
[ed733658] | 236 | </indexterm>
|
---|
| 237 | </listitem>
|
---|
| 238 | </varlistentry>
|
---|
| 239 |
|
---|
| 240 | </variablelist>
|
---|
| 241 |
|
---|
| 242 | </sect2>
|
---|
| 243 |
|
---|
| 244 | </sect1>
|
---|