[ITK] [ITK-users] linking error ITK, VTK, Qt5
Arnaud Gelas
arnaudgelas at gmail.com
Wed Oct 29 11:11:58 EDT 2014
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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20141029/bb4eb397/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