[Insight-developers] FW: Trouble adding data

Bill Lorensen bill.lorensen at gmail.com
Thu Jul 21 12:20:53 EDT 2011


I did the same thing the first time I added data.

So, I changed my work-flow if I'm bypassing a complete build...

On Thu, Jul 21, 2011 at 12:18 PM, M Stauffer (V) <mstauff at verizon.net>wrote:

> OK sorry, I got it working. I just found out I have to build ITKData
> module to get the data files included in the build dir. Now it works
> nicely, great. I wasn't building the whole project, and didn't have
> build all modules enabled. If ITKData were always enabled to build,
> would it mess up the part that only pulls down data files that are
> referenced in tests that are actually built?
>
> -Michael
>
> >-----Original Message-----
> >From: M Stauffer (V) [mailto:mstauff at verizon.net]
> >Sent: Thursday, July 21, 2011 11:51 AM
> >To: ITK-dev-list-mstauff at ver (insight-developers at itk.org)
> >Subject: Trouble adding data
> >
> >Hi,
> >
> >I'm having trouble adding test data using the new method
> >described here:
> >http://www.itk.org/Wiki/ITK/Git/Develop/Data
> >
> >But it's not working. After doing all the steps and pushing to
> >gerrit, I don't get the data file in build/ExternalData after
> >configuring with cmake or doing a build of the test driver
> >that references the data.
> >
> >Here's what I did:
> >
> >Add Core/Common/test/Baseline/outNoInv.mhd (I just grabbed the
> >first tiny file I found for testing)
> >
> >Add ref to DATA{Baseline/outNoInv.mhd} in CMakeLists.txt, to a
> >test in ITKCommon1TestDriver
> >
> >Run cmake . :
> >-- Linked Modules/Core/Common/test/Baseline/outNoInv.mhd.md5
> >to ExternalData MD5/881fc5ee940d84524e03f2a082807a39
> >
> >Found md5 file :
> >./Modules/Core/Common/test/Baseline/.ExternalData_MD5_881fc5ee9
> 40d84524e03f2a082807a39
> >
> >Added files to commit :
> >#      new file:   Modules/Core/Common/test/Baseline/outNoInv.mhd.md5
> >#      modified:   Modules/Core/Common/test/CMakeLists.txt
> >
> >git commit :
> >Modules/Core/Common/test/Baseline/outNoInv.mhd.md5: Added
> >content to Git at refs/data/MD5/881fc5ee940d84524e03f2a082807a39
> >Modules/Core/Common/test/Baseline/outNoInv.mhd.md5: Added
> >content to local store at
> >.ExternalData/MD5/881fc5ee940d84524e03f2a082807a39
> >Content link
> >Modules/Core/Common/test/Baseline/outNoInv.mhd.md5 ->
> >.ExternalData/MD5/881fc5ee940d84524e03f2a082807a39
> >
> >ls .ExternalData/MD5/ :
> >44b09185340eaa8fb031c1ff04f76cdf  881fc5ee940d84524e03f2a082807a39
> >763b7b24e7899cb99cfed88df281f141
> >
> >git gerrit-push:
> >To mstauff at review.source.kitware.com:ITK
> >*
> >0a93aec2241fe78297c0a597349f01a23a5e8975:refs/data/commits/0a93
> >aec2241fe78297c0a597349f01a23a5e8975   [new branch]
> >*      HEAD:refs/for/master/TestAddData        [new branch]
> >Done
> >Pushed refs/data and removed local copy:
> >  MD5/881fc5ee940d84524e03f2a082807a39
> >
> >Change set: http://review.source.kitware.com/#change,2161
> >
> >Wait 15 minutes...
> >
> >build ITKCommon1TestDriver - no build/ExternalData dir created
> >rm CMakeCache.txt
> >run ccmake - no build/ExternalData dir created
> >build ITKCommon1TestDriver - no build/ExternalData dir created
> >
>
> _______________________________________________
> Powered by 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110721/bf3ce87f/attachment.htm>


More information about the Insight-developers mailing list