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

NARF tutorial code not compiling #1350

Closed
VictorLamoine opened this issue Sep 29, 2015 · 5 comments
Closed

NARF tutorial code not compiling #1350

VictorLamoine opened this issue Sep 29, 2015 · 5 comments

Comments

@VictorLamoine
Copy link
Contributor

http://www.pointclouds.org/documentation/tutorials/narf_feature_extraction.php

PCL trunk

Linking CXX executable range_image
CMakeFiles/range_image.dir/range_image.cpp.o: In function `bool pcl::visualization::PCLVisualizer::addPointCloud<pcl::PointWithRange>(pcl::PointCloud<pcl::PointWithRange>::ConstPtr const&, pcl::visualization::PointCloudColorHandler<pcl::PointWithRange> const&, std::string const&, int)':
range_image.cpp:(.text._ZN3pcl13visualization13PCLVisualizer13addPointCloudINS_14PointWithRangeEEEbRKNS_10PointCloudIT_E8ConstPtrERKNS0_22PointCloudColorHandlerIS5_EERKSsi[_ZN3pcl13visualization13PCLVisualizer13addPointCloudINS_14PointWithRangeEEEbRKNS_10PointCloudIT_E8ConstPtrERKNS0_22PointCloudColorHandlerIS5_EERKSsi]+0x2fd): undefined reference to `pcl::visualization::PointCloudGeometryHandlerXYZ<pcl::PointWithRange>::PointCloudGeometryHandlerXYZ(boost::shared_ptr<pcl::PointCloud<pcl::PointWithRange> const> const&)'
CMakeFiles/range_image.dir/range_image.cpp.o:(.rodata._ZTVN3pcl13visualization28PointCloudGeometryHandlerXYZINS_14PointWithRangeEEE[_ZTVN3pcl13visualization28PointCloudGeometryHandlerXYZINS_14PointWithRangeEEE]+0x30): undefined reference to `pcl::visualization::PointCloudGeometryHandlerXYZ<pcl::PointWithRange>::getGeometry(vtkSmartPointer<vtkPoints>&) const'
collect2: error: ld returned 1 exit status
make[2]: *** [range_image] Error 1
make[1]: *** [CMakeFiles/range_image.dir/all] Error 2
make: *** [all] Error 2
@taketwo
Copy link
Member

taketwo commented Sep 29, 2015

I assume you are building with ONLY_CORE_POINT_TYPES set to ON. Try to append PointWithRange to the list here.

@VictorLamoine
Copy link
Contributor Author

That's right! My bad.. closing

@taketwo
Copy link
Member

taketwo commented Oct 1, 2015

It's not your bad :) Would you mind to submit a PR?

@VictorLamoine
Copy link
Contributor Author

Not sure what has to be done to "fix" that?! (feel free to re-open)

I'm trying to keep up answering to the mailing-list but there are too many posts aha 😩 🔫

@taketwo
Copy link
Member

taketwo commented Oct 1, 2015

Not sure what has to be done to "fix" that?! (feel free to re-open)

Exactly what I suggested. I think it makes much sense to pre-compile NARF for this point type. Even an example app uses it!

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

2 participants