Skip to content

Conversation

@NeroBurner
Copy link

@NeroBurner NeroBurner commented Sep 16, 2025

Unpinn OpenCV 4.10 because TIFF 4.7.0 fixes build issues on Linux. Fixes: #765

Remove old FindTIFF.cmake module. Not needed anymore (and probably wasn't needed for a long time).

Update to use https://github.com/cpp-pm/libtiff/releases/tag/v4.7.0-p0

hunterized dependencies:

  • zlib: default ON, only dependency available in previous 4.0.2 hunterized version)
  • libdeflate: default: ON, available in Hunter starting with v0.26.3 Add "libdeflate" package as dependency of OpenEXR 3.2.0 #804
  • jpeg: default OFF, newly hunterized
  • lzma: default OFF, newly hunterized
  • zstd: default OFF, newly hunterized

Not hunterized dependencies:

  • jbig=OFF
  • lerc=OFF
  • webp=OFF

Fixes: #789

Unpinn OpenCV 4.10 because TIFF 4.7.0 fixes build issues on Linux.
Fixes: #765

Remove old `FindTIFF.cmake` module. Not needed anymore (and probably
wasn't needed for a long time).

Update to use https://github.com/cpp-pm/libtiff/releases/tag/v4.7.0-p0

hunterized dependencies:
- `zlib`: default ON, only dependency available in previous 4.0.2 hunterized version)
- `libdeflate`: default: ON, available in Hunter starting with `v0.26.3` #804
- `jpeg`: default OFF, newly hunterized
- `lzma`: default OFF, newly hunterized

Not hunterized dependencies:
- `jbig=OFF`
- `lerc=OFF`
- `webp=OFF`

Fixes: #789
@NeroBurner NeroBurner self-assigned this Sep 16, 2025
@NeroBurner NeroBurner added the package:update Add a new version to an existing package label Sep 16, 2025
@NeroBurner NeroBurner merged commit b923b7d into master Sep 16, 2025
14 of 17 checks passed
@NeroBurner NeroBurner deleted the libtiff_v4.7.0 branch September 16, 2025 07:20
@NeroBurner
Copy link
Author

FYI @TheNetos I've seen you've also worked on hunterizing TIFF v4.7.0. I hope this version fits your needs as well

@NeroBurner
Copy link
Author

@TheNetos
Copy link

Hello!

Unfortunately, in my case, i will need all dependencies except webp and jbig, but i hope my fork helped with this PR. 🙂

@NeroBurner
Copy link
Author

So only missing one would be lerc? I'd be happy to merge a PR creating lerc so we could have a TIFF version with lerc available.

The other dependencies (as listed above) can be enabled in the client-project

@TheNetos
Copy link

Well, for now we have 2 non-hunterized packages and 1 cyclic dependency:

  1. WebP requires TIFF as a dependency for compilation, TIFF requires WebP as a dependency for compilation. This circular hell drove hunter into an infinite loop and broke the build 🙁
  2. JBIG does not have a hunterized version
  3. lerc does not have a hunterized version

The biggest problem at the moment is the interdependence of TIFF <-> WebP, and that's what I stopped at.

@NeroBurner
Copy link
Author

I think you need to choose which one of the packages you want to use as interface. I know for a fact that you can build TIFF without webp. I assume (not checked) the same for webp. Then you could decide to use tiff, build it with webp support, and configure webp to build without TIFF.

or you build both of them separately and a common parent decides which library to use. This is the case for the OpenCV build on Hunter: TIFF is built without WebP and WebP built without TIFF. Then OpenCV uses both

as for lerc and jbig, I'll happily create a fork at cpp-pm if you point me to the needed upstream repos. Just create a package request issue at cpp-pm/hunter for each of them and we can coordinate there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package:update Add a new version to an existing package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tiff v4.7.0 got released OpenCV 4.10.0-p0 not working on Linux only on MSVC

3 participants