For opencv2 / xfeatures2d / cuda.hpp: Solution No such file or directory type of problem

  1. /usr/local/arm/opencv-3.4.0/opencv_contrib-3.4.0/modules/xfeatures2d/include/opencv2/xfeatures2d.hpp:42:10:

  2. fatal error: /opencv2/xfeatures2d.hpp: No such file or directory

  3. #include "/opencv2/xfeatures2d.hpp"

  4. ^~~~~~~~~~~~~~~~~~~~~~~~~~

  5. compilation terminated.

To find a path to a file and open xfeature2d.hpp, locate line 42 as follows:

 
  1. 40 #ifndef __OPENCV_XFEATURES2D_HPP__

  2. 41 #define __OPENCV_XFEATURES2D_HPP__

  3.  
  4. 42 #include"/opencv2/xfeatures2d.hpp"

Instead the absolute path

 
  1. 40 #ifndef __OPENCV_XFEATURES2D_HPP__

  2. 41 #define __OPENCV_XFEATURES2D_HPP__

  3.  
  4. 42#include"/usr/local/arm/opencv3.4.0/opencv_contrib3.4.0/modules/xfeatures2d/include/opencv2/xfeatures2d.hpp"

All this can not be found are so resolved.

For questions boostdesc_bgm.i downloaded directly to the intended desired folder.

opencv_contrib/modules/xfeatures2d/src/

Baidu cloud disk link

 
  1. 链接:https://pan.baidu.com/s/1pv2P8jn14im9IUDGorIuFg

  2. 提取码:2jnr

 

 

 

Published 57 original articles · won praise 121 · Views 460,000 +

Guess you like

Origin blog.csdn.net/baobei0112/article/details/104677721