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-7.10 platform.

Package Information

JasPer Dependencies



Freeglut-3.0.0 (required for jiv), Doxygen-1.8.12 (needed for generating html documentation), and texlive-20160523b (needed to regnerate the pdf documention)

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

Installation of JasPer

mkdir BUILD &&
cd    BUILD &&

cmake -DCMAKE_INSTALL_PREFIX=/usr           \
      -DCMAKE_BUILD_TYPE=Release            \
      ..  &&

To test the results, issue: make test.

Now, as the root user:

make install

If you wish to install the PDF files for the Reference Manual and a tutorial on the JPEG-2000 standard, run the following commands as the root user:

install -v -m755 -d /usr/share/doc/jasper-2.0.0/html &&
install -v -m644 ../doc/*.pdf /usr/share/doc/jasper-2.0.0

If Doxygen-1.8.12 was installed, the html documentation was automatically built. If desired, install these files as the root user:

cp -Rv doc/html/* /usr/share/doc/jasper-2.0.0/jtml

Command Explanations

-DCMAKE_EXE_LINKER_FLAGS="-lGL -lGLU": This option is needed so the jiv program can be sucessfully built. If Freeglut-3.0.0 is installed, this option is required.

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


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

Short Descriptions


compares two images of the same geometry.


displays information about an image.


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


displays images.


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

Last updated on 2016-12-03 11:45:41 -0600