Public bug reported:

Description:    Ubuntu 16.04.6 LTS
Release:        16.04

libpcl-dev:
  Installed: 1.7.2-14build1
  Candidate: 1.7.2-14build1
  Version table:
 *** 1.7.2-14build1 500
        500 http://it.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status

Including pcl/segmentation/plane_coefficient_comparator.h and compiling with 
GCC8 leads to:
Errors     << my_pkg:make ~/catkin_ws/logs/my_pkg/build.make.032.log       
In file included from 
/usr/include/pcl-1.7/pcl/segmentation/edge_aware_plane_comparator.h:44,
                 from ~/catkin_ws/src/my_pkg/src/example.cpp:21:
/usr/include/pcl-1.7/pcl/segmentation/plane_coefficient_comparator.h: In member 
function ‘const std::vector<float>& pcl::PlaneCoefficientComparator<PointT, 
PointNT>::getPlaneCoeffD() const’:
/usr/include/pcl-1.7/pcl/segmentation/plane_coefficient_comparator.h:144:17: 
error: invalid initialization of reference of type ‘const std::vector<float>&’ 
from expression of type ‘const boost::shared_ptr<std::vector<float> >’
         return (plane_coeff_d_);
                ~^~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/example.dir/src/example.cpp.o] Error 1
make[1]: *** [CMakeFiles/example.dir/all] Error 2
make: *** [all] Error 2

This is already fixed in the github repository:
https://github.com/PointCloudLibrary/pcl/pull/2299

** Affects: pcl (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1830015

Title:
  Build fail with GCC8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcl/+bug/1830015/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to