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

Sean McBride sean at rogue-research.com
Mon Jul 9 10:28:32 EDT 2007


On 7/6/07 5:52 PM, Alex Lisovich said:

>Thank you very much for your patch! The warning about AppKit and
>Carbon issue are gone.

Glad it helped.

>However, the build fails as before:
>
>ld64-62.1 failed: duplicate symbol
>itk::Region::Print(std::basic_ostream<char, std::char_traits<char> >&,
>itk::Indent) constin
>/Users/Alex/Sources/ITK_J2K_Region/ItkXCode_Debug/bin/Debug/
>libITKCommon.a(itkRegion.o)
>and /Users/Alex/Sources/ITK_J2K_Region/ItkXCode_Debug/bin/Debug/
>libITKCommon.a(itkRegion.o)
>
>So it looks like it complains about the duplicate Region::Print()
>method within the same itkRegion.o? And this definitely looks like
>template instantiation problem, because when I remove the line
>"ImageType::Pointer im=ImageType::New();" it builds. I am (almost)
>positive I am not building universal binaries, because I am using
><xcodebuild ARCHS="x86_64"> which should build for a single target.
>Using make also produces the same build failure with the same message.

hmmm, not sure about this one... Are you specifying the 10.4u SDK with
CMAKE_OSX_SYSROOT?

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