#### Beyond Linux® From Scratch (System V Edition) - Version 12.1

### Chapter 10. Graphics and Font Libraries

- Prev

  Libspiro-20220722

- Next

  libwebp-1.3.2

- Up
- Home

# libtiff-4.6.0

## Introduction to libtiff

The libtiff package contains the TIFF libraries and associated utilities. The libraries are used by many programs for reading and writing TIFF files and the utilities are used for general work with TIFF files.

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

### Package Information

- Download (HTTP): https://download.osgeo.org/libtiff/tiff-4.6.0.tar.gz

- Download MD5 sum: fc7d49a9348b890b29f91a4ecadd5b49

- Download size: 3.4 MB

- Estimated disk space required: 46 MB (with tests)

- Estimated build time: 0.2 SBU (with tests)

### libtiff Dependencies

#### Recommended

CMake-3.28.3

#### Optional

Freeglut-3.4.0 (required for tiffgt), libjpeg-turbo-3.0.1, sphinx-7.2.6, libwebp-1.3.2, JBIG-KIT, and LERC

## Installation of libtiff

Install libtiff by running the following commands:

    mkdir -p libtiff-build &&
    cd       libtiff-build &&

    cmake -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-4.6.0 \
          -DCMAKE_INSTALL_PREFIX=/usr -G Ninja .. &&
    ninja

To test the results, issue: ninja test.

Now, as the `root` user:

    ninja install

## Contents

Installed Programs: tiffcp, tiffdump, tiffinfo, tiffset, and tiffsplit
Installed Libraries: libtiff.so and libtiffxx.so
Installed Directory: /usr/share/doc/tiff-4.6.0

### Short Descriptions

tiffcp | copies (and possibly converts) a TIFF file
tiffdump | prints verbatim information about TIFF files
tiffinfo | prints information about TIFF files
tiffset | sets the value of a TIFF header to a specified value
tiffsplit | splits a multi-image TIFF into single-image TIFF files
`libtiff.so` | contains the API functions used by the libtiff programs as well as other programs to read and write TIFF files
`libtiffxx.so` | contains the C++ API functions used by programs to read and write TIFF files

- Prev

  Libspiro-20220722

- Next

  libwebp-1.3.2

- Up
- Home