[Insight-users] Cannot build ITK for MAC OS X Tiger 64 bit
Alex Lisovich
alex.lisovich at gmail.com
Fri Jul 6 14:06:31 EDT 2007
Dear Insight Users,
Was anybody able to build ITK on MAC OS Tiger for 64 bit Intel target (x86_64)?
The first problem is that it itkMultiThreader.cxx unconditionally
includes Carbon.h for any APPLE build including 64-bit, and Carbon on
Tiger does not support it. It seems I was able to solve this by using
fix from VTK bug report list ( see
http://www.vtk.org/Bug/bug.php?op=show&bugid=2932 ) which allowed ITK
to build (without examples and tests).
But any attempt to build a separate 64 bit application or include
tests into ITK core build, which I guess involves the image related
template instantiation, leads to the build failure. Example:
#include "itkImage.h"
int main(int, char *[])
{
typedef itk::Image<char,3> ImageType;
ImageType::Pointer im=ImageType::New();
return 0;
}
And the build fails:
....
ld64 warning: in /System/Library/Frameworks//AppKit.framework/AppKit,
missing required architecture x86_64 in file
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)
As I understand, the warning comes from some Carbon related
functionality, and I get it for all libraries during the successfull
building of ITK core, so I am not sure that the subsequent failure is
related to it. The build also fails if tests are included into the ITK
core build, specifically for itkAlgorithmTests, this time the
duplicate symbol being vtkImageIO::vtkImageIO(). The 32 bit build does
not have any problem...
Thank you in advance for your help,
Alex Lisovich
More information about the Insight-users
mailing list