Skip to content

Compile libtiff on Windows

Tested with libtiff v4.5.1 on Windows 10

Requirements

  • cmake (tested with v3.26.1)
  • gcc (tested with v10.3)

Get libtiff source

You can get libtiff source from here

Build

or if you are using cmake on windows for example:

bash
cd <LIBTIFF_SOURCE_DIR>
cmake -S . -B ./build \
 -DCMAKE_BUILD_TYPE=Release \
 -DCMAKE_INSTALL_PREFIX=<LIBTIFF_SOURCE_DIR>/install

cmake --build ./build --config Release --target install