对于opencv2/xfeatures2d/cuda.hpp: No such file or directory 类问题的解决方法
/usr/local/arm/opencv-3.4.0/opencv_contrib-3.4.0/modules/xfeatures2d/include/opencv2/xfeatures2d.hpp:42:10:fatal error: /opencv2/xfeatures2d.hpp: No such file or directory#include "/ope...
-
/usr/local/arm/opencv-3.4.0/opencv_contrib-3.4.0/modules/xfeatures2d/include/opencv2/xfeatures2d.hpp:42:10:
-
fatal error: /opencv2/xfeatures2d.hpp: No such file or directory
-
#include "/opencv2/xfeatures2d.hpp"
-
^~~~~~~~~~~~~~~~~~~~~~~~~~
-
compilation terminated.
根据给的路径找到xfeature2d.hpp的文件并打开,找到第42行如下:
-
40 #ifndef __OPENCV_XFEATURES2D_HPP__
-
41 #define __OPENCV_XFEATURES2D_HPP__
-
42 #include"/opencv2/xfeatures2d.hpp"
改为绝对路径
-
40 #ifndef __OPENCV_XFEATURES2D_HPP__
-
41 #define __OPENCV_XFEATURES2D_HPP__
-
42#include"/usr/local/arm/opencv3.4.0/opencv_contrib3.4.0/modules/xfeatures2d/include/opencv2/xfeatures2d.hpp"
所有这种找不到的都这么解决。
对于boostdesc_bgm.i的问题直接下载到拟需要的文件夹。
opencv_contrib/modules/xfeatures2d/src/
百度云盘链接
-
链接:https://pan.baidu.com/s/1pv2P8jn14im9IUDGorIuFg
-
提取码:2jnr
欢迎来到由智源人工智能研究院发起的Triton中文社区,这里是一个汇聚了AI开发者、数据科学家、机器学习爱好者以及业界专家的活力平台。我们致力于成为业内领先的Triton技术交流与应用分享的殿堂,为推动人工智能技术的普及与深化应用贡献力量。
更多推荐
所有评论(0)