<div dir="ltr"><div><div><div><div><div>Hey all!<br></div>I am new to VTK and CMake.I was able to successfully build VTK from cmake.I am now trying to build some examples,the most basic ones like Distance between points and Distance between a line and a point.<br></div><br>Every time I configure it using the cmake command,I get the error:<br><br>CMake Error at /usr/share/cmake-2.8/Modules/FindVTK.cmake:135 (message):<br>  VTK not found.  Set the VTK_DIR cmake cache entry to the directory<br>  containing VTKConfig.cmake.  This is either the root of the build tree, or<br>  PREFIX/lib/vtk for an installation.  For VTK 4.0, this is the location of<br>  UseVTK.cmake.  This is either the root of the build tree or<br>  PREFIX/include/vtk for an installation.<br>Call Stack (most recent call first):<br>  CMakeLists.txt:6 (find_package)<br><br></div><div>I googled for the error and went across the vtk-users archive where a solution was provided,that was by running ccmake.<br></div><div>Then I tried to run ccmake before building the example and changed the VTK_DIR path to the directory containing the VTKConfig.cmake file but it still gives the same error.It's getting really frustrating now.<br></div><br></div>Can somebody please suggest some fix?It would be really appreciated.<br><br></div>Thanks and Regards!<br></div>