欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

fedora源码安装opencv3.4.1

程序员文章站 2024-01-23 18:25:52
...

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

 

相关标签: 嵌入式开发