[Insight-users] universal compile error on OSX - itkopenjpeg
Dan White
white at mpi-cbg.de
Mon Aug 27 13:25:00 EDT 2007
Hi All,
I wonder if anyone else is seeing this compile error
when trying to build universal binaries for ITK on OSX
I am running the build on an 8 core Mac Pro Intel Xeon,
with
CMAKE_OSX_ARCHITECTURES set to ppc;i386
ITK 3.2.0 release from webpage (not CVS, but this also happens with
CVS version)
and indeed universal dynamic libs are being created
with i386 and pcc binaries i them (i can check using the file command)
but... when it gets to compiling itkopenjpeg
i get a cryptic error, see below
If CMAKE_OSX_ARCHITECTURES is set to i386
there is no error.
has anyone else seen this happening?
Does it happen on a native PPC build on a PPC machine (i done have
one handy)
I managed to make a universal ITK build from ITK 3.2.0 a while ago
so I'm confused as to why i now get this error..... maybe its OSX
10.4.10 ....?
let me know if you have any ideas....
cheers
Dan
[ 22%] Building C object Utilities/openjpeg/CMakeFiles/
itkopenjpeg.dir/bio.o
In file included from /Users/admin/InsightToolkit-3.2.0/Utilities/
openjpeg/opj_includes.h:49,
from /Users/admin/InsightToolkit-3.2.0/Utilities/
openjpeg/bio.c:31:
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:189:
error: parse error before 'bool'
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:189:
warning: no semicolon at end of struct or union
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:252:
error: 'index' redeclared as different kind of symbol
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:266:
error: parse error before '}' token
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:266:
warning: data definition has no type or storage class
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:316:
error: parse error before 'bool'
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:316:
warning: no semicolon at end of struct or union
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:321:
error: parse error before '}' token
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:321:
warning: data definition has no type or storage class
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:323:
error: parse error before '*' token
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:323:
warning: data definition has no type or storage class
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:330:
error: parse error before 'bool'
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:330:
warning: no semicolon at end of struct or union
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:332:
error: parse error before '}' token
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:332:
warning: data definition has no type or storage class
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:339:
error: parse error before 'bool'
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:339:
warning: no semicolon at end of struct or union
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:341:
error: parse error before '}' token
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:341:
warning: data definition has no type or storage class
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:362:
error: parse error before 'opj_common_ptr'
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:362:
warning: no semicolon at end of struct or union
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:377:
error: parse error before '}' token
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:377:
warning: data definition has no type or storage class
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:510:
error: parse error before '*' token
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:510:
error: parse error before 'cinfo'
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:510:
warning: data definition has no type or storage class
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:516:
error: parse error before '*' token
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:523:
error: parse error before '*' token
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:529:
error: parse error before '*' token
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:537:
error: parse error before 'cinfo'
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:549:
error: parse error before '*' token
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:549:
warning: data definition has no type or storage class
/Users/admin/InsightToolkit-3.2.0/Utilities/openjpeg/openjpeg.h:554:
error: parse error before '*' token
etc. etc. etc.... for another hundred or so lines....
Dr. Daniel James White BSc. (Hons.) PhD
Senior Microscopist / Image Processing and Analysis
Light Microscopy Facility
Max Planck Institute of Molecular Cell Biology and Genetics
Pfotenhauerstrasse 108
01307 DRESDEN
Germany
+49 (0) 177 9 68 27 81 (German Mobile)
+49 (0) 351 210 2627 (Work phone at MPI-CBG)
+49 (0) 351 210 1078 (Fax MPI-CBG LMF)
+358 (0) 468102840 (Finnish mobile, only when I'm in Finland)
http://www.bioimagexd.net
http://www.chalkie.org.uk
dan at chalkie.org.uk
( white at mpi-cbg.de )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070827/e9030503/attachment.htm
More information about the Insight-users
mailing list