Created
June 30, 2014 10:12
-
-
Save fly1tkg/8fb33fc9860b690bc52e to your computer and use it in GitHub Desktop.
android runnable ffmpeg 2.2.4 build with x264
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NDK=/home/vagrant/android-ndk-r9d | |
SYSROOT=$NDK/platforms/android-9/arch-arm/ | |
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86 | |
function build_one | |
{ | |
./configure \ | |
--prefix=$PREFIX \ | |
--disable-shared \ | |
--enable-static \ | |
--disable-doc \ | |
--enable-ffmpeg \ | |
--disable-ffplay \ | |
--disable-ffprobe \ | |
--disable-ffserver \ | |
--disable-avdevice \ | |
--disable-doc \ | |
--disable-symver \ | |
--cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \ | |
--target-os=linux \ | |
--arch=arm \ | |
--enable-cross-compile \ | |
--enable-version3 \ | |
--enable-gpl \ | |
--enable-libx264 \ | |
--sysroot=$SYSROOT \ | |
--extra-cflags="-Os -fpic -I../x264" \ | |
--extra-ldflags="-L../x264" \ | |
$ADDITIONAL_CONFIGURE_FLAG | |
make clean | |
make | |
make install | |
} | |
CPU=arm | |
PREFIX=$(pwd)/android/$CPU | |
ADDI_CFLAGS="-marm" | |
build_one |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment