This package, from the WebM project, provides the reference implementations of the VP8 Codec (used in most current HTML5 video) and of the next-generation VP9 Codec.
NASM-2.16.03 and Which-2.21 (so configure can find nasm)
cURL-8.11.1 (to download test files)
An Internet connection is needed for some tests of this package.
Install libvpx by running the following commands:
sed -i 's/cp -p/cp/' build/make/Makefile && mkdir libvpx-build && cd libvpx-build && ../configure --prefix=/usr \ --enable-shared \ --disable-static && make
To test the results, issue: LD_LIBRARY_PATH=. make test. The test suite downloads many files as part of its test process. A few parts of it will use all available cores.
Now, as the root
user:
make install
First clean the build directory:
rm -rf *
Install lib32-libvpx by running the following commands:
CC="gcc -m32" CXX="g++ -m32" \ PKG_CONFIG_PATH=/usr/lib32/pkgconfig \ ../configure --prefix=/usr \ --libdir=/usr/lib32 \ --target=x86-linux-gcc \ --enable-shared \ --disable-static && make
To test the results, issue: LD_LIBRARY_PATH=. make test. The test suite downloads many files as part of its test process. A few parts of it will use all available cores.
Now, as the root
user:
make DESTDIR=$PWD/DESTDIR install && cp -vr DESTDIR/usr/lib32/* /usr/lib32 && rm -rf DESTDIR && ldconfig
sed ... : This command corrects the ownership and permissions of installed files.
mkdir libvpx-build && cd libvpx-build: The libvpx developers recommend building in a dedicated build directory.
--disable-static
: This
switch prevents installation of static versions of the libraries.
--disable-vp8
: This switch prevents
building support for the VP8 codec.
--disable-vp9
: This switch prevents
building support for the VP9 codec.
--target=generic-gnu
: This switch
disables optimizations specific to x86 and x86-64, allowing to
build this package without nasm and yasm installed.
LD_LIBRARY_PATH=.: This is needed for the test suite to use the library that was just built.