[Insight-users] Cannot build ITK for MAC OS X Tiger 64 bit

Sean McBride sean at rogue-research.com
Tue Jul 10 15:38:35 EDT 2007


On 7/10/07 3:30 PM, Alex Lisovich said:

>> This should not be the case.  Which version of CMake are you using?
>
>CMake 2.4 - Patch 6
>
>> Also, you _must_ set CMAKE_OSX_SYSROOT to the 10.4u SDK.  Without using
>> the SDK, you are not guaranteed to be able to link properly.
>
>It is set to 10.4u SDK, see my earlier message
>
>> >In order to really build in 64 bit mode, one needs to set
>> >
>> >CMAKE_CXX_FLAGS=-arch x86_64
>> >CMAKE_C_FLAGS=-arch x86_64,
>>
>> You should not have to do that.
>
>Could you tell me what the settings should be? Without these two
>settings the size of long is 4 bytes, with them - 8 bytes, in both
>cases MAKE_OSX_ARCHITECTURES is set to x86_64.

Ahhhh, I think I know what you are seeing:
<http://www.vtk.org/Bug/bug.php?op=show&bugid=3618>

As a workaround, you must pass at least two things in
CMAKE_OSX_ARCHITECTURES say "x86_64;ppc64".  I encourage you to vote for
this bug and/or bug Bill. :)

-- 
____________________________________________________________
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