[Insight-users] Building ITK on OSX

Blair Cruz blair.cruz at gmail.com
Tue Jan 9 20:45:29 EST 2007


Hello All,
I'm trying to build ITK 1.0 on OSX 10.4.6.  Yes, that was ITK 1.0.  Our
organization has been using the MultiResMIRegistration example integrated in
a tool for a while now.  I now need to compile this example so that the tool
can run on OSX as well as Windows.  So any help on this would be greatly
appreciated.  Here is the issue I'm having:

I downloaded ITK v1.0.0 and CMake 1.4.7 (The latest version of CMake had
some backwards compatibility issues).  I also downloaded the latest version
of xcode (2.4.1_8).

I run `ccmake <source_dir>` and it generates the make file with no errors or
problems.  I then run 'make' in this directory.  It compiles for about 7
minutes and gives me this error:

----------------------------------------------------------------------------------------------
/Users/jannettdean/Desktop/JC_Stuff/InsightToolkit-1.0.0
/Code/Numerics/vxl/vcl/vcl_iosfwd.h:8,
                from
/Users/jannettdean/Desktop/JC_Stuff/InsightToolkit-1.0.0
/Code/Numerics/vxl/vnl/vnl_vector.h:13,
                from
/Users/jannettdean/Desktop/JC_Stuff/InsightToolkit-1.0.0
/Code/Common/itkArray.h:21,
                from
/Users/jannettdean/Desktop/JC_Stuff/InsightToolkit-1.0.0
/Code/Numerics/itkCacheableScalarFunction.h:20,
                from
/Users/jannettdean/Desktop/JC_Stuff/InsightToolkit-1.0.0
/Code/Numerics/itkCacheableScalarFunction.cxx:17:
/Users/jannettdean/Desktop/JC_Stuff/InsightToolkit-1.0.0
/Code/Numerics/vxl/vcl/vcl_compiler.h:60:4:
error: #error "Dunno about this gcc"
/Users/jannettdean/Desktop/JC_Stuff/InsightToolkit-1.0.0
/Code/Numerics/vxl/vnl/vnl_c_vector.h:28:
warning: keyword 'export' not implemented, and will be ignored
/Users/jannettdean/Desktop/JC_Stuff/InsightToolkit-1.0.0
/Code/Numerics/vxl/vnl/vnl_vector.h:19:
warning: keyword 'export' not implemented, and will be ignored
/Users/jannettdean/Desktop/JC_Stuff/InsightToolkit-1.0.0
/Code/Numerics/vxl/vnl/vnl_vector.h:20:
warning: keyword 'export' not implemented, and will be ignored
/Users/jannettdean/Desktop/JC_Stuff/InsightToolkit-1.0.0
/Code/Numerics/vxl/vnl/vnl_vector.h:413:
warning: keyword 'export' not implemented, and will be ignored
/Users/jannettdean/Desktop/JC_Stuff/InsightToolkit-1.0.0
/Code/Numerics/vxl/vnl/vnl_vector.h:414:
warning: keyword 'export' not implemented, and will be ignored
make[5]: *** [itkCacheableScalarFunction.o] Error 1
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_Numerics] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Code] Error 2
make: *** [default_target] Error 2
----------------------------------------------------------------------------------------------

I've done some searching and found only this thread:
http://public.kitware.com/pipermail/insight-users/2002-September/001066.html

I've tried the recommended solution of turning ITK_USE_SYSTEM_STDLIB 'ON'
however that is the default for the value.

I know that ITK v1.0.0 is very outdated however the tool that has been using
the MultiResMIRegistration example has had great success with this
registration method over the years, and there is no reason to upgrade it.  I
would really like to get this running on OSX, so any build advice would be
greatly appreciated.  Also, if anyone has a compiled binary of this example
for OSX that would work as well.

Thanks again for any help

-Blair Cruz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070109/709d4eeb/attachment.htm


More information about the Insight-users mailing list