I’m new to VTK. I built and installed VTK-8.2 on ubuntu 18.04.4. I want to build all the examples, and am following the directions at this link. . When I type ‘make’ I get:
make
Scanning dependencies of target AnimateActors
[ 1%] Building CXX object Cxx/Animation/CMakeFiles/AnimateActors.dir/AnimateActors.cxx.o
[ 1%] Linking CXX executable …/…/bin/AnimateActors
[ 1%] Built target AnimateActors
Scanning dependencies of target OverlappingAMR
[ 2%] Building CXX object Cxx/CompositeData/CMakeFiles/OverlappingAMR.dir/OverlappingAMR.cxx.o
[ 2%] Linking CXX executable …/…/bin/OverlappingAMR
[ 2%] Built target OverlappingAMR
Scanning dependencies of target CompositePolyDataMapper
[ 2%] Building CXX object Cxx/CompositeData/CMakeFiles/CompositePolyDataMapper.dir/CompositePolyDataMapper.cxx.o
/home/oreilly/VTKWikiExamples-master/Cxx/CompositeData/CompositePolyDataMapper.cxx: In function ‘int main(int, char**)’:
/home/oreilly/VTKWikiExamples-master/Cxx/CompositeData/CompositePolyDataMapper.cxx:42:31: error: invalid conversion from ‘int’ to ‘vtkDataObject*’ [-fpermissive]
cdsa->SetBlockColor(3, color);
^
In file included from /home/oreilly/VTKWikiExamples-master/Cxx/CompositeData/CompositePolyDataMapper.cxx:5:0:
/home/oreilly/VTK-8.2.0/Rendering/Core/vtkCompositeDataDisplayAttributes.h:113:8: note: initializing argument 1 of ‘void vtkCompositeDataDisplayAttributes::SetBlockColor(vtkDataObject*, const double*)’
void SetBlockColor(vtkDataObject* data_object, const double color[3]);
^~~~~~~~~~~~~
Cxx/CompositeData/CMakeFiles/CompositePolyDataMapper.dir/build.make:62: recipe for target ‘Cxx/CompositeData/CMakeFiles/CompositePolyDataMapper.dir/CompositePolyDataMapper.cxx.o’ failed
Does anyone know why?
Thanks!