Dune Libvpx May 2026

In the world of open-source video codecs, libvpx (maintained by the WebM Project) remains the gold standard reference implementation for VP8, VP9, and AV1. However, as any encoding engineer will tell you, integrating libvpx into a modern, scalable, or cross-platform build system can be a nightmare. Enter Dune .

(rule (target libvpx.a) (deps (source_tree libvpx-src)) (action (progn (chdir libvpx-src (progn (run ./configure --target=x86_64-linux-gcc ; Change per host --disable-shared --enable-static --disable-examples --disable-tools --disable-docs --disable-unit-tests --size-limit=4096x2160 --enable-postproc --enable-vp9-postproc --enable-runtime-cpu-detect --prefix=%workspace_root/_build/default/libvpx/install) (run make -j4) (run make install))) (copy %workspace_root/_build/default/libvpx/install/lib/libvpx.a libvpx.a)))) Finally, create a dune file in your project’s root or a stubs directory: dune libvpx

Try it yourself: Clone this example repository (hypothetical) and run dune build @install . You’ll have a VP9 encoder binary that is completely independent of your system’s multimedia libraries. Have you integrated libvpx with an unconventional build system? Share your war stories in the comments below. In the world of open-source video codecs, libvpx