rust-av / dav1d-rs

libdav1d rust bindings
MIT License
37 stars 16 forks source link

Build script fails through image crate #81

Closed FlareFlo closed 11 months ago

FlareFlo commented 11 months 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 11 months 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 11 months 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 11 months ago

Fixed in 3a5c34b8e830c2f9eed71e965f9f2c6ba1490776