虚拟机安装 Ubuntu,搭建 OpenCV 与 OpenCV_Contrib 环境

Ubuntu+Cmake+OpenCV+OpenCV_contrib+Clion

//  看了很多大大写的安装方法,综合了一些可能遇到的问题,外加一些后期的处理,整理成一篇记录学习。

 

环境搭建基本步骤

  1. 下载VMW虚拟机破解版
  2. 下载ubuntu镜像
  3. 搭建新的虚拟机ubuntu
  4. 配置ubuntu环境
  5. 安装Cmake
  6. 下载OpenCV以及相对应版本的OpenCV_contrib
  7. 搭建OpenCV的build文件
  8. 安装OpenCV
  9. 安装并破解Clion

//  主要的安装步骤可以参考下述博客,Avir 推荐安装 Ubuntu18以上的版本。版本不一,但是安装步骤基本一致。

主要安装步骤参考文献:

https://blog.csdn.net/weixin_43159148/article/details/83002212?utm_source=app&app_version=4.5.2

PS:Avir 建议所有的 vim 指令换成 gedit 操作比较简单

//  另外贴出其他大大写的博客,如果出现安装问题,可进行参考。

参考文献1:

https://blog.csdn.net/xiangxianghehe/article/details/78780269?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522162291056116780274170486%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=162291056116780274170486&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_v2~rank_v29-2-78780269.nonecase&utm_term=ubuntu+openCV++contrib&spm=1018.2226.3001.4450

参考文献2:

https://blog.csdn.net/public669/article/details/99044895?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522162290933716780271563756%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=162290933716780271563756&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~sobaiduend~default-1-99044895.nonecase&utm_term=ubuntu+openCV+&spm=1018.2226.3001.4450

声明:资源主要来源:CSDN + 百度

如有错误请指正

//  可能遇到的其他问题:

虚拟机下Ubuntu屏幕自适应:

https://blog.csdn.net/qq447352851/article/details/112907729?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522162191591716780269884247%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=162191591716780269884247&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_v2~times_rank-1-112907729.nonecase&utm_term=ubuntu%E5%B1%8F%E5%B9%95%E8%87%AA%E9%80%82%E5%BA%94&spm=1018.2226.3001.4450

Ubuntu主题切换:

https://blog.csdn.net/qq_22186119/article/details/73518747?ops_request_misc=&request_id=&biz_id=102&utm_term=ubuntu%E4%B8%BB%E9%A2%98&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-3-.nonecase&spm=1018.2226.3001.4187

//  有时候可能遇到虚拟机中 Ubuntu(16.04) 更新后打不开,黑屏的情况,关闭自动更新即可

禁止Ubuntu自动升级:

https://blog.csdn.net/davidhzq/article/details/102651588

Clion安装与运行:

https://blog.csdn.net/u010925447/article/details/73251780/?ops_request_misc=&request_id=&biz_id=102&utm_term=ubuntu%20clion&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-0-.pc_search_result_before_js&spm=1018.2226.3001.4187

//  关于各种编译器万能头 #include <bits/stdc++.h> 的添加方法基本一致 一下给出VS的万能头添加方法以供参考

Clion C++万能头文件:

https://blog.csdn.net/weixin_45843366/article/details/116227797

Clion字体调整:

https://blog.csdn.net/u013171226/article/details/107901161?ops_request_misc=&request_id=&biz_id=102&utm_term=clion%E6%94%BE%E5%A4%A7&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~sobaiduweb~default-0-.nonecase&spm=1018.2226.3001.4450

Clion个性设置:

https://blog.csdn.net/weixin_44694952/article/details/105442005?ops_request_misc=&request_id=&biz_id=102&utm_term=clion%E6%80%8E%E4%B9%88%E6%8D%A2%E8%83%8C%E6%99%AF&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~sobaiduweb~default-5-.nonecase&spm=1018.2226.3001.4450

OpenCV_contrib下载地址:

https://github.com/opencv/opencv_contrib/releases/tag/3.4.14

//  如果编译不过或者是有什么问题 可能是CmakeList的编写有问题

CmakeList编写:

https://blog.csdn.net/NaYinZuo/article/details/108365087?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522162293786916780261952674%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=162293786916780261952674&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~baidu_landing_v2~default-5-108365087.nonecase&utm_term=opencv+cmakelist&spm=1018.2226.3001.4450

上一篇:多测师肖sir_高级金牌讲师_项目介绍之保险项目


下一篇:IDEA阿里Java规范插件的安装