以前编译过FFmpeg4.3.1,会生成FFmpeg-iOS,文件夹,FFmpeg新版本5.0出来之后,打算编译一个iOS-FFmpeg5.0的版本
按照以前的做法,运行脚本
./build-ffmpeg.sh
arm64运行完了正常结果到了ARMv7就一直报错,报的下面这个错误
building armv7...
xcrun -sdk iphoneos clang is unable to create an executable file.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
网上搜了好多都是说这个问题,按照这个来操作我的是没有报错的,我就确定不是这个原因了
,后面看到报错日志这句话,Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.然后去到scratch/armv7/ffbuild文件夹里面看config.log日志发现,画红框的地方是重点,以为FFmpeg5.0以上要求iOS13,然后armv7架构支持的最高iOS系统是iOS10.0,一直报错,所以看日志最终找到了错误,所以FFmpeg5.0是没法编译armv7架构的了