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

error: ‘shared_ptr’ in namespace ‘pcl’ does not name a template type #12

Closed
yh300 opened this issue Apr 20, 2021 · 9 comments
Closed

Comments

@yh300
Copy link

yh300 commented Apr 20, 2021

I made the above mistakes when making,How can I solve them?

@chennuo0125-HIT
Copy link
Owner

maybe pcl version isnt right, i install pcl-1.8 on my platform and didnt suffer this problem

@jdgalviss
Copy link

jdgalviss commented Apr 20, 2021

I made the above mistakes when making,How can I solve them?

I am having the exact same issue. My pcl version is the 1.8.1. Any luck?. Here is the error I obtain:

`error: ‘shared_ptr’ in namespace ‘pcl’ does not name a template type
typedef pcl::shared_ptr< pcl::VoxelGrid > Ptr;

error: ‘shared_ptr’ in namespace ‘pcl’ does not name a template type
typedef pcl::shared_ptr< const pcl::VoxelGrid > ConstPtr;

`

@chennuo0125-HIT
Copy link
Owner

chennuo0125-HIT commented Apr 20, 2021

@jdgalviss could you provide operation process ? i cant find this problem when compile on my computer.

@jdgalviss
Copy link

jdgalviss commented Apr 20, 2021

@jdgalviss could you provide operation process ? i cant find this problem when compile on my computer.

Actually, I was looking for the error in the ndt_omp repo, there was a recent pull request replacing boost::shared_ptr with pcl::shared_ptr. Reverting this change fixed the issue for me. I opened an issue in their repository: koide3/ndt_omp#28

My pc has:
Ubuntu 18.04 (AMD64)
pcl 1.8.1
g++ 7.5.0

@yh300 yh300 closed this as completed Apr 20, 2021
@yh300
Copy link
Author

yh300 commented Apr 20, 2021

maybe pcl version isnt right, i install pcl-1.8 on my platform and didnt suffer this problem

thank you,i solved this problem with the method of the blogger below.

@yh300
Copy link
Author

yh300 commented Apr 20, 2021

@jdgalviss could you provide operation process ? i cant find this problem when compile on my computer.

Actually, I was looking for the error in the ndt_omp repo, there was a recent pull request replacing boost::shared_ptr with pcl::shared_ptr. Reverting this change fixed the issue for me. I opened an issue in their repository: koide3/ndt_omp#28

My pc has:
Ubuntu 18.04 (AMD64)
pcl 1.8.1
g++ 7.5.0

nice! thank you for your method.

@chennuo0125-HIT
Copy link
Owner

I had updated my repo with an old version ndt_omp library (i had tested), so my repo is decoupled with new version ndt_omp.

@xiangmingJiao
Copy link

I made the above mistakes when making,How can I solve them?

I am having the exact same issue. My pcl version is the 1.8.1. Any luck?. Here is the error I obtain:

`error: ‘shared_ptr’ in namespace ‘pcl’ does not name a template type
typedef pcl::shared_ptr< pcl::VoxelGrid > Ptr;

error: ‘shared_ptr’ in namespace ‘pcl’ does not name a template type
typedef pcl::shared_ptr< const pcl::VoxelGrid > ConstPtr;

`

Hello, can you say the following specific process to solve this problem? thank you!

@jdgalviss
Copy link

I made the above mistakes when making,How can I solve them?

I am having the exact same issue. My pcl version is the 1.8.1. Any luck?. Here is the error I obtain:
error: ‘shared_ptr’ in namespace ‘pcl’ does not name a template type typedef pcl::shared_ptr< pcl::VoxelGrid > Ptr; error: ‘shared_ptr’ in namespace ‘pcl’ does not name a template type typedef pcl::shared_ptr< const pcl::VoxelGrid > ConstPtr;

Hello, can you say the following specific process to solve this problem? thank you!

Just replace boost::shared_ptr with pcl::shared_ptr in all the ndt_omp repo's files.

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

4 participants