当前位置:网站首页>安装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")
(以上的目录需要注意修改成自己的实际目录)
边栏推荐
- MapReduce instance (VI): inverted index
- Counter attack of noodles: redis asked 52 questions in a series, with detailed pictures and pictures. Now the interview is stable
- 嵌入式中的合作开发--函数指针
- Write your own CPU Chapter 10 - learning notes
- Listen to my advice and learn according to this embedded curriculum content and curriculum system
- C杂讲 动态链表操作 再讲
- Elk project monitoring platform deployment + deployment of detailed use (II)
- Oom happened. Do you know the reason and how to solve it?
- 大学C语言入门到底怎么学才可以走捷径
- June brush question 02 - string
猜你喜欢

Regular expressions are actually very simple

Selection of software load balancing and hardware load balancing

MapReduce instance (VI): inverted index

Which is the better prospect for mechanical engineer or Electrical Engineer?

Several silly built-in functions about relative path / absolute path operation in CAPL script

CANoe仿真功能之自动化序列(Automation Sequences )

Carolyn Rosé博士的社交互通演讲记录

Elk project monitoring platform deployment + deployment of detailed use (II)

在CANoe中通过Panel面板控制Test Module 运行(高级)
![[deep learning] semantic segmentation - source code summary](/img/2c/50eaef4a11fe2ee9c53a5cebdd69ce.png)
[deep learning] semantic segmentation - source code summary
随机推荐
嵌入式開發中的防禦性C語言編程
Pointer learning
How can I take a shortcut to learn C language in college
Regular expressions are actually very simple
Interview shock 62: what are the precautions for group by?
Download address of canoe, download and activation of can demo 16, and appendix of all canoe software versions
Segmentation sémantique de l'apprentissage profond - résumé du code source
[CV] target detection: derivation of common terms and map evaluation indicators
[NLP] bert4vec: a sentence vector generation tool based on pre training
学习单片机对社会的帮助是很大的
If a university wants to choose to study automation, what books can it read in advance?
The programming ranking list came out in February. Is the result as you expected?
Why is 51+ assembly in college SCM class? Why not come directly to STM32
嵌入式中的合作开发--函数指针
What are the models of data modeling
Random notes
NLP路线和资源
112 pages of mathematical knowledge sorting! Machine learning - a review of fundamentals of mathematics pptx
tn-c为何不可用2p断路器?
17 医疗挂号系统_【微信支付】