在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]:

最新文章

  1. Spark笔记:RDD基本操作(上)
  2. python基础知识(二)
  3. CSS hack方式一览【转】
  4. python套接字基本使用
  5. java的事务处理
  6. POJ 3281:Dining(最大流)
  7. 【转载】chromium浏览器开发系列第一篇:如何获取最新chromium源码
  8. js基础第七天
  9. N.O.W,O.R,N.E.V.E.R--12days to LNOI2015
  10. css2如何设置全屏背景图片
  11. Random获得的随机数怎么样减少重复率
  12. [精华]Hadoop,HBase分布式集群和solr环境搭建
  13. Swing-JPopupMenu弹出菜单用法-入门
  14. EJB_开发消息驱动bean
  15. ubuntu root 设置
  16. (后端)mybatis中使用Java8的日期LocalDate、LocalDateTime
  17. STL之Queue容器
  18. in_array的三个参数
  19. Java Web(五) 监听器Listener
  20. P1507 NASA的食物计划

热门文章

  1. npm学习(五)之使用package.json
  2. 2019-11-29-Roslyn-使用-Directory.Build.props-文件定义编译
  3. puppet之模板和类
  4. VMware 问题
  5. Vue项目使用域名访问配置
  6. maven pom文件标签含义
  7. springboot使用外部application.properties配置文件
  8. 数据结构——Bloom Filter
  9. C# 自定义类中括号取值 测试
  10. Redis实战(十四)Redis实现Session共享