Repository navigation
BUG: Fix TIFFImageIO failures with ITK_USE_SYSTEM_TIFF=ON - #7240
Conversation
With system libtiff, 4 tests like itkLargeTIFFImageWriteReadTest2 failed because TIFFImageIO detected libtiff 4 via TIFF_INT64_T, which current libtiff (4.7.2) no longer defines, and failed using the libtiff 3 fallback. libtiff >= 4.0.3 is required since 40f5c4d (2024), so the fallback is not needed anymore.
|
[Medium impact] The PR appears safe to merge.
|
blowekamp
left a comment
There was a problem hiding this comment.
These changes look good.
The CMake code used for find libtiff on the system should also enforce the version requirements so useful error messages are produced during configuration time. If this is not added as part of this PR, please create a GH issue.
https://github.com/InsightSoftwareConsortium/ITK/blob/main/Modules/ThirdParty/TIFF/CMakeLists.txt#L5
|
Was the issue or a PR created as I requested? |
|
@blowekamp not before this merged; it is now #7270: the three |
TIFFImageIO has needed libtiff 4.0.3 or later since 40f5c4d, and after #7240 it has no fallback for older versions, but find_package(TIFF) asked for no version. An older system libtiff was accepted at configure time and failed only when TIFFImageIO compiled. The build and both exported find_package(TIFF) calls now ask for 4.0.3, so an older libtiff stops configuration with FindTIFF's "Found unsuitable version" message, and so do projects that use the installed ITK. Requested by blowekamp in review of #7240.
With system libtiff, 4 tests like itkLargeTIFFImageWriteReadTest2 failed because TIFFImageIO detected libtiff 4 via TIFF_INT64_T, which current libtiff (4.7.2) no longer defines, and failed using the libtiff 3 fallback.
libtiff >= 4.0.3 is required since 40f5c4d (2024), so the fallback is not needed anymore.