chennuo0125-HIT / lidar_imu_calib

automatic calibration of 3D lidar and IMU extrinsics
501 stars 113 forks source link

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

Closed yh300 closed 3 years ago

yh300 commented 3 years ago

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

chennuo0125-HIT commented 3 years ago

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

jdgalviss commented 3 years ago

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 commented 3 years ago

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

jdgalviss commented 3 years ago

@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: https://github.com/koide3/ndt_omp/issues/28

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

yh300 commented 3 years ago

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 commented 3 years ago

@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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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::sharedptr with _pcl::sharedptr in all the ndt_omp repo's files.