[Insight-users] Problem installing on SGI (dicom_stl)

Luis Ibanez luis.ibanez at kitware.com
Tue Aug 30 12:30:10 EDT 2005


Hi Dean,

It is very likely that your installation is mixing
the SGI native compiler CC with the GNU GCC compiler.

You can easily verify if this is the case by looking
at the file:

                CMakeCache.txt

that CMake creates in your ITK binary directory.



Search in this file for the variables:

             CMAKE_C_COMPILER
             CMAKE_CXX_COMPILER

and then verify that the commpiler assigned to each
one of them is the native SGI C, and C++ compilers
respectively. You may want to make sure that they
use the absolute path to the compiler.

The environment variables CC and CXX must be set *before*
you run CMake for setting up the build. If you change these
variable after having run CMake, they will not affect the
compiler selection anymore.


Please let us know if you continue experiencing any
problem.


   Thanks


      Luis



-----------------------
ArDean Leith wrote:
> We are attempting to install: InsightToolkit-2.0.1
> on SGI 64 bit system
> using:  CMake Version 2.0 - patch 6
> 
> "make" fails at 
> 
> [snip]
> 
> 
> Building object file DICOMFile.o...
> cc-1079 CC: ERROR File = /usr/local/spider/InsightToolkit-2.0.1/Utilities/DICOMParser/DICOMFile.h, Line = 51
>   A type specifier is expected.
> 
>     bool Open(const dicom_stl::string& filename);
>                              ^
> 
> cc-1079 CC: ERROR File = /usr/local/spider/InsightToolkit-2.0.1/Utilities/DICOMParser/DICOMFile.cxx, Line = 61
>   A type specifier is expected.
> 
>   bool DICOMFile::Open(const dicom_stl::string& filename)
>                                       ^
> 
> 2 errors detected in the compilation of "/usr/local/spider/InsightToolkit-2.0.1/Utilities/DICOMParser/DICOMFile.cxx".
> 
> 
> 
> Tried: CMake Version 2.2 but got same error
> 
> Have tried : unsetenv CC  &  unsetenv CXXX as one source suggested but have
> still not got past this point.
> 
> 
> Thanks for any help,
> Dean Leith
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 



More information about the Insight-users mailing list