当前位置:网站首页>安装OpenCV时遇到的几种错误
安装OpenCV时遇到的几种错误
2022-07-06 09:07:00 【一只认真的菜狗】
错误1:
/home/xx/xx/opencv-3.4.x/opencv_contrib/modules/xfeatures2d/src/boostdesc.cpp:653:20: fatal error: boostdesc_bgm.i: No such file or directory
需要手动下载几个文件(链接放评论区,避免链接失效,我把资源上传到CSDN),然后放到对应的目录opencv_contrib-3.4.x/modules/xfeatures2d/src/中。
错误2:
fatal error: opencv2/xfeatures2d/cuda.hpp: No such file or directory
方法1:
根据报错信息,打开/home/xx/xx/opencv-3.4.x/modules/stitching/include/opencv2/stitching/detail/matchers.hpp文件,将52行
#include “opencv2/xfeatures2d/cuda.hpp”
替换成 #include “/home/xx/xx/opencv-3.4.x/opencv_contrib-3.4.x/modules/xfeatures2d/include/opencv2/xfeatures2d/cuda.hpp”
方法2:
在/home/xx/xx/opencv-3.4.x/modules/stitching/CMakeLists.txt中加入INCLUDE_DIRECTORIES("/home/src/software/opencv-3.4.2/opencv_contrib-3.4.2/modules/xfeatures2d/include")
(以上的目录需要注意修改成自己的实际目录)
边栏推荐
- Hugo blog graphical writing tool -- QT practice
- CANoe仿真功能之自动化序列(Automation Sequences )
- Zsh configuration file
- Interview shock 62: what are the precautions for group by?
- How can I take a shortcut to learn C language in college
- Automation sequences of canoe simulation functions
- MapReduce working mechanism
- Pointer learning
- Summary of May training - from a Guang
- The programming ranking list came out in February. Is the result as you expected?
猜你喜欢

33岁可以学PLC吗

MapReduce working mechanism

嵌入式开发中的防御性C语言编程

一大波開源小抄來襲

Learning SCM is of great help to society

Segmentation sémantique de l'apprentissage profond - résumé du code source

112 pages of mathematical knowledge sorting! Machine learning - a review of fundamentals of mathematics pptx

17 医疗挂号系统_【微信支付】

tn-c为何不可用2p断路器?

Hugo blog graphical writing tool -- QT practice
随机推荐
五月刷题03——排序
机械工程师和电气工程师方向哪个前景比较好?
Learning SCM is of great help to society
CANoe仿真功能之自动化序列(Automation Sequences )
C杂讲 双向循环链表
Hero League rotation chart manual rotation
[one click] it only takes 30s to build a blog with one click - QT graphical tool
Defensive C language programming in embedded development
嵌入式开发比单片机要难很多?谈谈单片机和嵌入式开发设计经历
CAPL 脚本打印函数 write ,writeEx ,writeLineEx ,writeToLog ,writeToLogEx ,writeDbgLevel 你真的分的清楚什么情况下用哪个吗?
[flask] crud addition and query operation of data
单片机如何从上电复位执行到main函数?
May brush question 02 - string
Contest3145 - the 37th game of 2021 freshman individual training match_ C: Tour guide
Tianmu MVC audit I
A new understanding of RMAN retention policy recovery window
History of object recognition
June brush question 02 - string
硬件工程师的真实前途我说出来可能你们不信
CAPL 脚本对.ini 配置文件的高阶操作