APRIL-ZJU / Coco-LIC

[RA-L 2023] Coco-LIC: Continuous-Time Tightly-Coupled LiDAR-Inertial-Camera Odometry using Non-Uniform B-spline
241 stars 17 forks source link

Melodic and Noetic are all meeting this problem. Like the followings: #8

Open piluohong opened 3 months ago

piluohong commented 3 months ago

In file included from /home/h/ku/pcl-1.14-installpath/include/pcl-1.14/pcl/type_traits.h:40, from /home/h/hong.MD.degree/cocolic_ws/src/Coco-LIC/src/spline/../utils/mypcl_cloud_type.h:21, from /home/h/hong.MD.degree/cocolic_ws/src/Coco-LIC/src/spline/trajectory.h:24, from /home/h/hong.MD.degree/cocolic_ws/src/Coco-LIC/src/spline/trajectory.cpp:19: /home/h/ku/pcl-1.14-installpath/include/pcl-1.14/pcl/point_struct_traits.h:68:30: error: redefinition of ‘struct pcl::traits::decomposeArray’ 68 | template struct decomposeArray | ^~~~~~ In file included from /usr/local/include/pcl-1.10/pcl/make_shared.h:47, from /usr/local/include/pcl-1.10/pcl/PCLHeader.h:6, from /usr/local/include/pcl-1.10/pcl/point_cloud.h:47, from /home/h/hong.MD.degree/cocolic_ws/src/Coco-LIC/src/spline/../utils/mypcl_cloud_type.h:20, from /home/h/hong.MD.degree/cocolic_ws/src/Coco-LIC/src/spline/trajectory.h:24, from /home/h/hong.MD.degree/cocolic_ws/src/Coco-LIC/src/spline/trajectory.cpp:19: /usr/local/include/pcl-1.10/pcl/point_traits.h:99:33: note: previous definition of ‘struct pcl::traits::decomposeArray’ 99 | template struct decomposeArray | ^~~~~~ In file included from /home/h/ku/pcl-1.14-installpath/include/pcl-1.14/pcl/type_traits.h:40, from /home/h/hong.MD.degree/cocolic_ws/src/Coco-LIC/src/spline/../utils/mypcl_cloud_type.h:21, from /home/h/hong.MD.degree/cocolic_ws/src/Coco-LIC/src/spline/trajectory.h:24, from /home/h/hong.MD.degree/cocolic_ws/src/Coco-LIC/src/spline/trajectory.cpp:19: /home/h/ku/pcl-1.14-installpath/include/pcl-1.14/pcl/point_struct_traits.h:76:9: error: redefinition of ‘struct pcl::traits::POD’ 76 | struct POD | ^~~ In file included from /usr/local/include/pcl-1.10/pcl/make_shared.h:47, from /usr/local/include/pcl-1.10/pcl/PCLHeader.h:6, from /usr/local/include/pcl-1.10/pcl/point_cloud.h:47, from /home/h/hong.MD.degree/cocolic_ws/src/Coco-LIC/src/spline/../utils/mypcl_cloud_type.h:20, from /home/h/hong.MD.degree/cocolic_ws/src/Coco-LIC/src/spline/trajectory.h:24, from /home/h/hong.MD.degree/cocolic_ws/src/Coco-LIC/src/spline/trajectory.cpp:19: /usr/local/include/pcl-1.10/pcl/point_traits.h:107:12: note: previous definition of ‘struct pcl::traits::POD’ 107 | struct POD | ^~~ In file included from /home/h/ku/pcl-1.14-installpath/include/pcl-1.14/pcl/type_traits.h:40, from /home/h/hong.MD.degree/cocolic_ws/src/Coco-LIC/src/spline/../utils/mypcl_cloud_type.h:21, from /home/h/hong.MD.degree/cocolic_ws/src/Coco-LIC/src/spline/trajectory.h:24, from /home/h/hong.MD.degree/cocolic_ws/src/Coco-LIC/src/spline/trajectory.cpp:19: /home/h/ku/pcl-1.14-installpath/include/pcl-1.14/pcl/point_struct_traits.h:108:10: error: redefinition of default argument for ‘int dummy’ 108 | struct name /* \cond NO_WARN_RECURSIVE / : name<typename POD::type, Tag, dummy> /* \endcond / | ^~~~

MGforest commented 3 weeks ago

Hi @piluohong,

I have the same situation and error using ubuntu 20.04 and ros noetic. ROS's PCL is 1.10. under /usr/include/pcl-1.10 I install PCL 1.14.0 by source code under /usr/local/include/pcl-1.14

The problem is ROS noetic and its packages need 1.10 and COCO-LIC higher than 1.10 However, in this repo README it says "tested with noetic"

Did anyone find a solution?