[ITK] Error in compilation of ITK

Matt McCormick matt.mccormick at kitware.com
Thu Oct 30 15:55:46 EDT 2014


Thanks for following up on the thread, Sam.

On Thu, Oct 30, 2014 at 11:37 AM, Sam Raby <rabysam28 at gmail.com> wrote:
> I thought to close this thread that I had started, using the following link:
>
> http://itk-users.7.n7.nabble.com/ITK-users-linking-error-ITK-VTK-Qt5-tt34780.html#none
>
> Thanks for fixing this.
>
> -S
>
>
>
> On Sat, Mar 29, 2014 at 4:28 PM, Matt McCormick <matt.mccormick at kitware.com>
> wrote:
>>
>> Hi Sam,
>>
>> There may be more answers for this question on the CMake list.
>>
>> HTH,
>> Matt
>>
>> On Fri, Mar 28, 2014 at 6:06 PM, Sam Raby <rabysam28 at gmail.com> wrote:
>> > Thanks.
>> > fyi, I just complied ITK-4.5.0, and I got the same compilation error.
>> >
>> > -S
>> >
>> >
>> > On Fri, Mar 28, 2014 at 5:00 PM, Michka Popoff <michkapopoff at gmail.com>
>> > wrote:
>> >>
>> >> Yes, seems to be the same error.
>> >>
>> >> In fact, Qt5 is only supported by VTK since 6.1.
>> >> The ITK community has not set up tests for this and I think not a lot
>> >> of
>> >> people tried VTK+ITK+Qt5, so there is no guarantee it will work out of
>> >> the
>> >> box.
>> >> I think the errors comes because ITK includes VTK, and VTK includes
>> >> Qt5.
>> >> But I don't exactly know were the error is coming from.
>> >>
>> >> Maybe somebody else on the list has an an idea ? This goes beyond my
>> >> capabilities. But we need a fix for this :)
>> >>
>> >> On 28 mars 2014, at 22:52, Sam Raby <rabysam28 at gmail.com> wrote:
>> >>
>> >> Michka, I came acroos the following link. I have not tried it though,
>> >> as I
>> >> was not sure about it:
>> >>
>> >> http://markmail.org/message/fjyiphxyv5wnoplp
>> >>
>> >>
>> >>
>> >>
>> >> On Fri, Mar 28, 2014 at 4:42 PM, Sam Raby <rabysam28 at gmail.com> wrote:
>> >>>
>> >>> I have checked out the latest version of ITK and VTK.
>> >>>
>> >>> My VTK is Qt-enabled. The QT version is 5.0-2. Is there any variable
>> >>> that
>> >>> I should set in ITK ccmake, so that it can see my Qt? I did not know
>> >>> ITK is
>> >>> sort of linked with Qt during its compilation?
>> >>> thanks,
>> >>>
>> >>>
>> >>> On Fri, Mar 28, 2014 at 4:32 PM, Michka Popoff
>> >>> <michkapopoff at gmail.com>
>> >>> wrote:
>> >>>>
>> >>>> Hi
>> >>>>
>> >>>> which version of ITK and VTK are you trying to compile ?
>> >>>>
>> >>>> The error message is telling you that it can not find Qt5. Have you
>> >>>> Qt5
>> >>>> installed ?
>> >>>>
>> >>>> Michka
>> >>>>
>> >>>> Le 28 mars 2014 à 22:28, Sam Raby a écrit :
>> >>>>
>> >>>> Hello,
>> >>>>
>> >>>> I am compliining ITK wiith ItkVtkGlue ON. ITK and VTK both are the
>> >>>> latest versuib that I got from github.
>> >>>> I am getting the following error and was wondering whether you know
>> >>>> why
>> >>>> the complication encounters the following error, as I could not
>> >>>> figure this
>> >>>> out?
>> >>>>
>> >>>> [ 69%] Building CXX object
>> >>>>
>> >>>> Modules/Core/Common/test/CMakeFiles/ITKCommon1TestDriver.dir/itkImageRandomIteratorTest.cxx.o
>> >>>> [ 70%] Building CXX object
>> >>>>
>> >>>> Modules/Core/Common/test/CMakeFiles/ITKCommon2TestDriver.dir/itkTreeContainerTest.cxx.o
>> >>>> [ 70%] Building CXX object
>> >>>>
>> >>>> Modules/Core/Common/test/CMakeFiles/ITKCommon2TestDriver.dir/itkVariableLengthVectorTest.cxx.o
>> >>>> [ 70%] Building CXX object
>> >>>>
>> >>>> Modules/Core/Common/test/CMakeFiles/ITKCommon2TestDriver.dir/itkSpatialFunctionTest.cxx.o
>> >>>> /usr/bin/ld: cannot find -lQt5::Widgets
>> >>>> collect2: ld returned 1 exit status
>> >>>> make[2]: *** [bin/ITKVtkGlueTestDriver] Error 1
>> >>>> make[1]: ***
>> >>>> [Modules/Bridge/VtkGlue/test/CMakeFiles/ITKVtkGlueTestDriver.dir/all]
>> >>>> Error
>> >>>> 2
>> >>>> make[1]: *** Waiting for unfinished jobs....
>> >>>>
>> >>>>
>> >>>> Thanks
>> >>>>
>> >>>> _______________________________________________
>> >>>> Community mailing list
>> >>>> Community at itk.org
>> >>>> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>> >>>>
>> >>>>
>> >>>
>> >>
>> >>
>> >
>> >
>> > _______________________________________________
>> > Community mailing list
>> > Community at itk.org
>> > http://public.kitware.com/cgi-bin/mailman/listinfo/community
>> >
>
>


More information about the Community mailing list