Segmentation fault (core dumped) with PCL 1.9
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?
How did you install PCL
1.9.1
, and more importantly: how are you using it in your node(s)? Melodic still only uses1.8.1
(see REP 3), so officially there is no support for1.9.1
.I installed PCL
1.9.1
from package and PCL1.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.8Ok. That is most likely why you get those
SEGFAULT
s.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.