Skip to content
Luca Barbato edited this page Dec 12, 2017 · 2 revisions

Build instructions

  • The dependencies of the player use some C libraries for now:
  • The player itself uses sdl2 for the A/V output.
  • In order to build the bindings you need to have a recent version of clang
  • Currently everything is available only from git:
    # mkdir rust-av-tree
    # cd rust-av-tree
    # git clone git://github.com/rust-av/rust-av
    # git clone git://github.com/rust-av/vpx-rs
    # git clone git://github.com/rust-av/opus-rs
    # git clone git://github.com/rust-av/matroska
    # git clone git://github.com/rust-av/avp
    # cd avp
    # cargo run ../matroska/assets/bbb-vp9-opus.webm
    

Gentoo

Gentoo provides a mean to install multiple clang implementation, in order to tell rust-bindgen which one is the one to use the LIBCLANG_PATH has to be set:

# export LIBCLANG_PATH="/usr/lib/llvm/5/lib64"

Dependencies

Gentoo provides all the dependencies:

# emerge sdl2 opus libvpx clang

Ubuntu

Ubuntu normally provides just a single libclang.so so LIBCLANG_PATH can remain unset.

Dependencies

apt install libsdl2-dev libopus-dev libvpx-dev clang
Clone this wiki locally