Ubuntu + MinGW编译ffmpeg

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

你可能感兴趣的:(杂项)