Win10 64位下用minGW编译64位FFMpeg
2017-11-12 16:54
309 查看
不久前电脑装了64位系统WIN10,今天来试一下编译64位FFMpeg.
1、下载.mingw-w64-install.exe和msys工具包(msys+7za+wget+svn+git+mercurial+cvs-rev12.7z)。
2、双击下载的mingw-w64-install.exe安装mingw64,在选择版本界面中要选择x86_64.这样才是64位系统。我安装到D:\mingw-w64下。
3、安装msys,解压msys+7za+wget+svn+git+mercurial+cvs-rev12.7z到D:\mingw-w64\msys目录;
4、配置minGW和msys。
进入msys目录,双击msys.bat.创建mingw目录。
进入etc目录,编辑fstab文件,在文件中添加一行 d:/mingw-w64/x86_64-7.1.0-win32-seh-rt_v5-rev2/mingw64
/mingw/.保存退出。
关闭窗口。双击msys.bat,输入gcc -v,不出现错误就说明编译环境可用了。
5、下载最新版本的x264和SDL并编译。
x264编译安装命令如下:
./configure --prefix=/mingw --host=x86_64-w64-mingw32 --enable-static --enable-shared --disable-asm;make;make install
SDL 编译安装命令如下:
./configure --prefix=/mingw --host=x86_64-w64-mingw32 ;make;make install
6、下载FFMpeg.解压到/home/FFMpeg下。
./configure --prefix=/mingw --enable-gpl --enable-nonfree --enable-postproc --enable-avfilter --enable-runtime-cpudet
ect --disable-x86asm --enable-libx264 --disable-debug --enable-shared --arch=x86_64 --host-os=win64 --extra-cflags=-I/m
ingw/include --extra-ldflags=-L/mingw/lib
make;
make install
检查:
1、下载.mingw-w64-install.exe和msys工具包(msys+7za+wget+svn+git+mercurial+cvs-rev12.7z)。
2、双击下载的mingw-w64-install.exe安装mingw64,在选择版本界面中要选择x86_64.这样才是64位系统。我安装到D:\mingw-w64下。
3、安装msys,解压msys+7za+wget+svn+git+mercurial+cvs-rev12.7z到D:\mingw-w64\msys目录;
4、配置minGW和msys。
进入msys目录,双击msys.bat.创建mingw目录。
进入etc目录,编辑fstab文件,在文件中添加一行 d:/mingw-w64/x86_64-7.1.0-win32-seh-rt_v5-rev2/mingw64
/mingw/.保存退出。
关闭窗口。双击msys.bat,输入gcc -v,不出现错误就说明编译环境可用了。
5、下载最新版本的x264和SDL并编译。
x264编译安装命令如下:
./configure --prefix=/mingw --host=x86_64-w64-mingw32 --enable-static --enable-shared --disable-asm;make;make install
SDL 编译安装命令如下:
./configure --prefix=/mingw --host=x86_64-w64-mingw32 ;make;make install
6、下载FFMpeg.解压到/home/FFMpeg下。
./configure --prefix=/mingw --enable-gpl --enable-nonfree --enable-postproc --enable-avfilter --enable-runtime-cpudet
ect --disable-x86asm --enable-libx264 --disable-debug --enable-shared --arch=x86_64 --host-os=win64 --extra-cflags=-I/m
ingw/include --extra-ldflags=-L/mingw/lib
make;
make install
检查:
相关文章推荐
- Win7 64位 VS2015及MinGW环境编译FFMPEG-20160326
- 记win10下编译64位ffmpeg
- Win10-64位系统安装xgboost(使用MinGW编译)
- Win10 64位 Qt MinGW5.9.1版本编译VTK 8.1.0
- MinGW下简单编译FFmpeg
- windows下使用MinGW+msys编译ffmpeg
- MinGW下简单编译FFmpeg 分类: ffmpeg-SDL-VLC-Live555 2013-07-22 16:30 378人阅读 评论(0) 收藏
- MinGW下简单编译FFmpeg
- windows下使用MinGW+msys编译ffmpeg
- windows下使用MinGW+msys编译ffmpeg
- Win10 64位系统下VS2015编译Geant4 10.2 + QT 5.6的过程小结(转载自天涯沦落人的新浪博客)
- iOS 编译64位FFMPEG
- Windows下使用MinGW+msys编译FFmpeg错误
- vs2012 MinGW编译ffmpeg 出现libavdevice/avdevice.c(38) : error C2059: 语法错误:“.”
- ffmpeg和x264在mingw下编译
- windows下使用MinGW+msys编译ffmpeg
- Windows 系统下使用 MinGW + MSYS + GCC 编译 FFMPEG
- FFmpeg在windows下的编译,搭建mingw+msys环境,含mingw+msys下载 [转载,有改动]
- windows下使用MinGW+msys编译ffmpeg
- mingw编译ffmpeg