Skip to content

libavif 1.4.0 does not compile successfully with CMake < 3.24#260

Merged
hugovk merged 2 commits intopython-pillow:mainfrom
radarhere:libavif
Mar 11, 2026
Merged

libavif 1.4.0 does not compile successfully with CMake < 3.24#260
hugovk merged 2 commits intopython-pillow:mainfrom
radarhere:libavif

Conversation

@radarhere
Copy link
Member

After python-pillow/Pillow#9460 upgraded libavif to 1.4.0, main has started failing for Amazon 2023 and Ubuntu 22.04 - https://github.com/python-pillow/docker-images/actions/runs/22924010099

298.3 CMake Error at _deps/libaom-src/CMakeLists.txt:383 (target_link_libraries):
298.3 Error evaluating generator expression:
298.3
298.3 $PATH:ABSOLUTE_PATH,/depends/libavif-1.4.0/_deps/libaom-src,/
298.3
298.3 Expression did not evaluate to a known generator expression

I asked, and libavif have confirmed this as a bug - AOMediaCodec/libavif#3095

For the moment, I think the simplest solution is to just not install libavif in those jobs.

Also, now that python-pillow/Pillow#9460 reverted python-pillow/Pillow#9413, patch from #257 is no longer needed, and that can be reverted.

@radarhere radarhere changed the title libavif does not compile successfully with CMake < 3.24 libavif 1.4.0 does not compile successfully with CMake < 3.24 Mar 11, 2026
@hugovk hugovk enabled auto-merge March 11, 2026 13:11
@hugovk hugovk merged commit d10820c into python-pillow:main Mar 11, 2026
25 checks passed
@radarhere radarhere deleted the libavif branch March 11, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants