[Insight-users] InsightToolkit-3.2.0 build error
R Holbrey
richardh at comp.leeds.ac.uk
Wed May 23 19:15:25 EDT 2007
On Wed, 23 May 2007, Dan Homerick wrote:
> Building the ITK with gcc (ver 4.1.2) and cmake (ver 2.4-patch 6) in Ubuntu
> (ver 7.04), I received the following error:
>
> [ 1%] Built target mkg3states
> [ 3%] Built target itkjpeg8
> [ 4%] Built target itktiff
> [ 5%] Built target itkopenjpeg
> [ 6%] Built target itksys
> [ 7%] Built target ITKMetaIO
> [ 9%] Built target ITKNrrdIO
> [ 9%] Built target ITKEXPAT
> [ 9%] Building CXX object
> Utilities/DICOMParser/CMakeFiles/ITKDICOMParser.dir/DICOMFile.o
> /usr/local/InsightToolkit-3.2.0/Utilities/DICOMParser/DICOMFile.h:51: error:
> expected unqualified-id before '&' token
> /usr/local/InsightToolkit-3.2.0/Utilities/DICOMParser/DICOMFile.h:51: error:
> expected ',' or '...' before '&' token
as a first test, I'd try commenting out the #ifdefs in DICOMConfig.h:42
#ifdef DICOM_NO_STD_NAMESPACE
#define dicom_stl
#else
#define dicom_stl std
#endif
to just "#define dicom_stl std".
I've no idea what the alternative relates to.
richard
> /usr/local/InsightToolkit-3.2.0/Utilities/DICOMParser/DICOMFile.h:51: error:
> ISO C++ forbids declaration of 'parameter' with no type
> /usr/local/InsightToolkit-3.2.0/Utilities/DICOMParser/DICOMFile.cxx:61:
> error: expected unqualified-id before '&' token
> /usr/local/InsightToolkit-3.2.0/Utilities/DICOMParser/DICOMFile.cxx:61:
> error: expected ',' or '...' before '&' token
> /usr/local/InsightToolkit-3.2.0/Utilities/DICOMParser/DICOMFile.cxx:61:
> error: ISO C++ forbids declaration of 'parameter' with no type
> /usr/local/InsightToolkit-3.2.0/Utilities/DICOMParser/DICOMFile.cxx: In
> member function 'bool itkdicomparser::DICOMFile::Open(int)':
> /usr/local/InsightToolkit-3.2.0/Utilities/DICOMParser/DICOMFile.cxx:66:
> error: 'filename' was not declared in this scope
> make[2]: ***
> [Utilities/DICOMParser/CMakeFiles/ITKDICOMParser.dir/DICOMFile.o] Error 1
> make[1]: *** [Utilities/DICOMParser/CMakeFiles/ITKDICOMParser.dir/all] Error
> 2
> make: *** [all] Error 2
>
> This was the latest release version of the ITK from Sourceforge. Any
> suggestions?
>
> Thanks for any help,
> - Dan
>
More information about the Insight-users
mailing list