I need to insatll VTK with QT in ubuntu. I tried to do it in the way it's been described in the official web site but I get various kind of errors. Can someone please explain how to install VTK with Qt.
Asked
Active
Viewed 2,153 times
0
-
3show the error messages. – eyllanesc Aug 30 '18 at 18:14
-
This is not a forum or even a provide me a tutorial site. You need to show your work for us to help debug your problem. – drescherjm Aug 30 '18 at 18:36
-
Did you install the Qt development libraries in ubuntu using the package manager? Did you install CMake? – drescherjm Aug 30 '18 at 18:38
-
Also there are already vtk + Qt packages in ubuntu: https://packages.ubuntu.com/search?keywords=vtk the following one seems like a good choice: https://packages.ubuntu.com/bionic/libvtk7.1-qt – drescherjm Aug 30 '18 at 18:40
-
@drescherjm Yes I installed everything. Installed CMake as well. When I "make" a project it always give an error like this. Could NOT find Qt4 (missing: QT_QTWEBKIT_INCLUDE_DIR QT_QTWEBKIT_LIBRARY) (found version "4.8.6") – Rajitha Aug 30 '18 at 19:17
-
I even changed the flags like it's mentioned in this https://www.vtk.org/Wiki/VTK/Tutorials/QtSetup – Rajitha Aug 30 '18 at 19:19
-
You should not need webkit. I have never needed that in the 10+ years I have worked with vtk. Why are you using Qt4 instead of Qt5? – drescherjm Aug 30 '18 at 20:27
-
That is unless your project uses webkit. I don't use that. – drescherjm Aug 30 '18 at 20:30
-
I can say that this link: vtk.org/Wiki/VTK/Tutorials/QtSetup is a little old and out of date. With that said it the link does tell you how to work around the webkit errors: `If your Qt was not built with Webkit, VTK_Group_Qt will complain. Instead, set VTK_Group_Qt=OFF, Module_vtkGUISupportQt=ON, and Module_vtkGUISupportQtOpenGL=ON. You must have configured Qt with -opengl (and maybe -multimedia?) or you will get a "Qt QTOPENGL library not found." ` – drescherjm Aug 30 '18 at 20:31
-
@drescherjm Can you please provide me the steps to install it? I'm new to vtk and QT – Rajitha Aug 31 '18 at 05:40
-
You need to change these variables in cmake-gui before you generate. If they are not visible make sure the advanced checkbox is selected. – drescherjm Aug 31 '18 at 15:53
-
I found the solution. Thanks for the help :) . – Rajitha Aug 31 '18 at 15:54