fedora源码安装opencv3.4.1

被刻印的时光 ゝ 提交于 2019-12-27 13:58:12

1,安装依赖:

sudo dnf install gcc gcc-c++ ncurses-devel cmake

sudo dnf install gtk2 gtk2-devel gtk2-devel-docs 

sudo dnf install libgnome-devel gnome-devel-docs 

sudo dnf install zlib glib atk pango gdk-pixbuf2 gdk-pixbuf2-devel

sudo dnf install gtk+ gtk2-devel pkgconfig python-devel python-numpydoc 

sudo dnf install libavc1394 libavc1394-devel libdc1394 libdc1394-devel jasper-devel 

sudo dnf install ffmpeg ffmpeg-devel openjpeg-devel libjpeg-devel libpng-devel libtiff-devel

2,下载opencv3.4.1安装包:

官网下载巨慢,附一个自己上传的链接传送门

3,安装opencv3.4.1

tar -xzvf OpenCV3.4.1.tar.gz
cd opencv-3.4.1/
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -DINSTALL_CREATE_DISTRIB=ON -DWITH_LIBV4L=ON ..
make -j8
make install

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!