在Windows 32上构建FFMPEG DLL的问题

发布于 2025-01-23 02:00:42 字数 814 浏览 3 评论 0原文

我正在尝试使用mingw32构建Windows 32的FFMPEG DLL文件。 在Eatch尝试,我设法获取了一些DLL文件,但是由于无法摆脱的Fiew依存关系,因此无法使用主题。

这是我使用的软件包:

pkg-config
diffutils
yasm
make
mingw-w64-i686-toolchain 

并且有呼叫配置脚本的呼叫:

./configure 
 --disable-doc\
 --disable-decoders\ 
 --enable-decoder=h264\
 --enable-cross-compile\ 
 --disable-programs\
 --disable-avdevice 
 --disable-swresample 
 --disable-postproc\
 --disable-avfilter\ 
 --disable-encoders\ 
 --target-os=mingw32\ 
 --disable-static\ 
 --enable-shared\
 --shlibdir=SHARED_LIBS\
 --cxx=gcc --extra-libs='-lpthread -lm'\ 
 --disable-iconv\
 --extra-ldflags="-static-libstdc++ -static-libgcc"

这些是依存关系:

libwinpthrad-1.dll
zlib1.dll
libbz2-1.dll

我不知道我的配置还是我的mingw设置是烦恼的 谢谢您的帮助。

Manou-法国新手

I'm trying to build ffmpeg dll files for windows 32 with mingw32.
at eatch try I manage to get some dll files but can't use theme because of a fiew dependancys that I can't get rid of.

Here is the packages that I use:

pkg-config
diffutils
yasm
make
mingw-w64-i686-toolchain 

and there is the call to the configure script:

./configure 
 --disable-doc\
 --disable-decoders\ 
 --enable-decoder=h264\
 --enable-cross-compile\ 
 --disable-programs\
 --disable-avdevice 
 --disable-swresample 
 --disable-postproc\
 --disable-avfilter\ 
 --disable-encoders\ 
 --target-os=mingw32\ 
 --disable-static\ 
 --enable-shared\
 --shlibdir=SHARED_LIBS\
 --cxx=gcc --extra-libs='-lpthread -lm'\ 
 --disable-iconv\
 --extra-ldflags="-static-libstdc++ -static-libgcc"

those are the dependancys :

libwinpthrad-1.dll
zlib1.dll
libbz2-1.dll

I don't know if my configuration or my mingw setup is wrond
thank you for the help.

Manou - french newbie

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

天赋异禀 2025-01-30 02:00:42

最终为我提供了良好的选择:

 --disable-doc
 --disable-decoders
 --enable-decoder=h264
 --enable-decoder=hevc
 --enable-cross-compile
 --disable-programs
 --disable-avdevice
 --disable-swresample
 --disable-postproc
 --disable-avfilter
 --disable-encoders
 --target-os=mingw32
 --enable-shared
 --shlibdir=SHARED_LIBS
 --extra-ldflags="-static"

Finally work for me with the folowing options:

 --disable-doc
 --disable-decoders
 --enable-decoder=h264
 --enable-decoder=hevc
 --enable-cross-compile
 --disable-programs
 --disable-avdevice
 --disable-swresample
 --disable-postproc
 --disable-avfilter
 --disable-encoders
 --target-os=mingw32
 --enable-shared
 --shlibdir=SHARED_LIBS
 --extra-ldflags="-static"
秋心╮凉 2025-01-30 02:00:42

FFMPEG是一个相当复杂的库,具有多个依赖关系。

您确实需要拥有所有依赖性,甚至在您尝试开始建造之前。

When I build ffmpeg 5.0.1 for example I notice at least the following dependencies:

  • zlib
  • libbz2
  • libdl
  • freetype2
  • libgsm
  • lame
  • libogg
  • libvorbis
  • libtheora
  • opencore-amr
  • librtmp
  • schroedinger
  • libspeex
  • x264
  • libxavs
  • libvpx
  • frei0r
  • xvidcore
  • celt

As for winpthread, that one comes with MinGW-w64,因此,您应该已经拥有了。

ffmpeg is quite a complex library with multiple dependencies.

You really need to have all the dependancies before you even try to start building.

When I build ffmpeg 5.0.1 for example I notice at least the following dependencies:

  • zlib
  • libbz2
  • libdl
  • freetype2
  • libgsm
  • lame
  • libogg
  • libvorbis
  • libtheora
  • opencore-amr
  • librtmp
  • schroedinger
  • libspeex
  • x264
  • libxavs
  • libvpx
  • frei0r
  • xvidcore
  • celt

As for winpthread, that one comes with MinGW-w64, so you should already have that.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文