使用MingGW-w64 Build Script 3.6.7搭建ffmpeg编译环境
2024-09-05 08:45:50
在Linux下编译的Windows版本ffmpeg没有其他的依赖库 使用的是centos
1.脚本下载
wget http://zeranoe.com/scripts/mingw_w64_build/mingw-w64-build-3.6.7
2.执行脚本
chmod +x mingw-w64-build-3.6.
./mingw-w64-build-3.6. --build-type=win32 --disable-shared
显示makeinfo is needed to compile binutils and will need be installed. On Debian/Ubuntu it is part of the "texinfo" software package.
运行命令进行安装
yum -y install texinfo
4.继续运行
./mingw-w64-build-3.6.7 --build-type=win32 --disable-shared
Could not find the following packages: xz cvs yasm svn git flex bison
Install the missing packages before running this script.
直接安装这些缺少的库即可
yum -y install xz cvs flex bison
yasm需要手动编译安装
tar -xf yasm-1.3..tar.gz
cd yasm-1.3
./configure
make
make install
cd ..
rm -rf yasm-1.3*
svn安装
yum -y install subversion
git安装
到网站下载源代码,执行脚本
#!/bin/bash
yum -y install zlib-devel openssl-devel cpio expat-devel gettext-deve
tar xvzf git-2.10..tar.gz
cd git-2.10.
./configure
make
make install
cd ..
rm -rf git-2.10.*
继续运行
./mingw-w64-build-3.6. --build-type=win32 --disable-shared
出现 选择n即可 Would you like to manually choose which package versions to build into MinGW-w64 yourself, and configure the build? [y/n]:
最新文章
- Spark笔记:RDD基本操作(上)
- python基础知识(二)
- CSS hack方式一览【转】
- python套接字基本使用
- java的事务处理
- POJ 3281:Dining(最大流)
- 【转载】chromium浏览器开发系列第一篇:如何获取最新chromium源码
- js基础第七天
- N.O.W,O.R,N.E.V.E.R--12days to LNOI2015
- css2如何设置全屏背景图片
- Random获得的随机数怎么样减少重复率
- [精华]Hadoop,HBase分布式集群和solr环境搭建
- Swing-JPopupMenu弹出菜单用法-入门
- EJB_开发消息驱动bean
- ubuntu root 设置
- (后端)mybatis中使用Java8的日期LocalDate、LocalDateTime
- STL之Queue容器
- in_array的三个参数
- Java Web(五) 监听器Listener
- P1507 NASA的食物计划