Mac FFmpeg编译和解决nasm/yasm not found or too old错误

FFmpeg编译
下载代码:git clone https://git.ffmpeg.org/ffmpeg.git
然后输入命令进行编译:找到下载的目录下,然后用命令进入这个文件夹下cd ffmpeg,然后输入./configure。
竟然没有编译过出现错误是
nasm/yasm not found or too old. Use --disable-x86asm for a crippled build. 

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.freenode.net. 
Include the log file "ffbuild/config.log" produced by configure as this will help 
solve the problem. 

分析:yasm是汇编编译器,ffmpeg为了提高效率使用了汇编指令,如MMX和SSE等。所以系统中未安装yasm时,就会报上面错误。

解决错误:安装yasm编译器。安装方法如下:

1)下载:[yasm的下载链接](http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz)

2)解压:把下载下来的压缩包进行解压

3)切换路径: cd yasm-1.3.0

4)执行配置: ./configure

5)编译:make

6)安装:make install(提示:Permission denied,就执行sudo make install)

  • 11
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值