8 | | Steps to use VP8/VP9: |
9 | | Download [https://www.webmproject.org/code/ libvpx]. Build and install. Libvpx will then be autodetected by PJSIP configure script (alternatively, you can specify --with-vpx option). |
| 8 | == Steps to use VP8/VP9 == |
| 9 | 1. Download [https://www.webmproject.org/code/ libvpx]. |
| 10 | 2. Build and install. General build steps can be found in libvpx `README` file. |
| 11 | - For Android, these steps can be used: |
| 12 | {{{ |
| 13 | export NDK=/path/to/Android-NDK |
| 14 | export HOST_TAG=linux-x86_64 # adjust to your building host |
| 15 | |
| 16 | export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/$HOST_TAG |
| 17 | export AR=$TOOLCHAIN/bin/aarch64-linux-android-ar |
| 18 | export AS=$TOOLCHAIN/bin/aarch64-linux-android-as |
| 19 | export CC=$TOOLCHAIN/bin/aarch64-linux-android21-clang |
| 20 | export CXX=$TOOLCHAIN/bin/aarch64-linux-android21-clang++ |
| 21 | export LD=$TOOLCHAIN/bin/aarch64-linux-android-ld |
| 22 | export RANLIB=$TOOLCHAIN/bin/aarch64-linux-android-ranlib |
| 23 | export STRIP=$TOOLCHAIN/bin/aarch64-linux-android-strip |
| 24 | |
| 25 | ./configure --target=arm64-android-gcc --enable-pic --disable-examples \ |
| 26 | --disable-tools --disable-docs --enable-realtime-only \ |
| 27 | --disable-install-bins --disable-unit-tests --disable-webm-io \ |
| 28 | --disable-libyuv \ |
| 29 | --prefix=/path/to/target/installation |
| 30 | }}} |
| 31 | 3. Libvpx will then be autodetected by PJSIP configure script (alternatively, you can specify --with-vpx option). |
| 32 | |