我正在尝试使用 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/