您的位置:首页 > 其它

Ubuntu + MinGW编译ffmpeg

2014-07-23 14:47 417 查看
1. sudo apt-get install pax cvs flex bison texinfo

2. wget http://zeranoe.com/scripts/mingw_w64_build/mingw-w64-build-3.6.0
3. ./mingw-w64-build-3.6.0

4. generate set_compiler.sh, content is

#!/bin/sh

PREFIX=i686-w64-mingw32

export CC=$PREFIX-gcc

export CXX=$PREFIX-g++

export CPP=$PREFIX-cpp

export RANLIB=$PREFIX-ranlib

export PATH="/home/alex/ffmpeg_windows/mingw-w64-i686/bin:$PATH"

exec "$@"

5. wget http://www.ffmpeg.org/releases/ffmpeg-2.2.3.tar.bz2
6. tar zxvf ffmpeg-2.2.3.tar.bz2 && cd ffmpeg-2.2.3

7. ./configure --enable-memalign-hack --arch=x86 --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pkg-config --enable-static --enable-shared --enable-gpl --enable-nonfree
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: