[Insight-users] [Insight-developers] Cvs not compiling
Luis Ibanez
luis.ibanez at kitware.com
Wed Jun 18 18:39:04 EDT 2008
Hi Alex,
The problem has been fixed.
The CMakeLists.txt file of
Insight/Testing/Code/Review
was not adding the ITKReview library to the
TARGET_LINK_LIBRARIES of the itkReviewTest executable
The problem was shadowed when TRANSFORM_IO_FACTORIES
is ON, because that adds a dependency between ITKIO
and ITKReview in
Insight/Code/IO/CMakeLists.txt
Somehow the problem is that ITKReview sometimes
exists and sometimes doesn't, depending on whether
we have .cxx file in the Code/Review directory at
that point.
We probably should setup a CMake variable of the
sort ITKReview_LIBRARY_EXISTS...
Luis
-------------------
Luis Ibanez wrote:
>
> Hi Alex,
>
> That will be my fault... :-/
>
> I'm adding several contributions from the Insight Journal
> and I'm having trouble finding the source of that dependency
> problem.
>
> The build works fine when ITK_USE_TRANSFORM_IO_FACTORIES
> is enabled, I'm probably missing something obvious.
>
> I'm looking into it....
>
>
> Luis
>
>
>
> --------------------------
> Alexandre GOUAILLARD wrote:
>
>> Hi all,
>>
>> The cvs version of itk seems to be broken,
>> Morespecifically it is missing IO filters for some tests in REVIEW
>>
>> [ 98%] Built target itkNeuralNetworksHeaderTest
>> Undefined symbols:
>> "itk::PhilipsRECImageIO::PhilipsRECImageIO()", referenced from:
>> itk::PhilipsRECImageIO::New() in itkPhilipsRECImageIOTest.o
>> "itk::Bruker2DSEQImageIO::Bruker2DSEQImageIO()", referenced from:
>> itk::Bruker2DSEQImageIO::New() in itkBruker2DSEQImageIOTest.o
>> "typeinfo for itk::PhilipsRECImageIO", referenced from:
>> __ZTIN3itk17PhilipsRECImageIOE$non_lazy_ptr in
>> itkPhilipsRECImageIOTest.o
>> "typeinfo for itk::Bruker2DSEQImageIO", referenced from:
>> __ZTIN3itk18Bruker2DSEQImageIOE$non_lazy_ptr in
>> itkBruker2DSEQImageIOTest.o
>> "itk::VoxBoCUBImageIOFactory::VoxBoCUBImageIOFactory()", referenced
>> from:
>> itk::VoxBoCUBImageIOFactory::New() in itkVoxBoCUBImageIOTest.o
>> ld: symbol(s) not found
>> collect2: ld returned 1 exit status
>> make[2]: *** [bin/itkReviewTests] Error 1
>> make[1]: *** [Testing/Code/Review/CMakeFiles/itkReviewTests.dir/all]
>> Error 2
>> make: *** [all] Error 2
>>
>> Someone knows what the problem is? Am I missing anything?
>>
>> Alex.
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Insight-developers mailing list
>> Insight-developers at itk.org
>> http://www.itk.org/mailman/listinfo/insight-developers
>
>
More information about the Insight-users
mailing list