集成ijkplayer报错
./libavutil/arm/asm.S:50:9: error: unknown directive
.arch armv7-a
^
make: *** [libavcodec/arm/aacpsdsp_neon.o] Error 1
make: *** Waiting for unfinished jobs....
遇到上面问题,有2种办法
1、在compile-ffmpeg.sh文件里面删除armv7,改成
FF_ALL_ARCHS_IOS8_SDK="arm64 i386 x86_64",再进行重新编辑
2、将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"
重点是改最后一句话 --enable-pic --disable-asm