Linux

Linux-based os are the default development platform for libav, thus it is expected to build out of box.

Beside the optional external libraries, in order to build Libav the following components are required and normally available:

Building

If you are building a static library and you plan to use it to build dynamic libraries (e.g. libvlc or gst-libav) you MUST pass '--enable-pic' to configure.

If you want to build Libav with external dependencies make sure you have pkgconfig or pkgconf installed.

Distributions

Arch

Arch provides a libav-git package in AUR.

Debian

In order to build from git you should install at least

 # sudo apt-get install yasm make git build-essential -y

In order to send patches you should

# sudo apt-get install git-email

In order to get all the additional dependencies

 # apt-get build-dep libav-tools

openSUSE/SUSE

All dependencies are listed in the .spec file which can be found at build.opensuse.org.

Gentoo

Everything required is available out of box including libav from git using:

 # emerge =libav-9999

Ubuntu

In order to build from git you should install at least

 # sudo apt-get install yasm make git build-essential -y

In order to send patches you should

# sudo apt-get install git-email

In order to get all the additional dependencies

 # apt-get build-dep libav-tools

CentOS/Fedora/RedHat

The rpm based distributions would require to build pretty much everything from scratch.

# yum install autoconf automake gcc gcc-c++ git libtool make yasm pkgconfig zlib-devel

If your distribution does not provide yasm it is common to have nasm as replacement.

LinuxBrew

In order to compile Libav with external dependencies installed via Linuxbrew, is enough to set the the pkg-config path and the include and library path.

# PKG_CONFIG_PATH=$HOME/.linuxbrew/lib/pkgconfig ./configure --extra-cflags=-I$HOME/.linuxbrew/include --extra-ldflags=-L$HOME/.linuxbrew/lib

Pre Built Static Binaries

John Van Sickle provides static builds with most of the free dependencies built in.


CategoryWIP