[Insight-developers] WrapITK build errors

Bradley Lowekamp blowekamp at mail.nih.gov
Tue May 15 15:59:33 EDT 2012


Yes, that error message was from the previously linked page.

I think the following .wrap just needs to be updated for the templates you added:

http://itk.org/gitweb?p=ITK.git;a=blob;f=Modules/Numerics/Optimizersv4/wrapping/itkObjectToObjectMetric.wrap;h=0d772c9400ac1469187b5ea205d2880189de568c;hb=HEAD

Brad

On May 15, 2012, at 2:23 PM, M Stauffer -V- wrote:

> Oh yes, sorry. itkObjectToObjectMetric was refactored to be templated, and inherit from a new class ObjectToObjectMetricBase. The other metricv4 classes were modified accordingly. I always forget that the base of the metrics are in the optimizer module.
>  
> Not sure why this would fail, though. Does the wrapping depending on manual definition of template use? Or does the build system need a clean rebuild? BTW, where are the error messages you posted below found from the original cdash link you sent?
>  
> -M
> 
> From: Bradley Lowekamp [mailto:blowekamp at mail.nih.gov] 
> Sent: Tuesday, May 15, 2012 2:13 PM
> To: M Stauffer -V-
> Cc: Insight-developers at itk.org; 'Gaëtan Lehmann'
> Subject: Re: [Insight-developers] WrapITK build errors
> 
> It looks like swig failed to produce that output file. It produced the following error message:
> 
> /Users/cosmo-macpro/DEVEL/GITROOT/Dashboards/ITK-i386-WRAPITK/Wrapping/Modules/ITKOptimizersv4/itkObjectToObjectMetric.cxx:31: error: invalid use of template-name 'itk::ObjectToObjectMetric' without an argument list
> /Users/cosmo-macpro/DEVEL/GITROOT/Dashboards/ITK-i386-WRAPITK/Wrapping/Modules/ITKOptimizersv4/itkObjectToObjectMetric.cxx:32: error: 'template<unsigned int TFixedDimension, unsigned int TMovingDimension, unsigned int TVirtualDimension> class itk::ObjectToObjectMetric' used without template parameters
> /Users/cosmo-macpro/DEVEL/GITROOT/Dashboards/ITK-i386-WRAPITK/Wrapping/Modules/ITKOptimizersv4/itkObjectToObjectMetric.cxx:32: error: expected initializer before 'itkObjectToObjectMetric_Pointer'
> /Users/cosmo-macpro/DEVEL/GITROOT/Dashboards/ITK-i386-WRAPITK/Wrapping/Modules/ITKOptimizersv4/itkObjectToObjectMetric.cxx: In function 'void _cable_::force_instantiate()':
> /Users/cosmo-macpro/DEVEL/GITROOT/Dashboards/ITK-i386-WRAPITK/Wrapping/Modules/ITKOptimizersv4/itkObjectToObjectMetric.cxx:39: error: 'itkObjectToObjectMetric' was not declared in this scope
> /Users/cosmo-macpro/DEVEL/GITROOT/Dashboards/ITK-i386-WRAPITK/Wrapping/Modules/ITKOptimizersv4/itkObjectToObjectMetric.cxx:40: error: 'itkObjectToObjectMetric_Pointer' was not declared in this scope
> 
> Brad
> 
> On May 15, 2012, at 2:02 PM, M Stauffer -V- wrote:
> 
>> Hi Brad,
>>  
>> I don't know of a recent refactoring of the v4 optimizers. I don't know how the wrapping works, but I noticeed e.g. this filename in the error: itkGradientDescentOptimizerv4Java.cpp. The presumed original source file itkGradientDescentOptimizerv4.cxx is still in the same place it's been.
>>  
>> -M
>> 
>> From: insight-developers-bounces at itk.org [mailto:insight-developers-bounces at itk.org] On Behalf Of Bradley Lowekamp
>> Sent: Tuesday, May 15, 2012 12:43 PM
>> To: Insight-developers at itk.org Developers
>> Cc: Gaëtan Lehmann
>> Subject: [Insight-developers] WrapITK build errors
>> 
>> Hello,
>> 
>> It looks like we have been getting some WrapITK build errors since May1st:
>> 
>> http://open.cdash.org/viewBuildError.php?buildid=2279029
>> 
>> These appear to be related to some v4 registration optimizer refactoring.
>> 
>> Brad
>> 
>> ========================================================
>> Bradley Lowekamp  
>> Medical Science and Computing for
>> Office of High Performance Computing and Communications
>> National Library of Medicine 
>> blowekamp at mail.nih.gov
>> 
>> 
>> 
> 
> ========================================================
> Bradley Lowekamp  
> Medical Science and Computing for
> Office of High Performance Computing and Communications
> National Library of Medicine 
> blowekamp at mail.nih.gov
> 
> 
> 

========================================================
Bradley Lowekamp  
Medical Science and Computing for
Office of High Performance Computing and Communications
National Library of Medicine 
blowekamp at mail.nih.gov



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-developers/attachments/20120515/44516a38/attachment.htm>


More information about the Insight-developers mailing list