一.unknown directive .arch armv7-a
- 两个办法
- 在 compile-ffmpeg.sh 中删除 armv7,修改为:
FF_ALL_ARCHS_IOS8_SDK="arm64 i386 x86_64"
- 禁用汇编,将tools/do-compile-ffmpeg.sh文件里的armv7架构的情况,改为:
elif [ "$FF_ARCH" = "armv7" ]; then
FF_BUILD_NAME="ffmpeg-armv7"
FF_BUILD_NAME_OPENSSL=openssl-armv7
FF_XCRUN_OSVERSION="-miphoneos-version-min=6.0"
FF_XCODE_BITCODE="-fembed-bitcode"
FFMPEG_CFG_FLAGS="$FFMPEG_CFG_FLAGS --enable-pic --disable-asm"