FFMPEG 构建错误

发布于 2024-12-27 01:34:39 字数 407 浏览 4 评论 0原文

我一直在尝试构建 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

明媚如初 2025-01-03 01:34:39

我认为忽略该错误应该是安全的?您是否检查了相应文件夹中的源文件夹中是否有dll文件?

 e.g. avcodec.dll - source folder/libavcodec

I think it should be safe to ignore that error? Have you checked the source folder in the corresponding folders for the dll files?

 e.g. avcodec.dll - source folder/libavcodec
刘备忘录 2025-01-03 01:34:39

我用葡萄酒解决了这个问题。如果您需要在 Linux 上为 Visual Studio 目标构建 ffmpeg,这会很方便。

首先,您需要从 Visual Studio 安装路径获取 lib.exe、link.exe、mspdb100.dll 和 msvcr100.dll 文件。

将 lib.exe 重命名为 lib_vs.exe。并创建一个脚本文件 lib.exe 调用 lib_vs.exe:

#!/bin/bash
wine lib_vs.exe

将所有这些文件放入您的构建目录中并设置 PATH 能够找到它。

我分享我用来执行此操作的脚本:

#!/bin/bash
(
    export PATH=.:$PATH
    rm -rf build
    mkdir build
    cd build
    cp ../lib.exe .
    cp ../lib_vs.exe .
    cp ../link.exe .
    cp ../ms*.dll .
    ../src/configure --enable-memalign-hack --arch=x86 --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --enable-shared --prefix=../release --pkg-config=pkg-config
    make && make install
    cd ..
)

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:

#!/bin/bash
wine 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:

#!/bin/bash
(
    export PATH=.:$PATH
    rm -rf build
    mkdir build
    cd build
    cp ../lib.exe .
    cp ../lib_vs.exe .
    cp ../link.exe .
    cp ../ms*.dll .
    ../src/configure --enable-memalign-hack --arch=x86 --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --enable-shared --prefix=../release --pkg-config=pkg-config
    make && make install
    cd ..
)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文