下载资源
官网下载完NDK14b 和 FFmpeg
下载之后,更改FFmpeg 目录下configure问价如下:
SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)'
LIB_INSTALL_EXTRA_CMD='$$(RANLIB)"$(LIBDIR)/$(LIBNAME)"'
SLIB_INSTALL_NAME='$(SLIBNAME_WITH_MAJOR)'
SLIB_INSTALL_LINKS='$(SLIBNAME)'
执行脚本
要把NDK路径,跟换称自己的路径
#!/bin/bash
cd FFmpeg-release-3.4
export TMPDIR=/Users/xxx/Documents/FFmpegProject/tempdirforffmpeg
export NDK=/Users/xxx/Documents/NDK/android-ndk-r14b
export SYSROOT=$NDK/platforms/android-24/arch-arm/
export TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64
export CPU=arm
export PREFIX=/Users/xxx/Documents/FFmpegProject/outputso/arm/
ADDI_CFLAGS="-marm"
function build_one
{
./configure \
--prefix=$PREFIX \
--enable-shared \
--