- If you are experiencing the following error:
/usr/include/pcl-1.8/pcl/impl/point_types.hpp:684:5: error: 'alignas' attribute only applies to variables, data members and tag types [clang-diagnostic-error]
} EIGEN_ALIGN16;
^
This is a known bug in PCL which was fixed in PR #3237.
Fixes:
- Either install
pcl>=v1.10.0
. - or hack the following change into
/usr/include/pcl-1.8/pcl/impl/point_types.hpp
directly by changing:
670: struct _PointXYZHSV
...
684: } EIGEN_ALIGN16;
to
670: struct EIGEN_ALIGN16 _PointXYZHSV
...
684: };