chennuo0125-HIT / lidar_imu_calib

automatic calibration of 3D lidar and IMU extrinsics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

yh300 opened this issue · comments

commented

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

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

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;

`

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

@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

commented

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.

commented

@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.

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.

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!

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.