
QTDIR = C:\Qt\4.X.X (or whatever path you installed QT)Īppend the environment variable PATH to add Would better use VTK_DIR in /usr/local/lib/vtk-5.6 and QT_QMAKE_EXECUTABLE at /usr/local/bin/qmake-qt4. It would better match QT and VTK, that is if you build your VTK with you own QT (in /usr/local), you Set QT_QMAKE_EXECUTABLE to /usr/local/bin/qmake-qt4 (your build) or /usr/bin/qmake-qt4 (system bundle) Set VTK_DIR to /usr/local/lib/vtk-5.6 (your build) or /usr/lib/vtk-5.4 (system bundle) VTK you are using when you do cmake for your application. If you build your version of VTK in /usr/local (i.e VTK-5.6), you can choose which version of Since it will install most of header files and libraries that you need to build VTK and QT. This is still recommended even if you want to build the newer version for yourself This will install all header files and libraries that you need. Sudo apt-get install libqt4-dev libvtk5-qt4-dev To use Qt under LGPL, which is recommended by VTK, you have to have Debian 6.0 (Squeeze) or later.ĭebian(Squeeze) has QT 4.6 and Vtk 5.4 in it. The Designer plugin will simply not be loaded. At the time of this writing, the release with the package of Qt Libraries + Qt Creator is built against Qt 5.0.1, while the release of the stand alone QtCreator is built against Qt 4.8.3. NOTE: This does NOT work with versions of QtCreator built against Qt 5.0.1. Sudo cp ~/build/VTK/lib/libQVTKWidgetPlugin.so /usr/lib/qt4/plugins/designerĬp ~/build/VTK/bin/libQVTKWidgetPlugin.so /home/doriad/bin/qtcreator-2.6.2/bin/designer

Sudo cp ~/build/VTK/bin/libQVTKWidgetPlugin.so /usr/lib/qt4/plugins/designer

To use QVTKWidget in the QT4 Designer, you must: You must have configured Qt with -opengl (and maybe -multimedia?) or you will get a "Qt QTOPENGL library not found." CMake error when configuring VTK. Instead, set VTK_Group_Qt=OFF, Module_vtkGUISupportQt=ON, and Module_vtkGUISupportQtOpenGL=ON. If your Qt was not built with Webkit, VTK_Group_Qt will complain.

You must turn on the following options in the advanced VTK build configuration:
