Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juha-h/libvpx-build
How to build libvpx for Android
https://github.com/juha-h/libvpx-build
Last synced: 23 days ago
JSON representation
How to build libvpx for Android
- Host: GitHub
- URL: https://github.com/juha-h/libvpx-build
- Owner: juha-h
- Created: 2024-02-28T01:59:45.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-13T06:18:20.000Z (6 months ago)
- Last Synced: 2024-05-13T07:26:11.417Z (6 months ago)
- Language: Makefile
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
HOW TO BUILD libvpx FOR ANDROID
- Clone this repo and go to its `vpx` directory
- Clone libvpx source to `jni` directory:
```
git clone https://github.com/webmproject/libvpx.git -b v1.14.0 jni/libvpx
```
- Give the following commands in vpx directory:
```
rm -rf obj
cd jni
./libvpx/configure --target=$(VPX_TARGET) --as=yasm \
--enable-external-build --enable-static --enable-realtime-only \
--enable-vp8 --enable-vp9 --enable-vp9-highbitdepth \
--enable-runtime-cpu-detect --enable-better-hw-compatibility \
--enable-small \
--disable-examples --disable-debug --disable-gprof --disable-gcov \
--disable-unit-tests --disable-tools --disable-docs --disable-webm-io \
--disable-internal-stats --disable-debug-libs --disable-avx
$(NDK_PATH)/ndk-build \
APP_PLATFORM=$(PLATFORM) APP_ABI=$(ANDROID_TARGET_ARCH)
```
where
- `VPX_TARGET` is `armv7-android-gcc`, `arm64-android-gcc`, or `x86_64-android-gcc`
- `NDK_PATH` is path to your Android NDK (tested with version 26.2.11394342)
- `APP_PLATFORM` is `android-API_LEVEL`
- `APP_ABI` is `armeabi-v7`, `arm64-v8a`, or `x86_64`.If everything worked OK, path to the lib is `obj/local/$(APP_ABI)/libvpx.a` and include files are in `vpx/jni/libvpx` directory.
Inspired by https://github.com/denghe/libvpx_prebuilt.