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

Unable to build #62

Closed
bymbhaskar opened this issue Feb 12, 2020 · 8 comments
Closed

Unable to build #62

bymbhaskar opened this issue Feb 12, 2020 · 8 comments

Comments

@bymbhaskar
Copy link

I am unable to build using ROS Kinetic (ubuntu 16.04).
Showing following error:
error: call of overloaded ‘make_shared(PclCloud&)’ is ambiguous
return make_shared(pcl_cloud);
^
error

@niosus
Copy link
Member

niosus commented Feb 12, 2020

Oh, strange. Could you modify this code with boost::make_shared instead of a simple make_shared and see if this helps? Strange that it builds on Ubuntu 18.04 though...

@bymbhaskar
Copy link
Author

Thank you for your quick response.
I tried with boost::make_shared. It still didn't work..
error is as follows:

/home/bhaskar/catkin_ws/devel/.private/depth_clustering/lib/libfolder_reader.so: undefined reference to boost::re_detail::cpp_regex_traits_implementation<char>::transform[abi:cxx11](char const*, char const*) const' /home/bhaskar/catkin_ws/devel/.private/depth_clustering/lib/libfolder_reader.so: undefined reference to boost::re_detail::cpp_regex_traits_implementation::transform_primary[abi:cxx11](char const*, char const*) const'
collect2: error: ld returned 1 exit status

err_boost

@bymbhaskar
Copy link
Author

able to build now.
Thanks

@niosus
Copy link
Member

niosus commented Feb 13, 2020

Could you point out the changes you had to make?

@bymbhaskar
Copy link
Author

I just went for Ubuntu 18.04 and was able to build

@niosus
Copy link
Member

niosus commented Mar 7, 2020

Thanks for the update. It's still weird that you could not build on other versions of Ubuntu though...

@DavidZhaoP
Copy link

Oh, strange. Could you modify this code with boost::make_shared instead of a simple make_shared and see if this helps? Strange that it builds on Ubuntu 18.04 though...

I met the same problem, and i follow your solution by ,modify this code with boost::make_shared instead of a simple make_shared.
But another problem happened,like this
Screenshot from 2022-02-13 14-30-56

Can you give me some help? Thanks

@DavidZhaoP
Copy link

Oh, strange. Could you modify this code with boost::make_shared instead of a simple make_shared and see if this helps? Strange that it builds on Ubuntu 18.04 though...

I met the same problem, and i follow your solution by ,modify this code with boost::make_shared instead of a simple make_shared. But another problem happened,like this Screenshot from 2022-02-13 14-30-56

Can you give me some help? Thanks

problem solved!
use std::make_shared instead of using boost::make_shared .

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