Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # There are a few ways to build this using the NDK. Using version r5b here as it introduces
- # better support for standalone building, so we can use FFMPEG's configure and make and a
- # minimal Android.mk to pull it all together
- # should point to where your NDK is
- NDK=~/android-ndk-r5b
- # get ffmpeg
- git clone git://git.ffmpeg.org/ffmpeg.git
- cd ffmpeg
- # build a standalone toolchain - you could install this to somewhere more permanent
- $NDK/build/tools/make-standalone-toolchain.sh --install-dir=/tmp/android/toolchain
- export PATH=$PATH:$NDK:/tmp/android/toolchain/bin
- ./configure --enable-cross-compile \
- --arch=arm5te \
- --enable-armv5te \
- --target-os=linux \
- --disable-stripping \
- --disable-neon \
- --enable-version3 \
- --disable-shared \
- --enable-static \
- --enable-gpl \
- --enable-memalign-hack \
- --cc=arm-linux-androideabi-gcc \
- --ld=arm-linux-androideabi-ld \
- --extra-cflags="-fPIC -DANDROID -D__thumb__ -mthumb" \
- --disable-ffmpeg \
- --disable-ffplay \
- --disable-ffprobe \
- --disable-ffserver \
- --disable-network \
- --disable-mpegaudio-hp \
- --disable-avdevice \
- --enable-zlib
- # make, and wait
- make
Add Comment
Please, Sign In to add comment