ndt_omp icon indicating copy to clipboard operation
ndt_omp copied to clipboard

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

Open jdgalviss opened this issue 3 years ago • 5 comments

When trying to build, the following error is occurring:

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;

My pcl version is the 1.8.1. I temporarily fixed it by replacing pcl::shared_ptr to boost::shared_ptr. I saw there was a recent pull request on this regard.

jdgalviss avatar Apr 20 '21 09:04 jdgalviss

When trying to build, the following error is occurring:

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;

My pcl version is the 1.8.1. I temporarily fixed it by replacing pcl::shared_ptr to boost::shared_ptr. I saw there was a recent pull request on this regard.

I also met the same question and solved it by checkout to old version.

kinggreat24 avatar Apr 26 '21 08:04 kinggreat24

could you please tell me, which old version you are talking about?

When trying to build, the following error is occurring: 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; My pcl version is the 1.8.1. I temporarily fixed it by replacing pcl::shared_ptr to boost::shared_ptr. I saw there was a recent pull request on this regard.

I also met the same question and solved it by checkout to old version.

Avinashbhat96 avatar Jun 26 '21 09:06 Avinashbhat96

I created melodic branch for backwards compatibility. Try to checkout it.

koide3 avatar Jun 26 '21 10:06 koide3

I created melodic branch for backwards compatibility. Try to checkout it.

Thank you, it was helpful :-)

Avinashbhat96 avatar Jun 27 '21 04:06 Avinashbhat96

I updated the code, and now master branch can be built on older environments as well

koide3 avatar Jul 06 '21 08:07 koide3