一、ffmpeg编译
ffmpeg 编译参数:
./configure --enable-gpl --disable-x86asm --enable-shared --enable-pic --enable-static
二、opencv编译
1、安装依赖库
sudo apt-get install build-essential
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
2、编译参数
cmake -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules ../
3、编译问题
fatal error: vgg_generated_120.i: No such file or directory
一些文件因为下载失败,导致编译失败,从以下链接下载这些文件,放到opensource\opencv_contrib\modules\xfeatures2d\src 目录下就可以了