Dav1d cross platform automated and consistent build (local and CI) #2309
Unanswered
foresterre
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do you all build the
image
crate with the dav1d dependency enabled (e.g. via the avif-native feature), consistently in a cross platform manner?I'm looking to support at least Windows 11, MacOS and Linux.
Normally, it's a good idea to see what the CI does, but the windows build was removed from the CI.
Building dav1d for linux is easy: set the environment variable
SYSTEM_DEPS_DAV1D_BUILD_INTERNAL=always
.To build on Windows, there are instructions to use
vcpkg
andchoco
, but these are not commonly enabled on every Windows developer machine (I would like to automate the install as much as possible).The
dav1d-rs
CI workflow takes another route: build dav1d with Meson: https://github.com/rust-av/dav1d-rs/blob/922b436d1d315e75d49b80e2aea89be47dce833d/.github/workflows/dav1d.yml#L50.The first method didn't work on my local machine (vcpkg failed to resolve the correct library at some point). The second method also resulted in errors.
I've used the following build instructions: https://github.com/foresterre/sic/pull/2007/files#diff-3ab868b1877a0862802c5e7d571c172f327c2e9dc37d5f958792230dfcdc867e
I've left MacOS for a future exercise for now, because I don't have a Mac, and that means I've to perform the steps in a trial and error manner via the CI.
Beta Was this translation helpful? Give feedback.
All reactions