OpenCV_Problem_in_install(version_3.4 and system version ubuntu 16.04)

error

the error line is:
In file included from /home/zero/Program/opencv-3.4.0/modules/stitching/include/opencv2/stitching.hpp:49:0,
                 from /home/zero/Program/opencv-3.4.0/modules/stitching/src/precomp.hpp:59,
                 from /home/zero/Program/opencv-3.4.0/build/modules/stitching/opencv_stitching_pch_dephelp.cxx:1:
/home/.../Program/opencv-3.4.0/modules/stitching/include/opencv2/stitching/detail/matchers.hpp:52:42: fatal error: opencv2/xfeatures2d/cuda.hpp: No such file or directory
 #  include "opencv2/xfeatures2d/cuda.hpp"
                                          ^
compilation terminated.

在安装OpenCV3.4 _in_ubuntun 16.04 中,遇到的一个问题,/home/…/Program/opencv-3.4.0/modules/stitching/include/opencv2/stitching/detail/matchers.hpp:52:42: fatal error: opencv2/xfeatures2d/cuda.hpp: No such file or directory即在matchers.hpp文件中找不到cuda.hpp;

经过几番折腾 在这里.发现答案:
在这里插入图片描述
上面的图片虽然不是cuda.hpp的问题,(ps:cuda.hpp,忘记截图了),但是两者之间的原理是一样的。上图中,在…/stitching/src/matchers.cpp 中缺少OpenCV2/xfeatured2d.hpp头文件。说明找不见头文件的位置;解决办法:,查找头文件的位置,将…/stitching/src/matchers.cpp 中相应的头文件中相关内容替换,然后再进行编译;
在这里插入图片描述

后面遇到同样的类似的问题,采取相同的方法:
在这里插入图片描述
在这里插入图片描述

当然,也可以参考以下方案 传送门.:@skvark 讲的貌似很有道理,虽然,试过了,对我没有用。但是,可以参考一下cmake_3.9.0部分;

最后:
可能遇到问题:

  1. 缺少ippicv_linux_20151201.tgz
  2. 缺少 boostdesc_bgm.i,vgg_generated_48…

百度网盘链接:.提取码:yb46

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值