MantisBT - ITK
View Issue Details
0007315ITKpublic2008-07-09 11:042010-10-21 12:32
Hans Johnson 
Bradley Lowekamp 
normalmajoralways
closedfixed 
 
 
0007315: XCode 3.0 builds of ITK fail in vnl_matlab_header.h
> error: variable or field 'type' declared void Line Location
> vnl_matlab_header:16

Arnaud,

I just ran into this same problem on Monday. I am also using xcode 3.0 on MacOSX 10.5.4, CMAKE 2.6, and verified that the problem occurs on both PPC and Intel boxes.

I've not found how to fix this issue, but a dirty hack is to edit vnl_matlab_header.h:

Index: core/vnl/vnl_matlab_header.h
===================================================================
RCS file: /cvsroot/Insight/Insight/Utilities/vxl/core/vnl/vnl_matlab_header.h,v
retrieving revision 1.2
diff -r1.2 vnl_matlab_header.h
16,20c16,20
< vxl_int_32 type; // sum of one byte order, one storage specifier and one precision specifier
< vxl_int_32 rows;
< vxl_int_32 cols;
< vxl_int_32 imag;
< vxl_int_32 namlen;
---
> int type; // sum of one byte order, one storage specifier and one precision specifier
> int rows;
> int cols;
> int imag;
> int namlen;


This seems to allow compilation to finish (I've not yet had a chance to verify that correct results are given).

I'm not going to have time to look into fixing this.

Will you please submit this as a bug so that it is not forgotten about?

Hans



--
Hans J. Johnson, Ph.D.
Hans-johnson@uiowa.edu

278 GH
The University of Iowa
Iowa City, IA 52241
(319) 353 8587


> From: Arnaud Gelas <arnaud_gelas@hms.harvard.edu>
> Date: Wed, 9 Jul 2008 10:54:42 -0400
> To: ITK <insight-developers@itk.org>
> Subject: [Insight-developers] compilation errors with xcode 3.0 on Mac OS X
> 10.5.4
>
> Hi guys,
>
> I have been trying to compile itk with xcode 3.0 on Mac OS X 10.5.4,
> and I got the following errors:
>
> error: variable or field 'type' declared void Line Location
> vnl_matlab_header:16
> error: variable or field 'type' declared void Line Location
> vnl_matlab_header:16
> error: variable or field 'rows' declared void Line Location
> vnl_matlab_header:17
> error: variable or field 'rows' declared void Line Location
> vnl_matlab_header:17
> error: variable or field 'cols' declared void Line Location
> vnl_matlab_header:18
> error: variable or field 'cols' declared void Line Location
> vnl_matlab_header:18
> error: variable or field 'imag' declared void Line Location
> vnl_matlab_header:19
> error: variable or field 'imag' declared void Line Location
> vnl_matlab_header:19
> error: variable or field 'namlen' declared void Line Location
> vnl_matlab_header:20
> error: variable or field 'namlen' declared void Line Location
> vnl_matlab_header:20
>
> I guess some errors occur during the configuration of
> vxl_config.h.in ...
> I'd like to know if I made a mistake in the parameters with cmake (is
> it a known issue?)? Is it a bug?
>
> Thanks for your help,
> Regards,
>
> Arnaud
> _______________________________________________
> Insight-developers mailing list
> Insight-developers@itk.org
> http://www.itk.org/mailman/listinfo/insight-developers [^]
No tags attached.
related to 0004022closed Bill Hoffman CMake Xcode generator produce invalid code when there is a quote in a string 
related to 0007316closed Bill Hoffman CMake TRY_RUN fails to compile with generator for Xcode 
Issue History
2008-07-09 11:04Hans JohnsonNew Issue
2008-07-14 17:28Brad KingRelationship addedrelated to 0007316
2008-07-14 17:47Brad KingRelationship addedrelated to 0004022
2008-07-15 16:26Bradley LowekampDescription Updated
2008-07-23 08:43Bradley LowekampStatusnew => assigned
2008-07-23 08:43Bradley LowekampAssigned To => Bradley Lowekamp
2008-07-23 08:52Bradley LowekampNote Added: 0012809
2008-07-23 08:53Bradley LowekampStatusassigned => resolved
2008-07-23 08:53Bradley LowekampResolutionopen => fixed
2010-10-21 12:32Gabe HartStatusresolved => closed

Notes
(0012809)
Bradley Lowekamp   
2008-07-23 08:52   
This bug is related to the listed CMake bugs. As of cmake-2.6.1-RC-11 the issue is resolved.

The following build on the dashboard was build with Xcode 3.0 and cmake 2.6.1 rc11:
http://www.cdash.org/CDash/buildSummary.php?buildid=129780 [^]