[Insight-developers] Library dependency Oddness, IO for testing modules
Brad King
brad.king at kitware.com
Thu Feb 16 13:02:42 EST 2012
On 2/15/2012 3:10 PM, Bradley Lowekamp wrote:
>Could not create IO object for file .../HeadMRVolumeMaximumProjection0.tif
> Tried to create one of the following:
[snip]
> TIFFImageIO
If it tried TIFFImageIO then it is not a registration problem.
The CreateTestDriver macro handles registration of all main IO types:
Modules/Core/TestKernel/CreateTestDriver.cmake
Modules/Core/TestKernel/include/itkTestDriverIncludeRequiredIOFactories.h
The tests for each module are built in a pseudo-module for the module's
"test" directory. It is to this test module that TEST_DEPENDS applies.
They all depend on TestKernel which depends on all the IO types:
$ cat Modules/Core/TestKernel/itk-module.cmake
...
itk_module(ITKTestKernel
DEPENDS
...
ITKIOTIFF
If it did not then the test drivers would not link.
I do not think it is a problem with module dependencies or IO registration.
Can you verify the input file existence and type and reproduce the failure
when running the test by hand in the dashboard build tree?
-Brad K
More information about the Insight-developers
mailing list