[Insight-users] Compiling Itk on Irix with MIPSpro 7.4

Brad King brad.king at kitware.com
Tue, 27 Apr 2004 16:44:49 -0400


Nick Hu wrote:
> Hi All,
> I got some problems when I was trying to complie ITK on Irix with MIPSpro7.4. First I had an error which is similiar to 
> http://www.itk.org/pipermail/insight-users/2003-September/004996.html 
> This problem was fixed by the suggestion in the above link as well as changing the type "long" to "long double" in the file "testlib_test.cxx".
> 
> Then I got an error like:
> "...
> 
> Building object file Templates/vcl_vector+vnl_vector+vcl_complex+double---.o...
> cc-1005 cc: ERROR File = /usr/people/nhu/InsightToolkit-1.6.0/Utilities/vxl/vcl/iso/vcl_complex.h, Line = 6
> The source file "complex" is unavailable.
> 
> #include <complex>
> ^
> 
> 1 catastrophic error detected in the compilation of "/usr/people/nhu/InsightToolkit-1.6.0/Utilities/vxl/core/vnl/Templates/vcl_vector+vnl_vector+vcl_complex+double---.c".
> ..."
> 
> It seems it could not find STL <complex>. If I change to "#include <complex.h>" the compiler could find one, which I don't think is a right one cause then I had some errors indicating template of complex can't be recognized.
> 
> I have ITK applications built on Windows and Linux and they are working well. However I don't have too much experience with IRIX, could anyone with Irix experience or successfully built itk on it kindly give me some advice?

ITK 1.6 was never tested with MIPSPro 7.4 and does not support it. 
However, the current CVS version of ITK was recently built with the 7.4 
compiler version.

-Brad