[Insight-developers] why can't a file in Modules/Filtering/DiffusionTensorImage/include find itkSpatialObject.h?

Williams, Norman K norman-k-williams at uiowa.edu
Fri Mar 25 17:09:07 EDT 2011


Believe me, you need to document the crap out of this stuff.  I have
nearly 30 years of experience figuring out programming problems based on
incomplete or incorrect documentation.  If one of our grad students ran
into this they'd be baffled for a whole day before they came to me to
figure it out for them.


On 3/25/11 3:49 PM, "Xiaoxiao Liu" <xiaoxiao.liu at kitware.com> wrote:

>You are ahead of us. :)
>Looks like we don't need to put any instructions for using the modules...
>(don't worry, we will still have to do that)
>
>
>On Fri, Mar 25, 2011 at 4:21 PM, Williams, Norman K
><norman-k-williams at uiowa.edu> wrote:
>
>Answer my own question: I have to add ITK-SpatialObjects to the itk_module
>macro in Modules/Filtering/DiffusionTensorImage/itk-module.cmake
>
>Bonus fun fact: If you misspell any of the module names in the DEPENDS
>clause of itk_module, CMake throws a bogus warning about your
>build-directory already being in use for ITK.
>
>
>
>
>On 3/25/11 2:47 PM, "Williams, Norman K" <norman-k-williams at uiowa.edu>
>wrote:
>
>>Is there some special mojo involved in getting the
>>Modules/Core/SpatialObjects/include into the include path?
>>I'm modifying itk::DiffusionTensor3DReconstructionImageFilter to take
>>SpatialObjects as masks and the compilation is failing for
>>itkDiffusionTensor3DReconstructionImageFilterTest, saying
>>
>>[ 63%] Building CXX object
>>Modules/Filtering/DiffusionTensorImage/test/CMakeFiles/ITK-DiffusionTenso
>>r
>>I
>>mageTestDriver.dir/itkDiffusionTensor3DReconstructionImageFilterTest.cxx.
>>o
>>In file included from
>>ITK/Modules/Filtering/DiffusionTensorImage/test/itkDiffusionTensor3DRecon
>>s
>>t
>>ructionImageFilterTest.cxx:18:
>>ITK/Modules/Filtering/DiffusionTensorImage/include/itkDiffusionTensor3DRe
>>c
>>o
>>nstructionImageFilter.h:22:30: error: itkSpatialObject.h: No such file or
>>directory
>>In file included from
>>ITK/Modules/Filtering/DiffusionTensorImage/include/itkDiffusionTensor3DRe
>>c
>>o
>>nstructionImageFilter.h:324,
>>                 from
>>ITK/Modules/Filtering/DiffusionTensorImage/test/itkDiffusionTensor3DRecon
>>s
>>t
>>ructionImageFilterTest.cxx:18:
>>ITK/Modules/Filtering/DiffusionTensorImage/include/itkDiffusionTensor3DRe
>>c
>>o
>
>
>>nstructionImageFilter.txx:25:39: error: itkImageMaskSpatialObject.h: No
>>such file or directory
>>
>>
>>--
>>Kent Williams norman-k-williams at uiowa.edu
>>
>>
>>
>>
>>
>>
>>________________________________
>>Notice: This UI Health Care e-mail (including attachments) is covered by
>>the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is
>>confidential and may be legally privileged.  If you are not the intended
>>recipient, you are hereby notified that any retention, dissemination,
>>distribution, or copying of this communication is strictly prohibited.
>>Please reply to the sender that you have received the message in error,
>>then delete it.  Thank you.
>>________________________________
>>_______________________________________________
>>Powered by www.kitware.com <http://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://kitware.com/products/protraining.html
>>
>>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://www.itk.org/mailman/listinfo/insight-developers
>
>
>
>________________________________
>Notice: This UI Health Care e-mail (including attachments) is covered by
>the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is
>confidential and may be legally privileged.  If you are not the intended
>recipient, you are hereby notified that any retention, dissemination,
>distribution, or copying of this communication is strictly prohibited.
>Please reply to the sender that you have received the message in error,
>then delete it.  Thank you.
>
>________________________________
>_______________________________________________
>Powered by www.kitware.com <http://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://kitware.com/products/protraining.html
>
>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://www.itk.org/mailman/listinfo/insight-developers
>
>
>
>
>
>
>
>
>--
>---------------------------------------------
>Xiaoxiao Liu, Ph.D.R & D Engineer
>Kitware Inc <http://www.kitware.com/>.
>
>Clifton Park, NYPhone: (518) 881-4924  or  (518) 371-3971 x124
>
>
>
>
>
>
>
>
>
>



________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________


More information about the Insight-developers mailing list