在 Windows 上构建 ffmpeg
我有 ffmpeg 的源代码,想在我的 win7 中构建它。我的机器上安装了 minGW。我从此链接找到了分步说明:
http://www.gooli.org/blog/building-ffmpeg-for-windows-with-msys-and-mingw/
链接“下载 MSYS 的更新版 bash”未打开。显示没有找到该文件。当我尝试按照网站中解释的方式构建程序时,它显示错误:
未知选项“–extra-cflags=-mno-cygwin”。 请参阅 ./configure –help 了解可用选项。 ./myconfig: –extra-ldflags=-Wl, –add-stdcall-alias: 找不到命令 ./myconfig: –target-os=mingw32: command not found
从此处发布的类似问题中,我点击了链接 http ://ffmpeg.arrozcru.org/ 但从该网站下载的静态版本已损坏。请帮忙。
I've the source code of ffmpeg and would like to build it in my win7. I've minGW installed on my machine. I found a step by step instruction from this link:
http://www.gooli.org/blog/building-ffmpeg-for-windows-with-msys-and-mingw/
The link 'Download updated bash for MSYS' did not follow. It showed the file is not found. When I try to build the program the way explained in the site, it shows an error:
Unknown option “–extra-cflags=-mno-cygwin”.
See ./configure –help for available options.
./myconfig: –extra-ldflags=-Wl,–add-stdcall-alias: command not found
./myconfig: –target-os=mingw32: command not found
From a similar question posted here, I followed the link http://ffmpeg.arrozcru.org/ but the static build downloaded from the site was corrupted. Pls help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,这些说明确实很旧,请更好地参考旧版本的 mingw/msys
,新说明(视觉演练)可在 http://ingar.satgnu.net/devenv/mingw32/base.html
你安装 msys,而不是 bash,它带有 MinGW shell、/bin/sh.exe 和你用它来驱动配置,就像 ingar 对一大堆其他项目所做的那样,
通常的魔法咒语是
yeah, those instructions are really old, refer to old version of mingw/msys
better, new instructions (visual walk through ) available at http://ingar.satgnu.net/devenv/mingw32/base.html
you install msys, not bash, it comes with MinGW shell, /bin/sh.exe, and you use it to drive configure, just like ingar does with a whole bunch of other projects above
the usual magic incantation is