【问题标题】:building libav 12.3 using cygwin使用 cygwin 构建 libav 12.3
【发布时间】:2020-07-20 16:30:43
【问题描述】:

我正在尝试在 Windows 10 上使用 cygwin 从 https://libav.org/download/ 构建 libav 12.3。libav.org 网站上有一些文档:https://libav.org/documentation/platform.html#Compilation-under-Cygwin 但它已经过时了。

我想知道我需要安装哪些cygwin包。例如网站指定texi2html,我在任何地方都找不到。没有列出其他库,例如 yasm。

还缺少某种数学库。目前,我的编译失败了:

libavfilter/af_compand.c:在函数“config_output”中: libavfilter/af_compand.c:343:43: error: ‘M_LN10’ undeclared (first use in this >function);你的意思是“_M_LN2”吗? 双半径 = s->curve_dB * M_LN10 / 20.0; ^~~~~~ _M_LN2

【问题讨论】:

    标签: cygwin libav


    【解决方案1】:

    texi2html 是一个 cygwin 包。

    $ cygcheck -p usr/bin/texi2html
    Found 2 matches for usr/bin/texi2html
    texi2html-1.82-10 - texi2html: A highly customizable texinfo to HTML and other formats translator (installed binaries and support files)
    texi2html-1.82-11 - texi2html: A highly customizable texinfo to HTML and other formats translator (installed binaries and support files)
    

    要安装它,您需要遵循 https://cygwin.com/cygwin-ug-net/setup-net.html#setup-packages

    M_LN10 在“/usr/include/math.h”中定义

    $ cygcheck -p usr/include/math.h
    Found 6 matches for usr/include/math.h
    cygwin-devel-2.10.0-1 - cygwin-devel: Core development files
    cygwin-devel-2.11.0-0.2 - cygwin-devel: Core development files
    cygwin-devel-2.9.0-3 - cygwin-devel: Core development files
    ..
    

    所以您需要安装包含标准 cygwin 头文件的 cygwin-devel 包。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-04-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-06
      • 2012-03-15
      相关资源
      最近更新 更多