[Insight-developers] compilation errors with xcode 3.0 on Mac OS X 10.5.4

Hans Johnson hans-johnson at uiowa.edu
Wed Jul 9 11:13:12 EDT 2008


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, but I did submit a bug
report to http://public.kitware.com/Bug/view.php?id=7315 with id 0007315.

My gut feeling is that this is a CMAKE configuration error where the
platform is not being properly identified.

Hans



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

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


> From: Arnaud Gelas <arnaud_gelas at hms.harvard.edu>
> Date: Wed, 9 Jul 2008 10:54:42 -0400
> To: ITK <insight-developers at 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 at itk.org
> 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.



More information about the Insight-developers mailing list