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

Supervoxel clustering tutorial does not compile #1177

Closed
sotte opened this issue Mar 16, 2015 · 5 comments
Closed

Supervoxel clustering tutorial does not compile #1177

sotte opened this issue Mar 16, 2015 · 5 comments

Comments

@sotte
Copy link
Contributor

sotte commented Mar 16, 2015

The supervoxel clustering tutorial does not compile.

Steps to reproduce:

mkdir supervoxel_clustering
cd supervoxel_clustering
curl -O http://pointclouds.org/documentation/tutorials/_downloads/supervoxel_clustering.cpp
curl -o CMakeLists.txt http://pointclouds.org/documentation/tutorials/_downloads/CMakeLists2.txt
curl -o milk_cartoon_all_small_clorox.pcd https://github.com/PointCloudLibrary/data/blob/master/tutorials/correspondence_grouping/milk_cartoon_all_small_clorox.pcd?raw=true -o milk_cartoon_all_small_clorox.pcd

mkdir build
cd build
cmake ..
make

Error message

[100%] Building CXX object CMakeFiles/supervoxel_clustering.dir/supervoxel_clustering.cpp.o
/home/stefan/git/pcl_workspace/supervoxel_clustering/supervoxel_clustering.cpp: In function 'void addSupervoxelConnectionsToViewer(PointT&, PointCloudT&, std::string, boost::shared_ptr<pcl::visualization::PCLVisualizer>&)':
/home/stefan/git/pcl_workspace/supervoxel_clustering/supervoxel_clustering.cpp:158:11: error: invalid use of incomplete type 'class vtkPolyLine'
   polyLine->GetPointIds  ()->SetNumberOfIds(points->GetNumberOfPoints ());
           ^
In file included from /usr/include/vtk-5.8/vtkPolyDataAlgorithm.h:38:0,
                 from /usr/include/vtk-5.8/vtkVectorText.h:35,
                 from /usr/include/pcl-1.7/pcl/visualization/impl/pcl_visualizer.hpp:44,
                 from /usr/include/pcl-1.7/pcl/visualization/pcl_visualizer.h:2004,
                 from /home/stefan/git/pcl_workspace/supervoxel_clustering/supervoxel_clustering.cpp:5:

I'm using Ubuntu 14.04 with pcl 1.7.1.

@taketwo
Copy link
Member

taketwo commented Mar 16, 2015

Try to add the following include:

#include <vtkPolyLine.h>

@jpapon
Copy link
Contributor

jpapon commented Mar 16, 2015

Should I add this include to pull request #1115?

@taketwo
Copy link
Member

taketwo commented Mar 16, 2015

Yep, makes sense.

@sotte
Copy link
Contributor Author

sotte commented Mar 16, 2015

Thanks for the quick reply! It works.

I'll leave this issue open till #1115 is merged.

@taketwo
Copy link
Member

taketwo commented Apr 13, 2015

Fixed via #1115.

@taketwo taketwo closed this as completed Apr 13, 2015
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

3 participants