FFMPEG 构建错误
我一直在尝试构建 ffmpeg 的 LGPL 副本,并且尝试了各种不同的配置方法。我从 ffmpeg 网站下载了最新的源代码并使用了以下简单的配置
./configure --enable-memalign-hack --enable-pthreads --enable-shared --disable-static
但是每次我尝试构建它时我只会得到“avdevice-53.dll”和这样的错误消息
install: cannot stat 'libavdevice/avdevice.lib' : No such file or directory
make: *** [install-libavdevice-shared] Error 1
我做错了什么?
I've been trying to build a LGPL copy of ffmpeg and I have tried various different configure methods. I downloaded the latest source from the ffmpeg site and used the following simple configure
./configure --enable-memalign-hack --enable-pthreads --enable-shared --disable-static
However every time I try to build it I only end up with "avdevice-53.dll" and the error message like this
install: cannot stat 'libavdevice/avdevice.lib' : No such file or directory
make: *** [install-libavdevice-shared] Error 1
What am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为忽略该错误应该是安全的?您是否检查了相应文件夹中的源文件夹中是否有dll文件?
I think it should be safe to ignore that error? Have you checked the source folder in the corresponding folders for the dll files?
我用葡萄酒解决了这个问题。如果您需要在 Linux 上为 Visual Studio 目标构建 ffmpeg,这会很方便。
首先,您需要从 Visual Studio 安装路径获取 lib.exe、link.exe、mspdb100.dll 和 msvcr100.dll 文件。
将 lib.exe 重命名为 lib_vs.exe。并创建一个脚本文件 lib.exe 调用 lib_vs.exe:
将所有这些文件放入您的构建目录中并设置 PATH 能够找到它。
我分享我用来执行此操作的脚本:
I fix this problem with wine. This is handy if you need to build ffmpeg on Linux for Visual Studio target.
First, you need to get lib.exe, link.exe, mspdb100.dll and msvcr100.dll files form Visual Studio installation path.
Rename to lib.exe to lib_vs.exe. And create a script file lib.exe calling lib_vs.exe:
Put all these files in you're build directory and set PATH able to find it.
I share the script i use to do that: