libavif-rs
libavif-rs copied to clipboard
Compile with libyuv
libavif doesn't get compiled with libyuv right now, because it causes linking to fail.
I'm having an issue simply compiling libavif (v0.11.0 from crates.io):
= note: ld.lld: error: undefined symbol: SharpYuvComputeConversionMatrix
>>> referenced by reformat_libsharpyuv.c:18 (/home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libavif-sys-0.14.1/libavif/src/reformat_libsharpyuv.c:18)
>>> reformat_libsharpyuv.c.o:(avifImageRGBToYUVLibSharpYUV) in archive /home/user/test-av1/target/debug/deps/liblibavif_sys-d6b741de7f38e7b1.rlib
ld.lld: error: undefined symbol: SharpYuvConvert
>>> referenced by reformat_libsharpyuv.c:19 (/home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libavif-sys-0.14.1/libavif/src/reformat_libsharpyuv.c:19)
>>> reformat_libsharpyuv.c.o:(avifImageRGBToYUVLibSharpYUV) in archive /home/user/test-av1/target/debug/deps/liblibavif_sys-d6b741de7f38e7b1.rlib
From a bit of digging, I figured that it requires libsharpyuv, which I have on my system from libwebp. Do you know by any chance what the issue is?
Is it related to this issue?
@daxpedda it's not really related, but I just pushed a new version of libavif-sys to crates.io which should fix your problem, by disabling searching for that library.
Thanks, can confirm it works now!