OpenJPEG-2.3.0

#### Beyond Linux® From Scratch - Version 2019-02-27

### Chapter 10. Graphics and Font Libraries

- Prev

  opencv-4.0.1

- Next

  Pixman-0.38.0

- Up
- Home

# OpenJPEG-2.3.0

## Introduction to OpenJPEG

OpenJPEG is an open-source implementation of the JPEG-2000 standard. OpenJPEG fully respects the JPEG-2000 specifications and can compress/decompress lossless 16-bit images.

This package is known to build and work properly using an LFS-8.4 platform.

### Package Information

- Download (HTTP): https://github.com/uclouvain/openjpeg/archive/v2.3.0/openjpeg-2.3.0.tar.gz

- Download MD5 sum: 6a1f8aaa1fe55d2088e3a9c942e0f698

- Download size: 2.1 MB

- Estimated disk space required: 16 MB

- Estimated build time: 0.3 SBU

### Additional Downloads

- Required patch: http://www.linuxfromscratch.org/patches/blfs/svn/openjpeg-2.3.0-only_shared-1.patch

### OpenJPEG Dependencies

#### Required

CMake-3.13.4

#### Optional

Little CMS-2.9, libpng-1.6.36, LibTIFF-4.0.10, and Doxygen-1.8.15 (to build the API documentation)

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/openjpeg2

## Installation of OpenJPEG

Install OpenJPEG by running the following commands:

    patch -Np1 -i ../openjpeg-2.3.0-only_shared-1.patch &&

    mkdir -v build &&
    cd       build &&

    cmake -DCMAKE_BUILD_TYPE=Release \
          -DCMAKE_INSTALL_PREFIX=/usr \
          -DBUILD_STATIC_LIBS=OFF .. &&
    make

This package does not come with a working test suite.

Now, as the `root` user:

    make install &&

    pushd ../doc &&
      for man in man/man?/* ; do
          install -v -D -m 644 $man /usr/share/$man
      done
    popd

## Contents

Installed Programs: opj_compress, opj_decompress, and opj_dump
Installed Libraries: libopenjp2.so
Installed Directories: /usr/include/openjpeg-2.1 and /usr/lib/openjpeg-2.1

### Short Descriptions

opj_compress | converts various image formats to the jpeg2000 format.
opj_decompress | converts jpeg2000 images to other image types.
opj_dump | reads in a jpeg2000 image and dumps the contents to stdout.

Last updated on 2019-02-15 15:01:29 -0600

- Prev

  opencv-4.0.1

- Next

  Pixman-0.38.0

- Up
- Home