Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- NDK=/home/gajdot/android-ndk-r9b
- SYSROOT=$NDK/platforms/android-9/arch-arm/
- TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64
- function build_one
- {
- PKG_CONFIG_PATH=/home/gajdot/ffmpeg_build/lib/pkgconfig
- ./configure \
- --arch=arm \
- --target-os=linux \
- --enable-runtime-cpudetect \
- --prefix=$PREFIX \
- --enable-pic \
- --disable-shared \
- --enable-static \
- --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
- --sysroot=$SYSROOT \
- --extra-cflags="-Os -fpic $ADDI_CFLAGS -I/home/gajdot/ffmpeg_build/include" \
- --extra-ldflags="$ADDI_LDFLAGS -L/home/gajdot/ffmpeg_build/lib" \
- --enable-version3 \
- --enable-gpl \
- --enable-nonfree \
- --enable-yasm \
- --enable-decoders \
- --enable-encoders \
- --enable-muxers \
- --enable-demuxers \
- --enable-parsers \
- --enable-protocols \
- --enable-filters \
- --enable-avresample \
- --disable-libvorbis \
- --enable-libfdk_aac \
- --disable-indevs \
- --enable-indev=lavfi \
- --disable-outdevs \
- --enable-hwaccels \
- --enable-ffmpeg \
- --disable-ffplay \
- --disable-ffprobe \
- --disable-ffserver \
- --disable-network \
- --enable-libx264 \
- --enable-zlib \
- --enable-libmp3lame \
- --enable-muxer=md5 \
- $ADDITIONAL_CONFIGURE_FLAG
- make clean
- make
- make install
- }
- CPU=arm
- PREFIX=$(pwd)/android/$CPU
- ADDI_CFLAGS="-marm"
- build_one
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement