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

How to build OpenImageIO 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
BUILDSTATIC ON
BUILD_OIIOUTIL_ONLY OFF
BUILD_TESTING ON
Boost_FILESYSTEM_LIBRARY_DEBUG boost/lib/libboost_filesystem-vc100-mt-sgd-1_60.lib
Boost_FILESYSTEM_LIBRARY_RELEASE boost/lib/libboost_filesystem-vc100-mt-s-1_60.lib
Boost_INCLUDE_DIR boost/include
Boost_LIBRARY_DIR_DEBUG boost/lib
Boost_LIBRARY_DIR_RELEASE boost/lib
Boost_REGEX_LIBRARY_DEBUG boost/lib/libboost_regex-vc100-mt-sgd-1_60.lib
Boost_REGEX_LIBRARY_RELEASE boost/lib/libboost_regex-vc100-mt-s-1_60.lib
Boost_SYSTEM_LIBRARY_DEBUG boost/lib/libboost_system-vc100-mt-sgd-1_60.lib
Boost_SYSTEM_LIBRARY_RELEASE boost/lib/libboost_system-vc100-mt-s-1_60.lib
Boost_THREAD_LIBRARY_DEBUG boost/lib/libboost_thread-vc100-mt-sgd-1_60.lib
Boost_THREAD_LIBRARY_RELEASE boost/lib/libboost_thread-vc100-mt-s-1_60.lib
ILMBASE_INCLUDE_DIR openexr/include
ILMBASE_INCLUDE_PATH openexr/include
ILMBASE_LIBRARIES openexr/lib/release/Imath-2_2.lib;openexr/lib/release/Iex-2_2.lib;openexr/lib/release/Half.lib;openexr/lib/release/IlmThread-2_2.lib
INSTALL_DOCS ON
INSTALL_FONTS ON
JPEG_INCLUDE_DIR libjpeg/include
JPEG_LIBRARY libjpeg/lib/jpeg.lib
LINKSTATIC ON
NOTHREADS OFF
OIIO_BUILD_CPP11 OFF
OIIO_BUILD_CPP14 OFF
OIIO_BUILD_LIBCPLUSPLUS OFF
OIIO_BUILD_TESTS OFF
OIIO_BUILD_TOOLS OFF
OIIO_THREAD_ALLOW_DCLP OFF
OPENEXR_HALF_LIBRARY openexr/lib/release/Half.lib
OPENEXR_IEX_LIBRARY openexr/lib/release/Iex-2_2.lib
OPENEXR_ILMIMF_LIBRARY openexr/lib/release/IlmImf-2_2.lib
OPENEXR_ILMTHREAD_LIBRARY openexr/lib/release/IlmThread-2_2.lib
OPENEXR_IMATH_LIBRARY openexr/lib/release/Imath-2_2.lib
OPENEXR_INCLUDE_DIR openexr/include
OPENEXR_INCLUDE_PATH openexr/include
OPENEXR_LIBRARIES openexr/lib/release/IlmImf-2_2.lib;openexr/lib/release/Imath-2_2.lib;openexr/lib/release/Iex-2_2.lib;openexr/lib/release/Half.lib;openexr/lib/release/IlmThread-2_2.lib;optimized;zlib/lib/zlibstatic.lib;debug;zlib/lib/zlibstaticd.lib
PNG_LIBRARY_DEBUG libpng/lib/libpng16_staticd.lib
PNG_LIBRARY_RELEASE libpng/lib/libpng16_static.lib
PNG_PNG_INCLUDE_DIR libpng/include
TIFF_INCLUDE_DIR libtiff/include
TIFF_LIBRARY_DEBUG libtiff/lib/tiffd.lib
TIFF_LIBRARY_RELEASE libtiff/lib/tiff.lib
USE_EXTERNAL_PUGIXML OFF
USE_FFMPEG OFF
USE_FIELD3D OFF
USE_FREETYPE OFF
USE_GIF OFF
USE_LIBRAW OFF
USE_NUKE OFF
USE_OCIO OFF
USE_OPENCV OFF
USE_OPENGL OFF
USE_OPENJPEG OFF
USE_OPENSSL OFF
USE_PTEX ON
USE_PYTHON OFF
USE_PYTHON3 OFF
USE_QT OFF
ZLIB_INCLUDE_DIR zlib/include
ZLIB_LIBRARY_DEBUG zlib/lib/zlibstaticd.lib
ZLIB_LIBRARY_RELEASE zlib/lib/zlibstatic.lib
Clone this wiki locally