通过增加绝对依赖库的路径等方式无法解决:

https://blog.csdn.net/qq_42995327/article/details/123461329

最后查到这个issue才解决:

https://github.com/PointCloudLibrary/pcl/issues/5933

https://pcl.readthedocs.io/projects/tutorials/en/master/adding_custom_ptype.html

即:

#define PCL_NO_PRECOMPILE
#include <pcl/filters/passthrough.h>
#include <pcl/filters/impl/passthrough.hpp>

// the rest of the code goes here

更多推荐