/build-x264-android-shared-library

Script to generate x264 libx264.so files for various android platforms

Primary LanguageShell

Build x264 shared library for Android

Steps to build

  1. Clone or download code of latest x264 library from VLC https://www.videolan.org/developers/x264.html
git clone https://code.videolan.org/videolan/x264.git
  1. Copy the script named x264_build_script.sh in this repository into the cloned/extracted x264 directory and change to that directory
cp x264_build_script.sh <DIRECTORY_CONTAINING_X264>/x264
cd <DIRECTORY_CONTAINING_X264>/x264
  1. Update NDK path in the first line of the script x264_build_script.sh

  2. Run the x264_build_script.sh

chmod a+x x264_build_script.sh
./x264_build_script.sh
  1. Find the generated .so files at ~/android directory