[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 |
|
---|
[9ac88cc5] | 7 | <!-- TODO : when upgrading, consider changing or reinstating the
|
---|
| 8 | sed in gst10-plugins-bad so that the new headers will be found -->
|
---|
[c9d79c2] | 9 | <!ENTITY openjpeg2-download-http "https://github.com/uclouvain/openjpeg/archive/v&openjpeg2-version;/openjpeg-&openjpeg2-version;.tar.gz">
|
---|
[bd81e201] | 10 | <!ENTITY openjpeg2-download-ftp " ">
|
---|
[0fc5e82b] | 11 | <!ENTITY openjpeg2-md5sum "6a1f8aaa1fe55d2088e3a9c942e0f698">
|
---|
| 12 | <!ENTITY openjpeg2-size "2.1 MB">
|
---|
| 13 | <!ENTITY openjpeg2-buildsize "16 MB">
|
---|
| 14 | <!ENTITY openjpeg2-time "0.3 SBU">
|
---|
[bd81e201] | 15 | ]>
|
---|
| 16 |
|
---|
| 17 | <sect1 id="openjpeg2" xreflabel="OpenJPEG-&openjpeg2-version;">
|
---|
| 18 | <?dbhtml filename="openjpeg2.html"?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
| 23 | </sect1info>
|
---|
| 24 |
|
---|
| 25 | <title>OpenJPEG-&openjpeg2-version;</title>
|
---|
| 26 |
|
---|
| 27 | <indexterm zone="openjpeg2">
|
---|
| 28 | <primary sortas="a-openjpeg2">OpenJPEG</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to OpenJPEG</title>
|
---|
| 33 |
|
---|
[a06368b] | 34 | <para>
|
---|
| 35 | <application>OpenJPEG</application> is an open-source implementation of
|
---|
| 36 | the JPEG-2000 standard. OpenJPEG fully respects the JPEG-2000
|
---|
| 37 | specifications and can compress/decompress lossless 16-bit images.
|
---|
| 38 | </para>
|
---|
[bd81e201] | 39 |
|
---|
[eb1089d] | 40 | &lfs83_checked;
|
---|
[bd81e201] | 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (HTTP): <ulink url="&openjpeg2-download-http;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download (FTP): <ulink url="&openjpeg2-download-ftp;"/></para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download MD5 sum: &openjpeg2-md5sum;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Download size: &openjpeg2-size;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated disk space required: &openjpeg2-buildsize;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Estimated build time: &openjpeg2-time;</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | </itemizedlist>
|
---|
| 63 |
|
---|
[9bc61f6] | 64 | <bridgehead renderas="sect3">Additonal Downloads</bridgehead>
|
---|
| 65 | <itemizedlist spacing="compact">
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>Required patch: <ulink
|
---|
| 68 | url="&patch-root;/openjpeg-&openjpeg2-version;-only_shared-1.patch"/>
|
---|
| 69 | </para>
|
---|
| 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
[bd81e201] | 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">
|
---|
| 82 | <xref linkend="lcms2"/>,
|
---|
| 83 | <xref linkend="libpng"/>,
|
---|
| 84 | <xref linkend="libtiff"/>, and
|
---|
| 85 | <xref linkend="doxygen"/> (to build the API documentation)
|
---|
| 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 |
|
---|
[9bc61f6] | 101 | <screen><userinput>patch -Np1 -i ../openjpeg-&openjpeg2-version;-only_shared-1.patch &&
|
---|
| 102 |
|
---|
| 103 | mkdir -v build &&
|
---|
[a06368b] | 104 | cd build &&
|
---|
[059a1a5c] | 105 |
|
---|
[5b23c1e] | 106 | cmake -DCMAKE_BUILD_TYPE=Release \
|
---|
| 107 | -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 108 | -DBUILD_STATIC_LIBS=OFF .. &&
|
---|
[bd81e201] | 109 | make</userinput></screen>
|
---|
| 110 |
|
---|
[a06368b] | 111 | <!-- Thread discussing the tests, fixing instructions,
|
---|
| 112 | but obtaining poor results:
|
---|
| 113 | http://lists.linuxfromscratch.org/pipermail/blfs-dev/2015-April/030035.html
|
---|
| 114 | -->
|
---|
| 115 | <para>This package does not come with a working test suite.</para>
|
---|
[bd81e201] | 116 |
|
---|
| 117 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 118 |
|
---|
| 119 | <screen role="root"><userinput>make install &&
|
---|
[059a1a5c] | 120 |
|
---|
[a06368b] | 121 | pushd ../doc &&
|
---|
[92d2b83] | 122 | for man in man/man?/* ; do
|
---|
| 123 | install -v -D -m 644 $man /usr/share/$man
|
---|
| 124 | done
|
---|
[a06368b] | 125 | popd</userinput></screen>
|
---|
[bd81e201] | 126 |
|
---|
| 127 | </sect2>
|
---|
[a06368b] | 128 | <!--
|
---|
[bd81e201] | 129 | <sect2 role="commands">
|
---|
| 130 | <title>Command Explanations</title>
|
---|
| 131 |
|
---|
| 132 | <para><option>-DBUILD_TESTING=ON</option>: This switch enables
|
---|
| 133 | building the test suite.</para>
|
---|
| 134 |
|
---|
[a06368b] | 135 | </sect2>-->
|
---|
[bd81e201] | 136 |
|
---|
| 137 | <sect2 role="content">
|
---|
| 138 | <title>Contents</title>
|
---|
| 139 |
|
---|
| 140 | <segmentedlist>
|
---|
| 141 | <segtitle>Installed Programs</segtitle>
|
---|
| 142 | <segtitle>Installed Libraries</segtitle>
|
---|
| 143 | <segtitle>Installed Directories</segtitle>
|
---|
| 144 |
|
---|
| 145 | <seglistitem>
|
---|
| 146 | <seg>opj_compress, opj_decompress, and opj_dump</seg>
|
---|
| 147 | <seg>libopenjp2.so</seg>
|
---|
| 148 | <seg>/usr/include/openjpeg-2.1 and /usr/lib/openjpeg-2.1</seg>
|
---|
| 149 | </seglistitem>
|
---|
| 150 | </segmentedlist>
|
---|
| 151 |
|
---|
| 152 | <variablelist>
|
---|
| 153 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 154 | <?dbfo list-presentation="list"?>
|
---|
| 155 | <?dbhtml list-presentation="table"?>
|
---|
| 156 |
|
---|
| 157 | <varlistentry id="opj_compress">
|
---|
| 158 | <term><command>opj_compress</command></term>
|
---|
| 159 | <listitem>
|
---|
| 160 | <para>converts various image formats to the jpeg2000 format.</para>
|
---|
| 161 | <indexterm zone="openjpeg2 opj_compress">
|
---|
| 162 | <primary sortas="b-opj_compress">opj_compress</primary>
|
---|
| 163 | </indexterm>
|
---|
| 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
| 166 |
|
---|
| 167 | <varlistentry id="opj_decompress">
|
---|
| 168 | <term><command>opj_decompress</command></term>
|
---|
| 169 | <listitem>
|
---|
| 170 | <para>converts jpeg2000 images to other image types.</para>
|
---|
| 171 | <indexterm zone="openjpeg2 opj_decompress">
|
---|
| 172 | <primary sortas="b-opj_decompress">opj_decompress</primary>
|
---|
| 173 | </indexterm>
|
---|
| 174 | </listitem>
|
---|
| 175 | </varlistentry>
|
---|
| 176 |
|
---|
| 177 | <varlistentry id="opj_dump">
|
---|
| 178 | <term><command>opj_dump</command></term>
|
---|
| 179 | <listitem>
|
---|
| 180 | <para>reads in a jpeg2000 image and dumps the contents to stdout.</para>
|
---|
| 181 | <indexterm zone="openjpeg2 opj_dump">
|
---|
| 182 | <primary sortas="b-opj_dump">opj_dump</primary>
|
---|
| 183 | </indexterm>
|
---|
| 184 | </listitem>
|
---|
| 185 | </varlistentry>
|
---|
| 186 |
|
---|
| 187 | </variablelist>
|
---|
| 188 |
|
---|
| 189 | </sect2>
|
---|
| 190 |
|
---|
| 191 | </sect1>
|
---|