Introduction to JasPer
The JasPer Project is an
open-source initiative to provide a free software-based reference
implementation of the JPEG-2000 codec.
Note
Development versions of BLFS may not build or run some packages
properly if LFS or dependencies have been updated since the most
recent stable versions of the books.
Package Information
JasPer Dependencies
Required
CMake-3.27.0
Recommended
libjpeg-turbo-3.0.0
Optional
Freeglut-3.4.0 (required for jiv), Doxygen-1.9.7 (needed for
generating html documentation), and texlive-20230313 (needed to
regenerate the pdf documentation)
Installation of JasPer
Note
The tarball jasper-4.0.0.tar.gz will extract to
jasper-version-4.0.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 \
-DCMAKE_INSTALL_DOCDIR=/usr/share/doc/jasper-4.0.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.