Last Updated: February 25, 2016
·
7.398K
· fbeeper

VTK 6 + Qt 5

You've probably noticed that VTK 6.0 does not support Qt5. However it is possible to get there if you want. You can get to the latest release from git (that, at some point will be 6.1) and you'll be able to run it with Qt5. It is easy, but as far as I know, nobody posted the exact procedure to make it even easier :P

Clone the repos:

git clone git://vtk.org/VTK.git

git clone git://vtk.org/VTKData.git

Run cmake for VTK and make sure to:

Check VTK_Group_Qt

Change VTK_QT_VERSION to 5

And add CMAKE_PREFIX_PATH to the path of your Qt5 build

This is what I needed on MacOS + Qt 5.1.1.

I think I won't be different on other platforms.

Enjoy!

3 Responses
Add your response

having trouble with
Qt5Widgets_DIR-NOTFOUND
on win8 Qt5.2 MSVC2010

over 1 year ago ·

@yoavmil That can be fixed by setting CMAKE_PREFIX_PATH. That would be something like C:\Qt\5.2\msvc2010_x64 or C:\Qt\5.2\msvc2010 (I have no idea if that's the correct path on windows 8, I'm also using a different version of Qt, and a different version of visual studio).

over 1 year ago ·

@yoavmil You need to set QTQMAKEEXECUTABLE

over 1 year ago ·