Build error: class vtkCellPicker has no member named Pick3DPoint

make -j4 when i use this command,i meet the following error:

[ 33%] Linking CXX shared library …/…/bin/libSlicerBaseLogicPythonD.so
Libs/MRML/DisplayableManager/CMakeFiles/MRMLDisplayableManager.dir/build.make:75: recipe for target ‘Libs/MRML/DisplayableManager/CMakeFiles/MRMLDisplayableManager.dir/vtkMRMLModelDisplayableManager.cxx.o’ failed
make[5]: *** [Libs/MRML/DisplayableManager/CMakeFiles/MRMLDisplayableManager.dir/vtkMRMLModelDisplayableManager.cxx.o] Error 1
CMakeFiles/Makefile2:1725: recipe for target ‘Libs/MRML/DisplayableManager/CMakeFiles/MRMLDisplayableManager.dir/all’ failed
make[4]: *** [Libs/MRML/DisplayableManager/CMakeFiles/MRMLDisplayableManager.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs…
[ 34%] Built target SlicerBaseLogicPythonD
Copying XML file ‘PETStandardUptakeValueComputation.xml’ along side the executable
[ 34%] Built target PETStandardUptakeValueComputation
[ 34%] Built target ModelMakerLib
Makefile:151: recipe for target ‘all’ failed
make[3]: *** [all] Error 2
CMakeFiles/Slicer.dir/build.make:143: recipe for target ‘Slicer-prefix/src/Slicer-stamp/Slicer-build’ failed
make[2]: *** [Slicer-prefix/src/Slicer-stamp/Slicer-build] Error 2
CMakeFiles/Makefile2:103: recipe for target ‘CMakeFiles/Slicer.dir/all’ failed
make[1]: *** [CMakeFiles/Slicer.dir/all] Error 2
Makefile:83: recipe for target ‘all’ failed
make: *** [all] Error 2

make when i use this command,i meet the following error:

[ 28%] Building CXX object Libs/MRML/DisplayableManager/CMakeFiles/MRMLDisplayableManager.dir/vtkMRMLModelDisplayableManager.cxx.o
/home/zbs/Slicer/Libs/MRML/DisplayableManager/vtkMRMLModelDisplayableManager.cxx: In member function ‘virtual int vtkMRMLModelDisplayableManager::Pick3D(double*)’:
/home/zbs/Slicer/Libs/MRML/DisplayableManager/vtkMRMLModelDisplayableManager.cxx:1881:35: error: ‘class vtkCellPicker’ has no member named ‘Pick3DPoint’
if (this->Internal->CellPicker->Pick3DPoint(ras, ren))
^
Libs/MRML/DisplayableManager/CMakeFiles/MRMLDisplayableManager.dir/build.make:75: recipe for target ‘Libs/MRML/DisplayableManager/CMakeFiles/MRMLDisplayableManager.dir/vtkMRMLModelDisplayableManager.cxx.o’ failed
make[5]: *** [Libs/MRML/DisplayableManager/CMakeFiles/MRMLDisplayableManager.dir/vtkMRMLModelDisplayableManager.cxx.o] Error 1
CMakeFiles/Makefile2:1725: recipe for target ‘Libs/MRML/DisplayableManager/CMakeFiles/MRMLDisplayableManager.dir/all’ failed
make[4]: *** [Libs/MRML/DisplayableManager/CMakeFiles/MRMLDisplayableManager.dir/all] Error 2
Makefile:151: recipe for target ‘all’ failed
make[3]: *** [all] Error 2
CMakeFiles/Slicer.dir/build.make:143: recipe for target ‘Slicer-prefix/src/Slicer-stamp/Slicer-build’ failed
make[2]: *** [Slicer-prefix/src/Slicer-stamp/Slicer-build] Error 2
CMakeFiles/Makefile2:103: recipe for target ‘CMakeFiles/Slicer.dir/all’ failed
make[1]: *** [CMakeFiles/Slicer.dir/all] Error 2
Makefile:83: recipe for target ‘all’ failed
make: *** [all] Error 2

i have repeat many times, i can’t find solution via intertet . so ,i need help, who can tell me what should i do ? please!!!

Thanks for reporting this. It seems that you’ve forced Slicer to build with an old VTK version (or you have a build tree that was created before Slicer switched VTK version).

Slicer master requires Q5/VTK9 as described in build instructions.

Occasionally we still fix build errors with VTK7/Qt4 to make transition easier, but after release of Slicer-4.10 (within a few weeks), master version will not be compatible VTK7/Qt4 anymore. Therefore, it is recommended to update your build environment as soon as you can.