blender-openexr3.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. diff --git a/build_files/cmake/Modules/FindOpenEXR.cmake b/build_files/cmake/Modules/FindOpenEXR.cmake
  2. index 090f80b8df7..a2f7b4c622b 100644
  3. --- a/build_files/cmake/Modules/FindOpenEXR.cmake
  4. +++ b/build_files/cmake/Modules/FindOpenEXR.cmake
  5. @@ -34,11 +34,10 @@ ENDIF()
  6. SET(_openexr_libs_ver_init "2.0")
  7. SET(_openexr_FIND_COMPONENTS
  8. - Half
  9. Iex
  10. - IlmImf
  11. - IlmThread
  12. Imath
  13. + OpenEXR
  14. + IlmThread
  15. )
  16. SET(_openexr_SEARCH_DIRS
  17. @@ -120,7 +119,7 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenEXR DEFAULT_MSG
  18. IF(OPENEXR_FOUND)
  19. SET(OPENEXR_LIBRARIES ${_openexr_LIBRARIES})
  20. # Both include paths are needed because of dummy OSL headers mixing #include <OpenEXR/foo.h> and #include <foo.h> :(
  21. - SET(OPENEXR_INCLUDE_DIRS ${OPENEXR_INCLUDE_DIR} ${OPENEXR_INCLUDE_DIR}/OpenEXR)
  22. + SET(OPENEXR_INCLUDE_DIRS ${OPENEXR_INCLUDE_DIR} ${OPENEXR_INCLUDE_DIR}/OpenEXR ${OPENEXR_INCLUDE_DIR}/Imath)
  23. ENDIF()
  24. MARK_AS_ADVANCED(
  25. diff --git a/source/blender/imbuf/intern/openexr/openexr_api.cpp b/source/blender/imbuf/intern/openexr/openexr_api.cpp
  26. index 382d86f2645..eff50b19c31 100644
  27. --- a/source/blender/imbuf/intern/openexr/openexr_api.cpp
  28. +++ b/source/blender/imbuf/intern/openexr/openexr_api.cpp
  29. @@ -38,8 +38,10 @@
  30. #include <ImfChannelList.h>
  31. #include <ImfCompression.h>
  32. #include <ImfCompressionAttribute.h>
  33. +#include <ImfFrameBuffer.h>
  34. #include <ImfIO.h>
  35. #include <ImfInputFile.h>
  36. +#include <ImfInt64.h>
  37. #include <ImfOutputFile.h>
  38. #include <ImfPixelType.h>
  39. #include <ImfStandardAttributes.h>