[Insight-users] Cannot build ITK for MAC OS X Tiger 64 bit
Sean McBride
sean at rogue-research.com
Tue Jul 10 14:59:02 EDT 2007
On 7/10/07 2:26 PM, Alex Lisovich said:
> Interestingly, the 64 bit build of the ITK core fails as well if
>the BUILD_TESTING is turned ON, so I quess there is some violation of
>the rules within the ITK CMakeLists hierarchy itself. It seems that
>possibly the reason this problem was not raised before is following:
> Setting only the CMAKE_OSX_ARCHITECTURES to x86_64 does not produce
>the 64 bit libraries but 32 bit instead
This should not be the case. Which version of CMake are you using?
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 can be easily verified by
>checking the size of long for example), and such 32 bit build seems to
>be more tolerant to the violation of order of libraries (even my
>example with ITKCommon in front of everithing bulds fine).
>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. BTW, are you familiar with the 'lipo'
command? See 'man lipo'. You can use it to confirm if an executable is
ppc/i386/ppc64/x86_64.
--
____________________________________________________________
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