[ITK] [ITK-users] linking error ITK, VTK, Qt5

Arnaud Gelas arnaudgelas at gmail.com
Wed Oct 29 12:19:35 EDT 2014


Bill,

Not sure what you mean by link.txt? Do you mean my CMakeCache.txt?

---
Note that if I had
find_package( Qt5Widgets QUIET ) into example's cmakelists, then it works
fine... I think it is really related to the cmake var
${vtk-module}_EXPORT_CODE_INSTALL in vtkModuleMacros.cmake


On Wed, Oct 29, 2014 at 5:13 PM, Bill Lorensen <bill.lorensen at gmail.com>
wrote:

> Built the arrow example against an installed ITK with Qt5 on fedora.
>
> Arnaud,
>
> Can you provide the link.txt file in the Arrow bin tree?
>
> Bill
>
> On Wed, Oct 29, 2014 at 11:50 AM, Bill Lorensen <bill.lorensen at gmail.com>
> wrote:
> > Great. That means it is a VTK issue. I'm downloading qt5 on my fedora
> > system. I'll see if I can reproduce there.
> >
> >
> > On Wed, Oct 29, 2014 at 11:46 AM, Arnaud Gelas <arnaudgelas at gmail.com>
> wrote:
> >> Bill,
> >>
> >> Same link error with this example...
> >>
> >>
> >> On Wed, Oct 29, 2014 at 4:31 PM, Bill Lorensen <bill.lorensen at gmail.com
> >
> >> wrote:
> >>>
> >>> Arnaud,
> >>>
> >>> Can you try to build one of the ITK wiki examples against your
> >>> installed VTK? This might help narrow down the problem. Whether it is
> >>> a VTK of ITK issue.
> >>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Arrow
> >>>
> >>> Bill
> >>>
> >>> On Wed, Oct 29, 2014 at 11:11 AM, Arnaud Gelas <arnaudgelas at gmail.com>
> >>> wrote:
> >>> > Mike,
> >>> >
> >>> > It is difficult to refer to one single CMakeLists.txt, since it is
> tied
> >>> > up
> >>> > to ITK's modularization.
> >>> >
> >>> > But here are the files to look at:
> >>> >
> >>> >
> >>> >
> https://github.com/Kitware/ITK/blob/master/Modules/Bridge/VtkGlue/CMakeLists.txt
> >>> >
> >>> >
> https://github.com/Kitware/ITK/blob/master/Modules/Bridge/VtkGlue/itk-module-init.cmake
> >>> >
> >>> >
> https://github.com/Kitware/ITK/blob/master/Modules/Bridge/VtkGlue/itk-module.cmake
> >>> >
> >>> > Best
> >>> > Arnaud
> >>> >
> >>> > On Wed, Oct 29, 2014 at 4:03 PM, Mike Chinander <chinander at gmail.com
> >
> >>> > wrote:
> >>> >>
> >>> >> Can you share your CMakeLists.txt file? Are you using something like
> >>> >> the
> >>> >> following commands:
> >>> >>
> >>> >> ADD_EXECUTABLE(myexe ${MYSRCS})
> >>> >> TARGET_LINK_LIBRARIES(myexe Qt5::Widgets ${ITK_LIBRARIES}
> >>> >> ${VTK_LIBRARIES})
> >>> >>
> >>> >> On Wed, Oct 29, 2014 at 9:48 AM, Arnaud Gelas <
> arnaudgelas at gmail.com>
> >>> >> wrote:
> >>> >>>
> >>> >>> Bill,
> >>> >>>
> >>> >>> I can also confirm everything builds fine if VTK is not compiled
> with
> >>> >>> Qt5
> >>> >>> (which is part of my requirements...)
> >>> >>>
> >>> >>>
> >>> >>>
> >>> >>> On Wed, Oct 29, 2014 at 3:37 PM, Bill Lorensen
> >>> >>> <bill.lorensen at gmail.com>
> >>> >>> wrote:
> >>> >>>>
> >>> >>>> Arnaud,
> >>> >>>>
> >>> >>>> I just tried an ITK build against an installed VTK and it built
> just
> >>> >>>> fine.
> >>> >>>>
> >>> >>>> Bill
> >>> >>>>
> >>> >>>>
> >>> >>>> On Wed, Oct 29, 2014 at 8:32 AM, Bill Lorensen
> >>> >>>> <bill.lorensen at gmail.com>
> >>> >>>> wrote:
> >>> >>>> > I did not build against an installed VTK.
> >>> >>>> >
> >>> >>>> > On Wed, Oct 29, 2014 at 8:23 AM, Arnaud Gelas
> >>> >>>> > <arnaudgelas at gmail.com>
> >>> >>>> > wrote:
> >>> >>>> >> Bill,
> >>> >>>> >>
> >>> >>>> >> It seems builds fine as long as Qt5 is not involved in the
> process
> >>> >>>> >> (?)
> >>> >>>> >>
> >>> >>>> >> I just wonder if there is not something missing in vtk's cmake
> >>> >>>> >> installed
> >>> >>>> >> files to help finding Qt5::Widgets (?), or if we could only use
> >>> >>>> >> required
> >>> >>>> >> libraries from vtk which should not depend on Qt5 (?)
> >>> >>>> >>
> >>> >>>> >> Thanks,
> >>> >>>> >> Arnaud
> >>> >>>> >>
> >>> >>>> >> On Wed, Oct 29, 2014 at 1:15 PM, Bill Lorensen
> >>> >>>> >> <bill.lorensen at gmail.com>
> >>> >>>> >> wrote:
> >>> >>>> >>>
> >>> >>>> >>> Arnaud,
> >>> >>>> >>>
> >>> >>>> >>> I build ITK with itkVtkGlue fine on my Mac, but I build
> against
> >>> >>>> >>> the
> >>> >>>> >>> nightly VTK. I'm not sure if that makes a difference.
> >>> >>>> >>>
> >>> >>>> >>> Bill
> >>> >>>> >>>
> >>> >>>> >>>
> >>> >>>> >>> On Wed, Oct 29, 2014 at 6:26 AM, Arnaud Gelas
> >>> >>>> >>> <arnaudgelas at gmail.com>
> >>> >>>> >>> wrote:
> >>> >>>> >>> > Hi all,
> >>> >>>> >>> >
> >>> >>>> >>> > I am trying to compile on mac (10.8.5) ITKVtkGlue with vtk
> >>> >>>> >>> > 6.1.0
> >>> >>>> >>> > (built
> >>> >>>> >>> > with Qt5). Note I use cmake 2.8.12...
> >>> >>>> >>> >
> >>> >>>> >>> > I get link 1 error:
> >>> >>>> >>> > ld library not found for -lQt5::Widgets
> >>> >>>> >>> >
> >>> >>>> >>> > Any idea how to fix it?
> >>> >>>> >>> >
> >>> >>>> >>> > Thanks,
> >>> >>>> >>> > Arnaud
> >>> >>>> >>> > _____________________________________
> >>> >>>> >>> > Powered by www.kitware.com
> >>> >>>> >>> >
> >>> >>>> >>> > Visit other Kitware open-source projects at
> >>> >>>> >>> > http://www.kitware.com/opensource/opensource.html
> >>> >>>> >>> >
> >>> >>>> >>> > Kitware offers ITK Training Courses, for more information
> >>> >>>> >>> > visit:
> >>> >>>> >>> > http://www.kitware.com/products/protraining.php
> >>> >>>> >>> >
> >>> >>>> >>> > Please keep messages on-topic and check the ITK FAQ at:
> >>> >>>> >>> > http://www.itk.org/Wiki/ITK_FAQ
> >>> >>>> >>> >
> >>> >>>> >>> > Follow this link to subscribe/unsubscribe:
> >>> >>>> >>> > http://public.kitware.com/mailman/listinfo/insight-users
> >>> >>>> >>>
> >>> >>>> >>>
> >>> >>>> >>>
> >>> >>>> >>> --
> >>> >>>> >>> Unpaid intern in BillsBasement at noware dot com
> >>> >>>> >>
> >>> >>>> >>
> >>> >>>> >
> >>> >>>> >
> >>> >>>> >
> >>> >>>> > --
> >>> >>>> > Unpaid intern in BillsBasement at noware dot com
> >>> >>>>
> >>> >>>>
> >>> >>>>
> >>> >>>> --
> >>> >>>> Unpaid intern in BillsBasement at noware dot com
> >>> >>>
> >>> >>>
> >>> >>>
> >>> >>> _____________________________________
> >>> >>> Powered by www.kitware.com
> >>> >>>
> >>> >>> Visit other Kitware open-source projects at
> >>> >>> http://www.kitware.com/opensource/opensource.html
> >>> >>>
> >>> >>> Kitware offers ITK Training Courses, for more information visit:
> >>> >>> http://www.kitware.com/products/protraining.php
> >>> >>>
> >>> >>> Please keep messages on-topic and check the ITK FAQ at:
> >>> >>> http://www.itk.org/Wiki/ITK_FAQ
> >>> >>>
> >>> >>> Follow this link to subscribe/unsubscribe:
> >>> >>> http://public.kitware.com/mailman/listinfo/insight-users
> >>> >>>
> >>> >>
> >>> >>
> >>> >> _____________________________________
> >>> >> Powered by www.kitware.com
> >>> >>
> >>> >> Visit other Kitware open-source projects at
> >>> >> http://www.kitware.com/opensource/opensource.html
> >>> >>
> >>> >> Kitware offers ITK Training Courses, for more information visit:
> >>> >> http://www.kitware.com/products/protraining.php
> >>> >>
> >>> >> Please keep messages on-topic and check the ITK FAQ at:
> >>> >> http://www.itk.org/Wiki/ITK_FAQ
> >>> >>
> >>> >> Follow this link to subscribe/unsubscribe:
> >>> >> http://public.kitware.com/mailman/listinfo/insight-users
> >>> >>
> >>> >
> >>> >
> >>> > _____________________________________
> >>> > Powered by www.kitware.com
> >>> >
> >>> > Visit other Kitware open-source projects at
> >>> > http://www.kitware.com/opensource/opensource.html
> >>> >
> >>> > Kitware offers ITK Training Courses, for more information visit:
> >>> > http://www.kitware.com/products/protraining.php
> >>> >
> >>> > Please keep messages on-topic and check the ITK FAQ at:
> >>> > http://www.itk.org/Wiki/ITK_FAQ
> >>> >
> >>> > Follow this link to subscribe/unsubscribe:
> >>> > http://public.kitware.com/mailman/listinfo/insight-users
> >>> >
> >>>
> >>>
> >>>
> >>> --
> >>> Unpaid intern in BillsBasement at noware dot com
> >>
> >>
> >
> >
> >
> > --
> > Unpaid intern in BillsBasement at noware dot com
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20141029/05c7af86/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list