rust-av / dav1d-rs

libdav1d rust bindings
MIT License
40 stars 20 forks source link

Build script fails through image crate #81

Closed FlareFlo closed 1 year ago

FlareFlo commented 1 year ago

Building image with the avif feature fails with this output Building inside an isolated container works however:

FROM archlinux
RUN pacman -Syu --noconfirm rustup base-devel nasm
RUN pacman --noconfirm -Scc
RUN rustup install stable --profile minimal
RUN cargo new broken_avif
WORKDIR broken_avif
RUN cargo add image --features avif --no-default-features
RUN cargo build

Dav1d is installed on the system with version 1.3.0-1. This could be related to #80, but i am not quite sure.

sdroege commented 1 year ago
error: failed to run custom build command for `dav1d-sys v0.3.5`

That's a quite ancient version. The build will work with newer versions but note https://github.com/rust-av/dav1d-rs/pull/83: dav1d 1.3.0 breaks API/ABI, so either you have to downgrade to an older version or wait for the next release of the Rust bindings (which will require 1.3.0 or newer).

FlareFlo commented 1 year ago

I figured something along those lines was going on. Looking forward to the new version! Feel free to close this issue, I am not quite sure if this can/should be considered solved already.

FlareFlo commented 1 year ago

Fixed in 3a5c34b8e830c2f9eed71e965f9f2c6ba1490776