Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
piluohong opened this issue May 29, 2024 · 3 comments
Open

Comments

@piluohong
Copy link

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 */
| ^~~~

@piluohong piluohong changed the title Melodic and Noetic are all meeting this project. Like the followings: Melodic and Noetic are all meeting this problem. Like the followings: May 29, 2024
@MGforest
Copy link

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?

@Printeger
Copy link

@MGforest @piluohong You can move pcl-1.10 at /usr/include to somewhere for backup, and rm pcl-1.10.
The reason is pcl-1.10 in /usr/include and pcl-1.13.0 in /usr/local/include have conflict when compiled.

@piluohong
Copy link
Author

@MGforest @piluohong You can move pcl-1.10 at /usr/include to somewhere for backup, and rm pcl-1.10. The reason is pcl-1.10 in /usr/include and pcl-1.13.0 in /usr/local/include have conflict when compiled.

Yes, thank you for your recommend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants