Skip to content
RENDEASE edited this page Oct 5, 2016 · 1 revision

How to build LIBTIFF on Windows

  • Open CMake to generate MSVC solution
  • In CMAKE_CXX_FLAGS_RELEASE and CMAKE_C_FLAGS_RELEASE, replace all /MD with /MT
  • In CMAKE_CXX_FLAGS_DEBUG and CMAKE_C_FLAGS_DEBUG, replace all /MDd with /MTd
Name Value
BUILD_SHARED_LIBS OFF
JPEG_INCLUDE_DIR libjpeg/include
JPEG_LIBRARY libjpeg/lib/jpeg.lib
ZLIB_INCLUDE_DIR zlib/include
ZLIB_LIBRARY_DEBUG zlib/lib/zlibstaticd.lib
ZLIB_LIBRARY_RELEASE zlib/lib/zlibstatic.lib
jbig OFF
jpeg ON
jpeg12 OFF
zlib ON
Clone this wiki locally