错误信息:
/Users/mac/pointCloudDemo/Keypoint-Learning-master/include/impl/point_cloud_utilities.hpp:107:53: error: expected a qualified name after 'typename' cv::Mat convertPointCloudHistogramToCvMat(typename const pcl::PointCloud<HistogramT>::ConstPtr cloud_in) ^ /Users/mac/pointCloudDemo/Keypoint-Learning-master/include/impl/point_cloud_utilities.hpp:107:53: error: expected a qualified name after 'typename' /Users/mac/pointCloudDemo/Keypoint-Learning-master/include/impl/point_cloud_utilities.hpp:107:53: error: expected ')' /Users/mac/pointCloudDemo/Keypoint-Learning-master/include/impl/point_cloud_utilities.hpp:107:43: note: to match this '(' cv::Mat convertPointCloudHistogramToCvMat(typename const pcl::PointCloud<HistogramT>::ConstPtr cloud_in)
解决方案:
将 “typename const”改成“const typename”即可