JasPer-4.2.0

Introduction to JasPer

The JasPer Project is an open-source initiative to provide a free software-based reference implementation of the JPEG-2000 codec.

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

Package Information

JasPer Dependencies

Required

CMake-3.28.3

Recommended

Optional

Freeglut-3.4.0 (required for jiv), Doxygen-1.10.0 (needed for generating html documentation), and texlive-20230313 (needed to regenerate the pdf documentation)

Installation of JasPer

[Note]

Note

The tarball jasper-4.2.0.tar.gz will extract to jasper-version-4.2.0.

Install JasPer by running the following commands:

mkdir BUILD &&
cd    BUILD &&

cmake -DCMAKE_INSTALL_PREFIX=/usr    \
      -DCMAKE_BUILD_TYPE=Release     \
      -DCMAKE_SKIP_INSTALL_RPATH=YES \
      -DJAS_ENABLE_DOC=NO            \
      -DALLOW_IN_SOURCE_BUILD=YES    \
      -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/jasper-4.2.0 \
      ..  &&
make

To test the results, issue: make test.

Now, as the root user:

make install

Command Explanations

-DCMAKE_SKIP_INSTALL_RPATH=YES: This option removes embedded library search paths.

-DJAS_ENABLE_DOC=NO: This option disables rebuilding the pdf documentation if texlive-20230313 is installed.

-DALLOW_IN_SOURCE_BUILD=YES: This switch allows building from within the source tree. In our case, this is needed to allow us to build inside of the BUILD directory instead of needing to create another directory outside of the source tree.

Contents

Installed Programs: imgcmp, imginfo, jasper, and jiv
Installed Library: libjasper.so
Installed Directories: /usr/include/jasper and /usr/share/doc/jasper-4.2.0

Short Descriptions

imgcmp

compares two images of the same geometry

imginfo

displays information about an image

jasper

converts images between formats (BMP, JPS, JPC, JPG, PGX, PNM, MIF, and RAS)

jiv

displays images

libjasper.so

is a library used by programs for reading and writing JPEG2000 format files