I just compile VTK 9.1.0 on RedHat version 8.3 and I try to compile the SimpleView example.
I have this message error but I don’t know how I can solve it.
CMake Warning at CMakeLists.txt:4 (find_package):
Found package configuration file:
home/user/Downloads/VTK-9.1.0/build/lib64/cmake/vtk-9.1/vtk-config.cmake
but it set VTK_FOUND to FALSE so package “VTK” is considered to be NOT FOUND.
Reason given by package:
Could not find the VTK package with the following required components:
GUISupportQt, ViewsQt.
VTK_DIR was good, I solved my problem by set VTK_MODULE_ENABLE_VTK_GuiSupportQt and VTK_MODULE_ENABLE_VTK_ViewsQt options to “YES” when I ran configure in CMake
as per README.md go to your VTK build directory, from there open ccmake ../path/to/vtk/source.
now the VTK_MODULE_ENABLE_VTK_GUISupportQt variable is hidden by default; hit the T key to see all variables
then you can search for variables by pressing / and entering a sub-string of your variabel; so maybe /GUISupportQt (beware: the search is case sensitive)
select the variable and hit enter until it shows “YES”
Then C for configure → G for generate and then you can re-build your VTK with your usual make command