[Insight-users] universal compile error on OSX - itkopenjpeg
Sean McBride
sean at rogue-research.com
Mon Aug 27 14:47:49 EDT 2007
On 8/27/07 7:25 PM, Dan White said:
>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)
Our nightly dashboard builds with CMAKE_OSX_ARCHITECTURES set to
ppc;i386, I don't see any problems with it. One difference is that we
build static libs, not dynamic. Maybe try changing that?
Which version of cmake are you using?
>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.
BTW, if CMAKE_OSX_ARCHITECTURES has only one item (ex i386, like above)
it is totally ignored and CMake will build for the 'native' system. On
your Mac Pro you'll get i386 anyway. But if, on a Mac Pro, you set it
to only "ppc" you'll still get i386! Just a FYI. :)
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the Insight-users
mailing list