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部分;
最后:
可能遇到问题:
- 缺少ippicv_linux_20151201.tgz
- 缺少 boostdesc_bgm.i,vgg_generated_48…
百度网盘链接:.提取码:yb46