搭建Mingw64环境并使用git管理ffmpeg

mingw64工具链:

http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/sezero_4.5_20111101/mingw-w32-bin_i686-mingw_20111101_sezero.zip/download

1. 解决git下载后common.mak138错误:(参考:http://blog.csdn.net/tttyd/article/details/8824345)

git config --global core.autocrlf false
#然后运行下面的命令删除ffmpeg代码,并重新获取一下即可
git rm --cached -r .
git reset --hard

2.解决atom.c的问题:libavutil/atomic.c:101:2: error: #error "Threading is enabled, but there is no implementation of atomic operations available"

在配置的时候加上 --cpu=i686 或者使用mingw64代替Mingw来编译ffmpeg

参考:http://comments.gmane.org/gmane.comp.video.ffmpeg.devel/161098

3.使用git pull命令来更新代码

作者:ohmytime
出处:http://www.cnblogs.com/ohmytime/
若标题中有“转载”字样,则本文版权归原作者所有。若无转载字样,本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

原文地址:https://www.cnblogs.com/ohmytime/p/3074048.html