【问题标题】:x264 fails to build using MacPortsx264 无法使用 MacPorts 构建
【发布时间】:2015-01-03 01:36:12
【问题描述】:

使用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
...

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

【问题讨论】:

    标签: ffmpeg macports x264


    【解决方案1】:

    ..为了解决我自己的问题,使用功能性(但可能不推荐)hack,我咨询了config.log,如上面的错误消息所建议的那样。根据日志,问题在于 clang 不支持 -falign-loops 选项。 x264 在注释掉包含“falign-loops”的两个配置行后成功构建。配置文件在这里找到:

    /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 完美运行。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-02-07
      • 2012-12-12
      • 1970-01-01
      • 2017-11-18
      • 2011-10-12
      • 1970-01-01
      • 1970-01-01
      • 2014-05-30
      相关资源
      最近更新 更多