[vtkusers] Error linking QVTK

Nico Del Piano ndel314 at gmail.com
Wed Aug 10 13:17:11 EDT 2016


Cory,

let me know if you need the content of another file.

These below are from my current project:

CMakeLists.txt : http://pastebin.com/dftCMHrS
CMakeFiles/Makefile.cmake : http://pastebin.com/pba8vxqc

2016-08-10 14:04 GMT-03:00 Cory Quammen <cory.quammen at kitware.com>:
> Nico,
>
> That looks good. Could you provide details on how you are setting up the
> link libraries for your project? Posting your CMake code is helpful.
>
> Thanks,
> Cory
>
> On Wed, Aug 10, 2016 at 12:46 PM, Nico Del Piano <ndel314 at gmail.com> wrote:
>>
>> 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
>
>
>
>
> --
> Cory Quammen
> R&D Engineer
> Kitware, Inc.


More information about the vtkusers mailing list