ffmpeg compile

来源:互联网 发布:金手指炒股软件下载 编辑:程序博客网 时间:2024/05/21 22:44

./configure --enable-gpl --enable-nonfree --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-version3 --disable-optimizations --disable-asm


ERROR: libfaac not found

ERROR: libmp3lame >= 3.98.3 not found

ERROR: libopencore_amrnb not found


If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.



--enable-ffplay  -- 编译ffplay


二交叉编译

1
apt-get install gcc-mingw-w64


2. sudo apt-get install mingw-w64-tools


3.


 ./configure --arch=x86 --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pkg-config --disable-doc
make


./configure --arch=x86 --enable-cross-compile --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-nonfree --disable-static --enable-shared --disable-doc --prefix=/home/tianyu/Projects/ffmpeg_build/opensource/result/ffmpeg --extra-cflags="-I/home/tianyu/Projects/ffmpeg_build/opensource/result/include --extra-ldflags="-L/home/tianyu/Projects/ffmpeg_build/opensource/result/lib


Projects/ffmpeg_build/opensource/result


 ./configure --arch=x86 --enable-cross-compile --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-nonfree --disable-doc --enable-static --prefix=/home/tianyu/Projects/ffmpeg_build/opensource/result/ffmpeg --extra-cflags=-I/home/tianyu/Projects/ffmpeg_build/opensource/result/include --extra-ldflags=-L/home/tianyu/Projects/ffmpeg_build/opensource/result/lib




 ./configure --disable-static --enable-shared --enable-version3 --enable-gpl --enable-nonfree --disable-pthreads --enable-w32threads --enable-runtime-cpudetect --enable-memalign-hack --enable-libfdk-aac --enable-libx264 --enable-zlib --enable-cross-compile --target-os=mingw32 --arch=x86 --prefix=/home/tianyu/Projects/ffmpeg_build/opensdk/ffmpeg --cross-prefix=i686-w64-mingw32- --extra-cflags=-I/home/tianyu/Projects/ffmpeg_build/opensdk/include --extra-ldflags=-L/home/tianyu/Projects/ffmpeg_build/opensdk/lib




4.
./configure --enable-shared --enable-pic --disable-opencl --arch=x86 --enable-cross-compile --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pkg-config

0 0
原创粉丝点击