搭建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命令来更新代码

posted @ 2013-05-12 15:48  kevin.lee  阅读(1807)  评论(0编辑  收藏  举报