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

Error when compiling for VTK 6 #817

Merged
merged 1 commit into from
Jul 31, 2014
Merged

Conversation

fran6co
Copy link
Contributor

@fran6co fran6co commented Jul 31, 2014

/tmp/pcl-GU4R/tools/obj2pcd.cpp:113:9: error: no member named 'SetInput' in 'vtkPolyDataNormals'; did you mean 'GetInput'?
    ng->SetInput (polydata);
        ^~~~~~~~
        GetInput
/tmp/pcl-GU4R/tools/obj2pcd.cpp:113:9: error: no matching member function for call to 'GetInput'
    ng->SetInput (polydata);
    ~~~~^~~~~~~~
/usr/local/include/vtk-6.1/vtkPolyDataAlgorithm.h:60:18: note: candidate function not viable: no known conversion from 'vtkSmartPointer<vtkPolyData>' to 'int' for 1st argument
  vtkDataObject *GetInput(int port);
                 ^
/usr/local/include/vtk-6.1/vtkPolyDataAlgorithm.h:59:18: note: candidate function not viable: requires 0 arguments, but 1 was provided
  vtkDataObject* GetInput();
                 ^
Linking CXX executable ../bin/pcl_morph
cd /tmp/pcl-GU4R/macbuild/tools && /usr/local/Cellar/cmake/3.0.0/bin/cmake -E cmake_link_script CMakeFiles/pcl_morph.dir/link.txt --verbose=1

@taketwo
Copy link
Member

taketwo commented Jul 31, 2014

Introduced by #816. My bad, didn't spot this problem. Thanks Francisco!

taketwo added a commit that referenced this pull request Jul 31, 2014
Error when compiling for VTK 6
@taketwo taketwo merged commit 4cc066f into PointCloudLibrary:master Jul 31, 2014
@VictorLamoine
Copy link
Contributor

Lesson learned: Never ever use search/replace blindly 😕

@fran6co fran6co deleted the patch-8 branch July 31, 2014 12:18
@fran6co
Copy link
Contributor Author

fran6co commented Jul 31, 2014

No problem. Shouldn't this kind of bug appear in a travis build?

@taketwo
Copy link
Member

taketwo commented Jul 31, 2014

There was an idea to devise a Travis task for building the library with vtk6 (#699), but it was never implemented.

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

Successfully merging this pull request may close these issues.

3 participants