在linux4.4.0的内核下,需要首先安装glib-2.52.3和gtk+-3.22.18
相关依赖项有libmount-dev libffi6 libffi-dev libepoxy-dev libatk-bridge2.0-dev
1
[compiler] sudo apt-get install build-essential
[required] sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
[optional] sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
2
cd ~/
git clone
git clone
3
cd ~/opencv
mkdir build
cd build
4
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-master/modules ..
5
make -j7
6
sudo make install
7安装依赖驱动
sudo apt-get install libpython3.5-dev libpython3.5-stdlib python-numpy ccache libgtk-3-dev libgstreamer-plugins-base1.0-0 libgstreamer1.0-dev libgstreamer1.0-0-dbg gstreamer1.0-libav libavresample-dev libgphoto2-dev ffmpeg libopenblas-dev libatlas-base-dev libblas-dev liblapack-dev doxygen libjhdf5-jni
仍有不少缺失,尤其是gstreamer类的
安装xfeature2d 所需的资源可从链接和ownload.csdn.net/download/yelanggl/9929488出下载
stiching module需要用到cuda,编译时可将该模块删除。
阅读(1678) | 评论(0) | 转发(0) |