linux - ffmpeg 与 libsoxr 解决依赖关系

标签 linux compilation ffmpeg dependencies

我正在尝试使用 libsoxr 编译 ffmpeg,所以我在调用 时使用标志 --enable-libsoxr。/配置。我已经安装了 libsoxr,并将 header 的位置添加到 PATH。但是,当我尝试编译它时出现错误:ERROR: libsoxr not found,并且在 config.log 中显示:

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

我认为 ./configure 没有使用 PATH 或其他东西......是否有另一种方法来指定 ffmpeg 的依赖关系?

最佳答案

您应该尝试添加 lib 路径:

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

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

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

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

然后您可以在搜索路径中对您的库进行符号链接(symbolic link)。

关于linux - ffmpeg 与 libsoxr 解决依赖关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21802353/

相关文章:

C++编译错误

Xcode,是否可以在构建时拦截和更改代码而不更新文件?如果是这样,怎么办?

asp.net-mvc - 可以编译 Razor View 吗?

FFmpeg 缩放和 concat 与动态高度

video - 如何比较 MPEG-7 视频签名签名

linux - 从shell中的json中提取特定元素的值

c++ - memcpy() 给我段错误

android - Android/Linux下如何检测which/dev/input/eventX是touchpad?

linux - Bash 命令 :(){ :|:& };: will spawn processes to kernel death. 你能解释一下语法吗?

android - 如何在 Android 中使用 ffmpeg 合并音频和视频文件?