[vtkusers] Error linking QVTK

Nico Del Piano ndel314 at gmail.com
Wed Aug 10 12:46:21 EDT 2016


Hi Cory and Ben,

this is how I've configured VTK so far:

 Qt5Core_DIR
/home/user/Qt/5.7/gcc_64/lib/cmake/Qt5Core
 Qt5Gui_DIR
/home/user/Qt/5.7/gcc_64/lib/cmake/Qt5Gui
 Qt5Sql_DIR
/home/user/Qt/5.7/gcc_64/lib/cmake/Qt5Sql
 Qt5UiPlugin_DIR
/home/user/Qt/5.7/gcc_64/lib/cmake/Qt5UiPlugin
 Qt5Widgets_DIR
/home/user/Qt/5.7/gcc_64/lib/cmake/Qt5Widgets
 Qt5X11Extras_DIR
/home/user/Qt/5.7/gcc_64/lib/cmake/Qt5X11Extras
 Qt5_DIR                          /home/user/Qt/5.7/gcc_64/lib/cmake/Qt5
...
VTK_Group_Qt                     ON
...
VTK_QT_VERSION                   5

I guess this configuration follows your suggestions. So the problem
might be another. Where should I find QVTK?

Thanks

2016-08-10 12:12 GMT-03:00 Ben Boeckel <ben.boeckel at kitware.com>:
> On Wed, Aug 10, 2016 at 12:05:29 -0300, Nico Del Piano wrote:
>> Hey Cory, thanks for your reply.
>>
>> Yes, that option is activated, and I have VTK installed.
>>
>> Also, something weird happens, when configuring with cmake, if I try
>> to change the version of `qmake` (to 5.7), it changes:
>>
>> This is by default:
>> QT_QMAKE_EXECUTABLE              /usr/bin/qmake-qt4
>>
>> I change to:
>> QT_QMAKE_EXECUTABLE              /home/user/Qt/5.7/bin/qmake
>>
>> and it goes back automatically:
>> QT_QMAKE_EXECUTABLE              /usr/bin/qmake-qt4
>
> There's the VTK_QT_VERSION flag which you need to set to "5" in order to
> get Qt5. QT_QMAKE_EXECUTABLE is always a Qt4 variable.
>
> --Ben


More information about the vtkusers mailing list