项目基础,cmake, make, catkin_make

一、cuda

CMake编译找不到math_functions.hpp

/usr/local/include/eigen3/Eigen/Core:42:34: fatal error: math_functions.hpp: No such file or directory
     #include <math_functions.hpp>                             ^
compilation terminated.
# --error 0x1 --
CMake Error at kinectFusion_generated_voxelGrid.cu.o.Release.cmake:220 (message):
  Error generating

开始以为是eigen3的原因,其实不是。后来发现是因为CUDA 10.0, math_functions.hpp 在cuda/include/crt/math_functions.hpp,
而不是在原来的位置 cuda/include/math_functions.hpp 然后就报错了,只要重新建立软链接即可,执行命令

sudo ln -s /usr/local/cuda/include/crt/math_functions.hpp /usr/local/cuda/include/math_functions.hpp

上一篇:cmake指令汇总


下一篇:Linux下git安装配置