cd ios
大致流程以下 node
这里若是出现ios
xcrun -sdk iphoneos clang is unable to create an executable file.
C compiler test failed.xcode
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.orgmailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.app
./libavutil/arm/asm.S:50:9:error: unknown directiveiphone
.archui
解决方法:
最新的 Xcode 已经弱化了对 32 位的支持,
在 compile-ffmpeg.sh
中删除armv7
,
修改如:FF_ALL_ARCHS_IOS8_SDK="arm64 i386 x86_64"
再从新执行出现错误的命令: ./compile-ffmpeg.sh all
便可。this
armv7
这是由于在编译SSl库的时候也须要初始化openssl库
解决方法:
在ios目录下初始化openssl
参考:
https://www.jianshu.com/p/2e5b9a4f3ce4
https://www.jianshu.com/p/1f06b27b3ac0