[vtkusers] Error linking QVTK
Cory Quammen
cory.quammen at kitware.com
Wed Aug 10 13:04:48 EDT 2016
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160810/2246825d/attachment.html>
More information about the vtkusers
mailing list