
Hi, I have a problem using PCL 1.9.1 on ubuntu 18.04. The pcl::NormalDistributionTransform works good but a segmentation fault occurs with the pcl::NormalDistributionTransform when I call for the setinputtarget(). Do you have any idea how to handle this error?
Originally posted by lotfishtaine on ROS Answers with karma: 76 on 2019-10-09
Post score: 0
Original comments
Comment by gvdhoorn on 2019-10-09:
How did you install PCL 1.9.1, and more importantly: how are you using it in your node(s)? Melodic still only uses 1.8.1 (see REP 3), so officially there is no support for 1.9.1.
Comment by lotfishtaine on 2019-10-09:
I installed PCL 1.9.1 from package and PCL 1.8.1 it comes when I install ros-melodic. btw compiler gives me some warnings like : warning: libpcl_......... .so.1.9, needed by /usr/local/lib/libpcl_segmentation.so, may conflict with libpcl_....... .so.1.8
Comment by gvdhoorn on 2019-10-09:
Ok. That is most likely why you get those SEGFAULTs.
Because of ABI problems you cannot just link nodes against PCL 1.9.1. You'll most likely have to build all ROS PCL interfacing packages from source. I've written something about that in #q289264.
Note that this is not a ROS problem, but something you always need to keep in mind when reusing binary artefacts (such as libraries): if there is no ABI compatibility guarantee, you cannot (re)link different versions into the same binary.