【问题标题】:ffmpeg with libsoxr resolve dependeciesffmpeg 与 libsoxr 解决依赖关系
【发布时间】:2014-02-15 19:16:37
【问题描述】:

我正在尝试用libsoxr 编译ffmpeg,所以我在调用./configure 时使用标志--enable-libsoxr。我已经安装了libsoxr,并将标头的位置添加到PATH。然而,当我尝试编译它时,我得到一个错误:ERROR: libsoxr not found,在config.log 中它说:

fatal error: soxr.h: No such file or directory
 #include <soxr.h>

我认为./configure 没有使用PATH 之类的...还有其他方法可以为ffmpeg 指定依赖关系吗?

【问题讨论】:

    标签: linux compilation ffmpeg dependencies


    【解决方案1】:

    你应该尝试添加 lib 路径:

    ./configure ... --sysinclude=/path/to/sox
    

    另一种解决方案是找到 ./configure 搜索此库的位置。

    为了确定这一点,一个解决方案是使用 strace 这样的:

    strace -f -s 1000 -e trace=file ./configure --enable-libsoxr 2>&1 | grep sox
    

    然后您可以在搜索路径中符号链接您的库。

    【讨论】:

    • @Jelly:添加了 strace 解决方案。
    猜你喜欢
    • 2014-12-18
    • 1970-01-01
    • 1970-01-01
    • 2017-10-29
    • 2016-02-16
    • 2017-02-20
    • 1970-01-01
    相关资源
    最近更新 更多