我安装的时候遇到的坑
- 安装ROS的时候,发现ros-kinetic-desktop-full始终安不上,后来才知道ubuntu的版本不一样安装的ROS也不一样
ubuntu16.04对应ros-kinetic;
ubuntu18.04对应ros-melodic;
ubuntu20.04对应ros-noetic。
所以在ubuntu18.04上就应该执行
sudo apt-get install ros-noetic-desktop-full
警告:/usr/local/cuda/include/math_functions.h:54:2: warning: #warning “math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead.” [-Wcpp]
#warning “math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead.”
原因:cuda版本函数文件更新
解决方案:打开出问题的文件math_functions.cu文件,进行修改
//#include <math_functions.h> // CUDA's, not caffe's, for fabs, signbit(删除该行)
#include <cuda_runtime.h> // CUDA's, not caffe's, for fabs, signbit(增加该行)
#include <thrust/device_vector.h>
#include <thrust/functional.h> // thrust::plus
#include <thrust/reduce.h>
/usr/local/cuda/include/math_functions.h编译通过
原文链接:https://blog.csdn.net/qq_36426286/article/details/102682226