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

Arnaud Gelas arnaudgelas at gmail.com
Wed Oct 29 11:09:21 EDT 2014


Bill,

Until now, I have been using Qt4; and I can confirm it was working fine!

It seems that Qt5 paths are not propagated in exported vtk cmake folder!?

I see 2 ways of fixing it:
* fixing exported cmake files in VTK to write proper information. Although
I am not sure what needs to be exported?
* reduce the libraries contained in VTK_LIBRARIES to the minimum set for
ITKVtkGlue and hope there is no propagated link to Qt5 (actually I don't
see why there should be) ?

What do you think?

Thanks,
Arnaud

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

> I have qt enabled for my vtk build, but I am using qt4.7.4.
>
>
> On Wed, Oct 29, 2014 at 10:50 AM, Sam Raby <rabysam28 at gmail.com> wrote:
> > I thought Arnaud means that if Qt5 is enabled in VTK, then ITK
> compilation
> > with itkVtkGlue-enabled will fail. I had this issue about 3-4 month ago
> and
> > I was not able to resolve it.
> >
> > -S
> >
> > On Wed, Oct 29, 2014 at 9:37 AM, 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
> >> _______________________________________________
> >> Community mailing list
> >> Community at itk.org
> >> http://public.kitware.com/mailman/listinfo/community
> >
> >
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20141029/60e39a01/attachment.html>


More information about the Insight-users mailing list