Created
May 9, 2016 02:15
-
-
Save begeekmyfriend/6aa63a4d434daa53e7e8a6ff8ab6a00a to your computer and use it in GitHub Desktop.
cross building ffmpeg with libx264 and libaacplus for Android
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
HOST=linux-x86_64 | |
NDK=/opt/android-ndk-r8e | |
PLATFORM=$NDK/platforms/android-14/arch-arm | |
PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/$HOST | |
CPU=armv7-a | |
PREFIX=$(pwd)/../build_android/$CPU | |
./configure --target-os=linux \ | |
--prefix=$PREFIX \ | |
--enable-nonfree --enable-gpl --enable-version3 \ | |
--cc=$PREBUILT/bin/arm-linux-androideabi-gcc \ | |
--cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \ | |
--nm=$PREBUILT/bin/arm-linux-androideabi-nm \ | |
--arch=$CPU \ | |
--enable-cross-compile \ | |
--sysroot=$PLATFORM \ | |
\ | |
--extra-cflags="-I$(pwd)/../build_android/$CPU/include -Os -g -fpic -DANDROID -finline-limit=300 " \ | |
--extra-ldflags="-L$PLATFORM/usr/lib -L$(pwd)/../build_android/$CPU/lib -lc -lm -ldl" \ | |
\ | |
--disable-shared \ | |
--enable-static \ | |
--disable-doc \ | |
\ | |
--enable-debug \ | |
--enable-ffmpeg \ | |
--disable-ffprobe \ | |
\ | |
--enable-decoder=aac \ | |
--enable-libx264 \ | |
--extra-libs=-laacplus \ | |
--enable-libaacplus \ | |
\ | |
--disable-stripping | |
# make -j8 | |
# make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment