<div dir="ltr">Thank you very much for looking into it!<div><br></div><div>I am also digging on my side. It seems to me that the problems come from ${vtk-module}_EXPORT_CODE_INSTALL which is not exported into corresponding installed ${vtk-module} cmake file. Normally this cmake variable should contain</div><div><br></div><div>"find_package( Qt5Widgets QUIET)" given the path corresponding dir. But it seems it is not present in the install tree for all module dependent on Qt5...</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 29, 2014 at 4:50 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Great. That means it is a VTK issue. I'm downloading qt5 on my fedora<br>
system. I'll see if I can reproduce there.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Wed, Oct 29, 2014 at 11:46 AM, Arnaud Gelas <<a href="mailto:arnaudgelas@gmail.com">arnaudgelas@gmail.com</a>> wrote:<br>
> Bill,<br>
><br>
> Same link error with this example...<br>
><br>
><br>
> On Wed, Oct 29, 2014 at 4:31 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Arnaud,<br>
>><br>
>> Can you try to build one of the ITK wiki examples against your<br>
>> installed VTK? This might help narrow down the problem. Whether it is<br>
>> a VTK of ITK issue.<br>
>> <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Arrow" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Arrow</a><br>
>><br>
>> Bill<br>
>><br>
>> On Wed, Oct 29, 2014 at 11:11 AM, Arnaud Gelas <<a href="mailto:arnaudgelas@gmail.com">arnaudgelas@gmail.com</a>><br>
>> wrote:<br>
>> > Mike,<br>
>> ><br>
>> > It is difficult to refer to one single CMakeLists.txt, since it is tied<br>
>> > up<br>
>> > to ITK's modularization.<br>
>> ><br>
>> > But here are the files to look at:<br>
>> ><br>
>> ><br>
>> > <a href="https://github.com/Kitware/ITK/blob/master/Modules/Bridge/VtkGlue/CMakeLists.txt" target="_blank">https://github.com/Kitware/ITK/blob/master/Modules/Bridge/VtkGlue/CMakeLists.txt</a><br>
>> ><br>
>> > <a href="https://github.com/Kitware/ITK/blob/master/Modules/Bridge/VtkGlue/itk-module-init.cmake" target="_blank">https://github.com/Kitware/ITK/blob/master/Modules/Bridge/VtkGlue/itk-module-init.cmake</a><br>
>> ><br>
>> > <a href="https://github.com/Kitware/ITK/blob/master/Modules/Bridge/VtkGlue/itk-module.cmake" target="_blank">https://github.com/Kitware/ITK/blob/master/Modules/Bridge/VtkGlue/itk-module.cmake</a><br>
>> ><br>
>> > Best<br>
>> > Arnaud<br>
>> ><br>
>> > On Wed, Oct 29, 2014 at 4:03 PM, Mike Chinander <<a href="mailto:chinander@gmail.com">chinander@gmail.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> Can you share your CMakeLists.txt file? Are you using something like<br>
>> >> the<br>
>> >> following commands:<br>
>> >><br>
>> >> ADD_EXECUTABLE(myexe ${MYSRCS})<br>
>> >> TARGET_LINK_LIBRARIES(myexe Qt5::Widgets ${ITK_LIBRARIES}<br>
>> >> ${VTK_LIBRARIES})<br>
>> >><br>
>> >> On Wed, Oct 29, 2014 at 9:48 AM, Arnaud Gelas <<a href="mailto:arnaudgelas@gmail.com">arnaudgelas@gmail.com</a>><br>
>> >> wrote:<br>
>> >>><br>
>> >>> Bill,<br>
>> >>><br>
>> >>> I can also confirm everything builds fine if VTK is not compiled with<br>
>> >>> Qt5<br>
>> >>> (which is part of my requirements...)<br>
>> >>><br>
>> >>><br>
>> >>><br>
>> >>> On Wed, Oct 29, 2014 at 3:37 PM, Bill Lorensen<br>
>> >>> <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>> >>> wrote:<br>
>> >>>><br>
>> >>>> Arnaud,<br>
>> >>>><br>
>> >>>> I just tried an ITK build against an installed VTK and it built just<br>
>> >>>> fine.<br>
>> >>>><br>
>> >>>> Bill<br>
>> >>>><br>
>> >>>><br>
>> >>>> On Wed, Oct 29, 2014 at 8:32 AM, Bill Lorensen<br>
>> >>>> <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>> >>>> wrote:<br>
>> >>>> > I did not build against an installed VTK.<br>
>> >>>> ><br>
>> >>>> > On Wed, Oct 29, 2014 at 8:23 AM, Arnaud Gelas<br>
>> >>>> > <<a href="mailto:arnaudgelas@gmail.com">arnaudgelas@gmail.com</a>><br>
>> >>>> > wrote:<br>
>> >>>> >> Bill,<br>
>> >>>> >><br>
>> >>>> >> It seems builds fine as long as Qt5 is not involved in the process<br>
>> >>>> >> (?)<br>
>> >>>> >><br>
>> >>>> >> I just wonder if there is not something missing in vtk's cmake<br>
>> >>>> >> installed<br>
>> >>>> >> files to help finding Qt5::Widgets (?), or if we could only use<br>
>> >>>> >> required<br>
>> >>>> >> libraries from vtk which should not depend on Qt5 (?)<br>
>> >>>> >><br>
>> >>>> >> Thanks,<br>
>> >>>> >> Arnaud<br>
>> >>>> >><br>
>> >>>> >> On Wed, Oct 29, 2014 at 1:15 PM, Bill Lorensen<br>
>> >>>> >> <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>> >>>> >> wrote:<br>
>> >>>> >>><br>
>> >>>> >>> Arnaud,<br>
>> >>>> >>><br>
>> >>>> >>> I build ITK with itkVtkGlue fine on my Mac, but I build against<br>
>> >>>> >>> the<br>
>> >>>> >>> nightly VTK. I'm not sure if that makes a difference.<br>
>> >>>> >>><br>
>> >>>> >>> Bill<br>
>> >>>> >>><br>
>> >>>> >>><br>
>> >>>> >>> On Wed, Oct 29, 2014 at 6:26 AM, Arnaud Gelas<br>
>> >>>> >>> <<a href="mailto:arnaudgelas@gmail.com">arnaudgelas@gmail.com</a>><br>
>> >>>> >>> wrote:<br>
>> >>>> >>> > Hi all,<br>
>> >>>> >>> ><br>
>> >>>> >>> > I am trying to compile on mac (10.8.5) ITKVtkGlue with vtk<br>
>> >>>> >>> > 6.1.0<br>
>> >>>> >>> > (built<br>
>> >>>> >>> > with Qt5). Note I use cmake 2.8.12...<br>
>> >>>> >>> ><br>
>> >>>> >>> > I get link 1 error:<br>
>> >>>> >>> > ld library not found for -lQt5::Widgets<br>
>> >>>> >>> ><br>
>> >>>> >>> > Any idea how to fix it?<br>
>> >>>> >>> ><br>
>> >>>> >>> > Thanks,<br>
>> >>>> >>> > Arnaud<br>
>> >>>> >>> > _____________________________________<br>
>> >>>> >>> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> >>>> >>> ><br>
>> >>>> >>> > Visit other Kitware open-source projects at<br>
>> >>>> >>> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> >>>> >>> ><br>
>> >>>> >>> > Kitware offers ITK Training Courses, for more information<br>
>> >>>> >>> > visit:<br>
>> >>>> >>> > <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
>> >>>> >>> ><br>
>> >>>> >>> > Please keep messages on-topic and check the ITK FAQ at:<br>
>> >>>> >>> > <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>> >>>> >>> ><br>
>> >>>> >>> > Follow this link to subscribe/unsubscribe:<br>
>> >>>> >>> > <a href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
>> >>>> >>><br>
>> >>>> >>><br>
>> >>>> >>><br>
>> >>>> >>> --<br>
>> >>>> >>> Unpaid intern in BillsBasement at noware dot com<br>
>> >>>> >><br>
>> >>>> >><br>
>> >>>> ><br>
>> >>>> ><br>
>> >>>> ><br>
>> >>>> > --<br>
>> >>>> > Unpaid intern in BillsBasement at noware dot com<br>
>> >>>><br>
>> >>>><br>
>> >>>><br>
>> >>>> --<br>
>> >>>> Unpaid intern in BillsBasement at noware dot com<br>
>> >>><br>
>> >>><br>
>> >>><br>
>> >>> _____________________________________<br>
>> >>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> >>><br>
>> >>> Visit other Kitware open-source projects at<br>
>> >>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> >>><br>
>> >>> Kitware offers ITK Training Courses, for more information visit:<br>
>> >>> <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
>> >>><br>
>> >>> Please keep messages on-topic and check the ITK FAQ at:<br>
>> >>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>> >>><br>
>> >>> Follow this link to subscribe/unsubscribe:<br>
>> >>> <a href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
>> >>><br>
>> >><br>
>> >><br>
>> >> _____________________________________<br>
>> >> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> >><br>
>> >> Visit other Kitware open-source projects at<br>
>> >> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> >><br>
>> >> Kitware offers ITK Training Courses, for more information visit:<br>
>> >> <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
>> >><br>
>> >> Please keep messages on-topic and check the ITK FAQ at:<br>
>> >> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>> >><br>
>> >> Follow this link to subscribe/unsubscribe:<br>
>> >> <a href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
>> >><br>
>> ><br>
>> ><br>
>> > _____________________________________<br>
>> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> ><br>
>> > Visit other Kitware open-source projects at<br>
>> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> ><br>
>> > Kitware offers ITK Training Courses, for more information visit:<br>
>> > <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
>> ><br>
>> > Please keep messages on-topic and check the ITK FAQ at:<br>
>> > <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>> ><br>
>> > Follow this link to subscribe/unsubscribe:<br>
>> > <a href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Unpaid intern in BillsBasement at noware dot com<br>
><br>
><br>
<br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</div></div></blockquote></div><br></div>