[bd81e201] | 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 |
|
---|
[c9d79c2] | 7 | <!ENTITY openjpeg2-download-http "https://github.com/uclouvain/openjpeg/archive/v&openjpeg2-version;/openjpeg-&openjpeg2-version;.tar.gz">
|
---|
[bd81e201] | 8 | <!ENTITY openjpeg2-download-ftp " ">
|
---|
[06333e6] | 9 | <!ENTITY openjpeg2-md5sum "5cbb822a1203dd75b85639da4f4ecaab">
|
---|
| 10 | <!ENTITY openjpeg2-size "1.8 MB">
|
---|
| 11 | <!ENTITY openjpeg2-buildsize "13 MB">
|
---|
[b7a6574b] | 12 | <!ENTITY openjpeg2-time "0.2 SBU">
|
---|
[bd81e201] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="openjpeg2" xreflabel="OpenJPEG-&openjpeg2-version;">
|
---|
| 16 | <?dbhtml filename="openjpeg2.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <date>$Date$</date>
|
---|
| 20 | </sect1info>
|
---|
| 21 |
|
---|
| 22 | <title>OpenJPEG-&openjpeg2-version;</title>
|
---|
| 23 |
|
---|
| 24 | <indexterm zone="openjpeg2">
|
---|
| 25 | <primary sortas="a-openjpeg2">OpenJPEG</primary>
|
---|
| 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
| 29 | <title>Introduction to OpenJPEG</title>
|
---|
| 30 |
|
---|
[a06368b] | 31 | <para>
|
---|
| 32 | <application>OpenJPEG</application> is an open-source implementation of
|
---|
| 33 | the JPEG-2000 standard. OpenJPEG fully respects the JPEG-2000
|
---|
| 34 | specifications and can compress/decompress lossless 16-bit images.
|
---|
| 35 | </para>
|
---|
[bd81e201] | 36 |
|
---|
[98fd8b9] | 37 | &lfs111_checked;
|
---|
[bd81e201] | 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
[09f0998] | 42 | <para>
|
---|
| 43 | Download (HTTP): <ulink url="&openjpeg2-download-http;"/>
|
---|
| 44 | </para>
|
---|
[bd81e201] | 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
[09f0998] | 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&openjpeg2-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
[bd81e201] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[09f0998] | 52 | <para>
|
---|
| 53 | Download MD5 sum: &openjpeg2-md5sum;
|
---|
| 54 | </para>
|
---|
[bd81e201] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[09f0998] | 57 | <para>
|
---|
| 58 | Download size: &openjpeg2-size;
|
---|
| 59 | </para>
|
---|
[bd81e201] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[09f0998] | 62 | <para>
|
---|
| 63 | Estimated disk space required: &openjpeg2-buildsize;
|
---|
| 64 | </para>
|
---|
[bd81e201] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[09f0998] | 67 | <para>
|
---|
| 68 | Estimated build time: &openjpeg2-time;
|
---|
| 69 | </para>
|
---|
[bd81e201] | 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect3">OpenJPEG Dependencies</bridgehead>
|
---|
| 74 |
|
---|
| 75 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 76 | <para role="required">
|
---|
| 77 | <xref linkend="cmake"/>
|
---|
| 78 | </para>
|
---|
| 79 |
|
---|
| 80 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 81 | <para role="optional">
|
---|
[09f0998] | 82 | <xref linkend="lcms2"/>,
|
---|
| 83 | <xref linkend="libpng"/>,
|
---|
| 84 | <xref linkend="libtiff"/>, and
|
---|
| 85 | <xref linkend="doxygen"/> (to build the API documentation)
|
---|
[bd81e201] | 86 | </para>
|
---|
| 87 |
|
---|
| 88 | <para condition="html" role="usernotes">User Notes:
|
---|
| 89 | <ulink url="&blfs-wiki;/openjpeg2"/></para>
|
---|
| 90 |
|
---|
| 91 | </sect2>
|
---|
| 92 |
|
---|
| 93 | <sect2 role="installation">
|
---|
| 94 | <title>Installation of OpenJPEG</title>
|
---|
| 95 |
|
---|
[73bd2c4] | 96 | <para>
|
---|
| 97 | Install <application>OpenJPEG</application> by running the
|
---|
| 98 | following commands:
|
---|
| 99 | </para>
|
---|
| 100 |
|
---|
[2263933] | 101 | <screen><userinput>mkdir -v build &&
|
---|
[a06368b] | 102 | cd build &&
|
---|
[059a1a5c] | 103 |
|
---|
[5b23c1e] | 104 | cmake -DCMAKE_BUILD_TYPE=Release \
|
---|
| 105 | -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 106 | -DBUILD_STATIC_LIBS=OFF .. &&
|
---|
[bd81e201] | 107 | make</userinput></screen>
|
---|
| 108 |
|
---|
[a06368b] | 109 | <!-- Thread discussing the tests, fixing instructions,
|
---|
| 110 | but obtaining poor results:
|
---|
| 111 | http://lists.linuxfromscratch.org/pipermail/blfs-dev/2015-April/030035.html
|
---|
[06333e6] | 112 |
|
---|
| 113 | There does not seem to be a test suite at all. 2022-05-15 (openjpeg-2.5.0)
|
---|
[a06368b] | 114 | -->
|
---|
[09f0998] | 115 | <para>
|
---|
[06333e6] | 116 | This package does not come with a test suite.
|
---|
[09f0998] | 117 | </para>
|
---|
[bd81e201] | 118 |
|
---|
[09f0998] | 119 | <para>
|
---|
| 120 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 121 | </para>
|
---|
[bd81e201] | 122 |
|
---|
| 123 | <screen role="root"><userinput>make install &&
|
---|
[059a1a5c] | 124 |
|
---|
[a06368b] | 125 | pushd ../doc &&
|
---|
[92d2b83] | 126 | for man in man/man?/* ; do
|
---|
| 127 | install -v -D -m 644 $man /usr/share/$man
|
---|
[8558044] | 128 | done
|
---|
[a06368b] | 129 | popd</userinput></screen>
|
---|
[bd81e201] | 130 |
|
---|
| 131 | </sect2>
|
---|
[a06368b] | 132 | <!--
|
---|
[bd81e201] | 133 | <sect2 role="commands">
|
---|
| 134 | <title>Command Explanations</title>
|
---|
| 135 |
|
---|
[09f0998] | 136 | <para>
|
---|
| 137 | <option>-DBUILD_TESTING=ON</option>: This switch enables
|
---|
| 138 | building the test suite.
|
---|
| 139 | </para>
|
---|
[bd81e201] | 140 |
|
---|
[a06368b] | 141 | </sect2>-->
|
---|
[bd81e201] | 142 |
|
---|
| 143 | <sect2 role="content">
|
---|
| 144 | <title>Contents</title>
|
---|
| 145 |
|
---|
| 146 | <segmentedlist>
|
---|
| 147 | <segtitle>Installed Programs</segtitle>
|
---|
| 148 | <segtitle>Installed Libraries</segtitle>
|
---|
| 149 | <segtitle>Installed Directories</segtitle>
|
---|
| 150 |
|
---|
| 151 | <seglistitem>
|
---|
| 152 | <seg>opj_compress, opj_decompress, and opj_dump</seg>
|
---|
| 153 | <seg>libopenjp2.so</seg>
|
---|
[b7a6574b] | 154 | <seg>/usr/include/openjpeg-2.4 and /usr/lib/openjpeg-2.4</seg>
|
---|
[bd81e201] | 155 | </seglistitem>
|
---|
| 156 | </segmentedlist>
|
---|
| 157 |
|
---|
| 158 | <variablelist>
|
---|
| 159 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 160 | <?dbfo list-presentation="list"?>
|
---|
| 161 | <?dbhtml list-presentation="table"?>
|
---|
| 162 |
|
---|
| 163 | <varlistentry id="opj_compress">
|
---|
| 164 | <term><command>opj_compress</command></term>
|
---|
| 165 | <listitem>
|
---|
[09f0998] | 166 | <para>
|
---|
[4c24eb0a] | 167 | converts various image formats to the jpeg2000 format
|
---|
[09f0998] | 168 | </para>
|
---|
[bd81e201] | 169 | <indexterm zone="openjpeg2 opj_compress">
|
---|
| 170 | <primary sortas="b-opj_compress">opj_compress</primary>
|
---|
| 171 | </indexterm>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
| 174 |
|
---|
| 175 | <varlistentry id="opj_decompress">
|
---|
| 176 | <term><command>opj_decompress</command></term>
|
---|
| 177 | <listitem>
|
---|
[09f0998] | 178 | <para>
|
---|
[4c24eb0a] | 179 | converts jpeg2000 images to other image types
|
---|
[09f0998] | 180 | </para>
|
---|
[bd81e201] | 181 | <indexterm zone="openjpeg2 opj_decompress">
|
---|
| 182 | <primary sortas="b-opj_decompress">opj_decompress</primary>
|
---|
| 183 | </indexterm>
|
---|
| 184 | </listitem>
|
---|
| 185 | </varlistentry>
|
---|
| 186 |
|
---|
| 187 | <varlistentry id="opj_dump">
|
---|
| 188 | <term><command>opj_dump</command></term>
|
---|
| 189 | <listitem>
|
---|
[09f0998] | 190 | <para>
|
---|
[4c24eb0a] | 191 | reads in a jpeg2000 image and dumps the contents to stdout
|
---|
[09f0998] | 192 | </para>
|
---|
[bd81e201] | 193 | <indexterm zone="openjpeg2 opj_dump">
|
---|
| 194 | <primary sortas="b-opj_dump">opj_dump</primary>
|
---|
| 195 | </indexterm>
|
---|
| 196 | </listitem>
|
---|
| 197 | </varlistentry>
|
---|
| 198 |
|
---|
| 199 | </variablelist>
|
---|
| 200 |
|
---|
| 201 | </sect2>
|
---|
| 202 |
|
---|
| 203 | </sect1>
|
---|