[Insight-developers] ITK Nightly on MIPSpro 7.4?

Brad King brad.king@kitware.com
Wed May 19 13:52:45 EDT 2004


Hello,

An increasing number of users are having problems building ITK on the 
MIPSpro 7.4 compiler.  Every time I make the fixes they need to build 
it, new code is added or another user turns a build feature on that 
causes new errors for the platform.  I do not have access to any 
machines with this compiler.  Does anyone have an SGI machine with the 
7.4 compiler version that can be used to build a nightly?

Thanks,
-Brad

-------- Original Message --------
Subject: Building nightly itk on Irix with MIPSpro
Date: Tue, 18 May 2004 15:59:03 -0400
From: Nick Hu <nhu@sten.sunnybrook.utoronto.ca>
To: Brad King <brad.king@kitware.com>
CC: <insight-users-request@itk.org>

Hi Brad,

As you suggested, I tried nightly ITK on Irix with MIPSpro, but I found 
I still have to make some changes to the source:

### Error 1:

Building object file itkRGBPixelTest.o...
cc-1020 CC: ERROR File = 
/usr/people/nhu/nightly_itk/Insight/Testing/Code/Common/itkRGBPi
xelTest.cxx, Line = 127
   The identifier "fabs" is undefined.

     if( fabs( luminance - realLuminance ) > tolerance )
         ^

1 error detected in the compilation of 
"/usr/people/nhu/nightly_itk/Insight/Testing/Code/
Common/itkRGBPixelTest.cxx".

*** Solution: Add "#include <math.h>" to the file "itkRGBPixelTest.cxx"

### Error 2:

cc-1238 CC: ERROR File = 
/usr/people/nhu/nightly_itk/Insight/Code/Common/itkShapedNeighbo
rhoodIterator.h, Line = 176
   The type "itk::Neighborhood<itk::Image<itk::Index<4U>, 
4U>::InternalPixelType
           *, 4U, itk::NeighborhoodAllocator<itk::Image<itk::Index<4U>,
           4U>::InternalPixelType *>>::Neighborhood" is inaccessible.

     typedef Neighborhood<PixelType, itkGetStaticConstMacro(Dimension)> 
NeighborhoodType;
             ^
           detected during instantiation of class
                     "itk::ShapedNeighborhoodIterator<TestImageType,
 
itk::ZeroFluxNeumannBoundaryCondition<TestImageType>>" at
                     line 28 of
 
"/usr/people/nhu/nightly_itk/Insight/Testing/Code/Common/it
                     kShapedNeighborhoodIteratorTest.cxx"

1 error detected in the compilation of 
"/usr/people/nhu/nightly_itk/Insight/Testing/Code/
Common/itkShapedNeighborhoodIteratorTest.cxx".

*** Solution:
change line = 176 of "itkShapedNeighborhoodIterator.h"
from:
typedef Neighborhood<PixelType, itkGetStaticConstMacro(Dimension)> 
NeighborhoodType;
to:
typedef itk::Neighborhood<PixelType, itkGetStaticConstMacro(Dimension)> 
NeighborhoodType;

### Error 3 is same as the one described by Suyash and here is the link:
http://www.itk.org/pipermail/insight-users/2004-January/006333.html

***Solution: As advised by Suyash, change the path of the netlib.h file in
the include header of the erroneous file.

I also met some problems using "tar" on Irix when I "untar" the source 
code, it just truncated some files with very long names.

All the solutions I have probably are not perfect, but they do work :)

Hope the information helps when anyone try to build itk on Irix.

Regards,

Nick Hu, M.E.Sc.
Medical Imaging Software Developer
Imaging Research, Sunnybrook & Women's
Suite 6020, 3080 Yonge Street / PO Box 89, Toronto
ON M4N 3N1
Tel: 416-4823856 Fax: 416-4823807



More information about the Insight-developers mailing list