使用MSYS和MinGW为Windows构建ffmpeg [英] Building ffmpeg for Windows with MSYS and MinGW
问题描述
我正在为这里。
./ configure --extra-cflags = - mno-cygwin -mms-bitfields--extra-ldflags = -Wl,-add-stdcall-alias--enable-memalign-hack --enable-shared --disable-static --target-os = mingw32
上述命令按照指示安装在 myconfig
文件中,当我运行 ./ myconfig
,将显示以下错误:
检测到Broken Shell。尝试替代品
尝试Shell bash
未知选项--extra-cflags = -mno-cygwin。
如链接中所建议的,我尝试过各种选项,但仍然无法成功。 >
我的环境是Win XP,具有:
- MinGW-5.1.6,
- bash-2.05b-MSYS
- MSYS-1.0.10,
- ffmpeg-0.5
编辑:
在上述命令中进行某些更改后通过参考 howto ,我能够成功运行 make 命令我在其各自的目录中找到了以下DLL。
- ffmpeg\libavcodec\avcodec-51.dll
- ffmpeg\libavformat\avformat-51.dll
- ffmpeg\libavutil\avutil-49.dll
但是我没有看到任何ffmpeg\ffmpeg.exe文件:(
可能出了什么问题? >
Ra miro的 FFmpeg for Windows 网站提供了更好的一步一步的说明,并有一个社区论坛,你可以问问题如果维基没有回答你的问题。
I am trying to build ffmpeg for windows (Xp - SP2) as given here.
./configure -–extra-cflags="-mno-cygwin -mms-bitfields" -–extra-ldflags="-Wl, -add-stdcall-alias" -–enable-memalign-hack -–enable-shared -–disable-static -–target-os=mingw32
The above command is placed in a myconfig
file as instructed and when i run ./myconfig
, the following error is displayed:
Broken Shell detected. Trying alternatives.
Trying Shell bash
Unknown option "-–extra-cflags=-mno-cygwin".
As suggested in the link i tried various options but still i was not able to succeed.
My environment is Win XP with:
- MinGW-5.1.6,
- bash-2.05b-MSYS,
- MSYS-1.0.10,
- ffmpeg-0.5
EDIT:
After certain changes in the above command by referring howto i was able to successfully run the make command and i found the following DLL's in their respective directory
- ffmpeg\libavcodec\avcodec-51.dll
- ffmpeg\libavformat\avformat-51.dll
- ffmpeg\libavutil\avutil-49.dll
But i didn't see any ffmpeg\ffmpeg.exe file :(
What could have gone wrong?
Ramiro's FFmpeg for Windows site gives much better step by step instructions, and has a community forum that you can ask questions on if the Wiki doesn't answer your question already.
这篇关于使用MSYS和MinGW为Windows构建ffmpeg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!