[Insight-users] InsightToolkit-3.2.0 build error

Dan Homerick danhomerick at gmail.com
Wed May 23 20:23:28 EDT 2007


Thank you for the suggestion. Making the change did allow it to get past
that point, but then it ran into a whole mess of errors later. Is it likely
that I did something wrong at some point during the installation (before I
started editing files), or will the 3.2.0 release really not compile as-is?

Is the ITK available as a package from anywhere?

Thanks again for any help!
 - Dan

A sample:
[ 15%] Built target itkjpeg16
[ 17%] Built target itkgdcm
[ 17%] Built target ITKznz
[ 17%] Built target ITKniftiio
[ 17%] Built target itkvcl
Linking CXX executable vcl_test_all
CMakeFiles/vcl_test_all.dir/test_driver.o: In function
`__static_initialization_and_destruction_0(int, int)':
test_driver.cxx:(.text+0x23): undefined reference to
`std::ios_base::Init::Init()'
CMakeFiles/vcl_test_all.dir/test_driver.o: In function `__tcf_0':
test_driver.cxx:(.text+0x6c): undefined reference to
`std::ios_base::Init::~Init()'
CMakeFiles/vcl_test_all.dir/test_driver.o: In function `testresult(int)':
test_driver.cxx:(.text+0x96): undefined reference to `std::cout'
test_driver.cxx:(.text+0x9b): undefined reference to
`std::basic_ostream<char, std::char_traits<char> >& std::operator$
test_driver.cxx:(.text+0xa3): undefined reference to
`std::basic_ostream<char, std::char_traits<char> >& std::endl<cha$
test_driver.cxx:(.text+0xab): undefined reference to
`std::basic_ostream<char, std::char_traits<char> >::operator<<(st$
test_driver.cxx:(.text+0xc9): undefined reference to `std::cout'


On 5/23/07, R Holbrey <richardh at comp.leeds.ac.uk> wrote:
>
> 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
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070523/98801970/attachment.htm


More information about the Insight-users mailing list