I wanted to use QVTKOpenGLWidget in my Qt application. But I am unable to build VTK for Qt in the first place.
I am on Ubuntu 22.04, Qt version installed is 5.15.3, cmake is 3.22.1. I downloaded VTK-8.2.0 and its path is
- I made a directory in it called
- These were some of my flags after I had configured for
* VTK_Group_Qt ON * VTK_Group_Rendering ON * VTK_Group_StandAlone ON * VTK_PYTHON_VERSION 2 * VTK_QT_VERSION 5 * QT5_DIR /usr/lib/x86_64-linux-gnu/cmake/Qt5 * VTK_RENDERING_BACKEND OpenGL2 * BUILD_SHARED_LIBS ON * CMAKE_BUILD_TYPE Release * CMAKE_INSTALL_PREFIX /usr/local
- I generated the
- In the
builddirectory I ran
- It runs till 38% or 46% or 51% and gives error
make: *** [Makefile 136: all] Error 2
I have also tried
VTK_PYTHON_VERSION 3.6 with same result.
What am I doing wrong? If someone could be kind enough to help me