Skip to content

Compile libtiff on CentOS 7

Tested on 4.5.1 on centos 7

Get libtiff source

You can get libtiff source from here

Build

bash
./configure --prefix=<CLONE_DIR>/build
make -j$(nproc)
make install

or if you are using cmake on windows for example:

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