Closed dzenanz closed 6 months ago
The handler is instantiated here: https://github.com/PointCloudLibrary/pcl/blob/ad2bf688b2d036fe703cd16ea6d574e453e101b2/visualization/src/point_cloud_handlers.cpp#L788-L795
On Windows, PCL is always built with PCL_ONLY_CORE_POINT_TYPES
defined, otherwise the binaries would get too large and the pcl_features library would completely fail to build (too many symbols for the Windows linker to handle).
So the handler is not instantiated for PointXYZINormal
. But you can add #define PCL_NO_PRECOMPILE
at the top of the .cpp file, to make the handler implementation available to the compiler (further information here: https://pcl.readthedocs.io/projects/tutorials/en/master/adding_custom_ptype.html#adding-custom-ptype )
Linking error given below.
Describe the error
To Reproduce
In https://github.com/PointCloudLibrary/pcl/blob/ad2bf688b2d036fe703cd16ea6d574e453e101b2/doc/tutorials/content/sources/interactive_icp/interactive_icp.cpp#L10 replace
typedef pcl::PointXYZ PointT;
bytypedef pcl::PointXYZINormal PointT;
.Your Environment (please complete the following information):
master
.vcpkg
. I ran into a compile error when trying to installpcl
usingvcpkg
If PCL was compiled from source or failure in compiling PCL itself:
Possible Solution
Workaround: cast the cloud to
PointXYZ
before rendering.Additional context
I am new to
pcl
, so I don't even know whether this is supposed to work.