编译sgbm_ros中遇到的问题

出现的问题

这个会报错

1.解决方法是在文件sudo gedit /usr/local/cuda/include/crt/common_functions.h中注释掉如下

#define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported.  Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."

2.另外解决方法是在eigen里面去注释

eigen3/Eigen/src/Core/util/Macros.h,该文件里面的

//#if defined(__CUDACC_VER__) &&  __CUDACC_VER__ >= 70500 && __cplusplus > 199711L
 // #define EIGEN_HAS_CONSTEXPR 1
//#endif

 

编译即可通过,一般采用第二种

posted on 2018-09-06 17:10  gary_123  阅读(388)  评论(0编辑  收藏  举报

导航