x264无法使用MacPorts构建

时间:2015-01-01 22:53:01

标签: ffmpeg macports x264

使用MacPorts安装FFmpeg,我遇到了依赖x264的错误:

...
--->  Computing dependencies for ffmpeg
--->  Dependencies to be installed: x264
--->  Configuring x264
Error: Failed to configure x264, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_x264/x264/work/x264-956c8d8/config.log
Error: org.macports.configure for port x264 returned: configure failure: command execution failed
Error: Failed to install x264
...

...即使在更新和升级其他所有内容后仍然存在。

1 个答案:

答案 0 :(得分:2)

..并且通过功能(但可能不推荐)黑客来回答我自己的问题,我按照上面的错误消息的建议咨询了config.log。根据日志,问题是clang不支持-falign-loops选项。在注释掉包含" falign-loops"的两个配置行后,x264成功构建。配置文件在这里找到:

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_x264/x264/work/x264-956c8d8/configure

在评论出两条有问题的行后,port install x264完美无缺。