一、windows下编译
不推荐,主要是编译太慢。
二、linux下编译
我使用的ffmpeg版本是3.2.4,系统ubuntu 14.04,配置命令如下:
./configure --disable-static --enable-shared --enable-cross-compile --cross-prefix=i686-w64-mingw32- --target-os=mingw32 --arch=x86 --enable-gpl --enable-version3 --enable-runtime-cpudetect --prefix=/home/lfc/ffmpeg-win32/out --disable-avdevice --disable-avfilter
注:编译成static库也试过,make install时候提示莫名错误,而且vc下使用还得依赖一些gcc、mingw的库,所以放弃了。
后记
如果只需要使用ffmpeg,而不需要在上面增加自己的东西的话,可以直接使用别人编译好的:
posted on 2018-12-12 13:06
lfc 阅读(3417)
评论(0) 编辑 收藏 引用