How can I solve the error, Cannot build Rendering examples without VTK_SOURCE_DIR

The examples in the VTK source files are unmaintained. The majority of the examples have been moved to vtk-examples.

For example, the examples you refer to (and many more) are found in the rendering section.