1下载源码
下载源码
https://github.com/opencv/opencv/releases/tag/3.4.9
下载扩展源码
https://github.com/opencv/opencv_contrib/releases/tag/3.4.9
2安装依赖
sudo apt-get update sudo apt-get install -y build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev sudo apt-get install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev sudo apt-get install -y python2.7-dev python3.6-dev python-dev python-numpy python3-numpy python3 -m pip install --upgrade pip sudo apt-get install -y libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev #sudo apt-get install -y libjasper1 libjasper-dev sudo apt-get install -y libdc1394-22-dev sudo apt-get install -y libv4l-dev v4l-utils qv4l2 sudo apt-get install -y curl #后面用到 sudo apt-get install -y cmake-gui
3-1 扩展库位置
3-2 cuda 一把不选
3-3 sifi点
3-4 java 不需要
3-5 python 默认吧
3-6 集成库 不要
3-7安装路径 多版本共存问题
https://blog.csdn.net/xiao_qs/article/details/126650329
一般是/usr/local/lib下,比如我的opencv4.4.5, 因为安装的时候如果不指定prefix路径,那么在make install 时会将所有的 .so 文件安装在 /usr/local/lib 下,所有的头文件安装在/usr/include下。
修改
4 生成
成功后
5 编译
sudo make -j8
安装
sudo make install
标签:版本,get,sudo,dev,apt,install,opencv3.4,ubuntu20,安装 From: https://www.cnblogs.com/gooutlook/p/17723350.html