[IGSTK-Users] error in building the examples

Paulo Jorge Sequeira Gonçalves pbsgoncalves at gmail.com
Mon Sep 5 05:09:38 EDT 2011


Hi,

I have tried to build the examples in IGSTK,
I am using the development version in:
http://public.kitware.com/IGSTKWIKI/index.php/Download_IGSTK

and the following error occurred:

[ 75%] Building CXX object
Examples/TransformReaders/CMakeFiles/TransformReaderExample.dir/TransformReaderExample.o
Linking CXX executable ../../bin/TransformReaderExample
../../bin/libTransformReaders.a(igstkTransformXMLFileReaderBase.o):(.rodata._ZTVN5igstk26TransformXMLFileReaderBaseE[vtable
for igstk::TransformXMLFileReaderBase]+0x2c): undefined reference to
`itk::XMLReaderBase::PrintSelf(std::basic_ostream<char,
std::char_traits<char> >&, itk::Indent) const'
../../bin/libTransformReaders.a(igstkRigidTransformXMLFileReader.o):(.rodata._ZTVN5igstk27RigidTransformXMLFileReaderE[vtable
for igstk::RigidTransformXMLFileReader]+0x2c): undefined reference to
`itk::XMLReaderBase::PrintSelf(std::basic_ostream<char,
std::char_traits<char> >&, itk::Indent) const'
../../bin/libTransformReaders.a(igstkAffineTransformXMLFileReader.o):(.rodata._ZTVN5igstk28AffineTransformXMLFileReaderE[vtable
for igstk::AffineTransformXMLFileReader]+0x2c): undefined reference to
`itk::XMLReaderBase::PrintSelf(std::basic_ostream<char,
std::char_traits<char> >&, itk::Indent) const'
../../bin/libTransformReaders.a(igstkPerspectiveTransformXMLFileReader.o):(.rodata._ZTVN5igstk33PerspectiveTransformXMLFileReaderE[vtable
for igstk::PerspectiveTransformXMLFileReader]+0x2c): undefined
reference to `itk::XMLReaderBase::PrintSelf(std::basic_ostream<char,
std::char_traits<char> >&, itk::Indent) const'
../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x0): undefined
reference to `itk::JPEGImageIOFactoryRegister__Private()'
../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x4): undefined
reference to `itk::GDCMImageIOFactoryRegister__Private()'
../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x8): undefined
reference to `itk::BMPImageIOFactoryRegister__Private()'
../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0xc): undefined
reference to `itk::LSMImageIOFactoryRegister__Private()'
../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x10): undefined
reference to `itk::PNGImageIOFactoryRegister__Private()'
../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x14): undefined
reference to `itk::TIFFImageIOFactoryRegister__Private()'
../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x18): undefined
reference to `itk::VTKImageIOFactoryRegister__Private()'
../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x1c): undefined
reference to `itk::StimulateImageIOFactoryRegister__Private()'
../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x20): undefined
reference to `itk::BioRadImageIOFactoryRegister__Private()'
../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x24): undefined
reference to `itk::MetaImageIOFactoryRegister__Private()'
../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x28): undefined
reference to `itk::NiftiImageIOFactoryRegister__Private()'
../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x2c): undefined
reference to `itk::NrrdImageIOFactoryRegister__Private()'
../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x30): undefined
reference to `itk::GiplImageIOFactoryRegister__Private()'
../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x34): undefined
reference to `itk::HDF5ImageIOFactoryRegister__Private()'
../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x38): undefined
reference to `itk::MRCImageIOFactoryRegister__Private()'
../../bin/libIGSTK.a(igstkPETImageReader.o): In function
`itk::ImageFileReader<itk::Image<float, 3u>,
itk::DefaultConvertPixelTraits<float> >::GenerateData()':
igstkPETImageReader.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj3EEENS_25DefaultConvertPixelTraitsIfEEE12GenerateDataEv[itk::ImageFileReader<itk::Image<float,
3u>, itk::DefaultConvertPixelTraits<float> >::GenerateData()]+0x5a8):
undefined reference to
`itk::ImageIOBase::GetComponentTypeAsString(itk::ImageIOBase::IOComponentType)'
igstkPETImageReader.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj3EEENS_25DefaultConvertPixelTraitsIfEEE12GenerateDataEv[itk::ImageFileReader<itk::Image<float,
3u>, itk::DefaultConvertPixelTraits<float> >::GenerateData()]+0x5e5):
undefined reference to
`itk::ImageIOBase::GetComponentTypeAsString(itk::ImageIOBase::IOComponentType)'
../../bin/libIGSTK.a(igstkPETImageReader.o): In function
`itk::ImageIORegionAdaptor<3u>::Convert(itk::ImageRegion<3u> const&,
itk::ImageIORegion&, itk::Index<3u> const&)':
igstkPETImageReader.cxx:(.text._ZN3itk20ImageIORegionAdaptorILj3EE7ConvertERKNS_11ImageRegionILj3EEERNS_13ImageIORegionERKNS_5IndexILj3EEE[itk::ImageIORegionAdaptor<3u>::Convert(itk::ImageRegion<3u>
const&, itk::ImageIORegion&, itk::Index<3u> const&)]+0x94): undefined
reference to `itk::ImageIORegion::SetSize(unsigned long, unsigned
long)'
igstkPETImageReader.cxx:(.text._ZN3itk20ImageIORegionAdaptorILj3EE7ConvertERKNS_11ImageRegionILj3EEERNS_13ImageIORegionERKNS_5IndexILj3EEE[itk::ImageIORegionAdaptor<3u>::Convert(itk::ImageRegion<3u>
const&, itk::ImageIORegion&, itk::Index<3u> const&)]+0xd6): undefined
reference to `itk::ImageIORegion::SetIndex(unsigned long, long)'
igstkPETImageReader.cxx:(.text._ZN3itk20ImageIORegionAdaptorILj3EE7ConvertERKNS_11ImageRegionILj3EEERNS_13ImageIORegionERKNS_5IndexILj3EEE[itk::ImageIORegionAdaptor<3u>::Convert(itk::ImageRegion<3u>
const&, itk::ImageIORegion&, itk::Index<3u> const&)]+0x109): undefined
reference to `itk::ImageIORegion::SetSize(unsigned long, unsigned
long)'
igstkPETImageReader.cxx:(.text._ZN3itk20ImageIORegionAdaptorILj3EE7ConvertERKNS_11ImageRegionILj3EEERNS_13ImageIORegionERKNS_5IndexILj3EEE[itk::ImageIORegionAdaptor<3u>::Convert(itk::ImageRegion<3u>
const&, itk::ImageIORegion&, itk::Index<3u> const&)]+0x123): undefined
reference to `itk::ImageIORegion::SetIndex(unsigned long, long)'
../../bin/libIGSTK.a(igstkPETImageReader.o): In function
`itk::ImageFileReader<itk::Image<float, 3u>,
itk::DefaultConvertPixelTraits<float> >::DoConvertBuffer(void*,
unsigned int)':
igstkPETImageReader.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj3EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvj[itk::ImageFileReader<itk::Image<float,
3u>, itk::DefaultConvertPixelTraits<float> >::DoConvertBuffer(void*,
unsigned int)]+0x7dc): undefined reference to
`itk::ImageIOBase::GetComponentTypeAsString(itk::ImageIOBase::IOComponentType)'
igstkPETImageReader.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj3EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvj[itk::ImageFileReader<itk::Image<float,
3u>, itk::DefaultConvertPixelTraits<float> >::DoConvertBuffer(void*,
unsigned int)]+0x800): undefined reference to
`itk::ImageIOBase::GetComponentTypeAsString(itk::ImageIOBase::IOComponentType)'
igstkPETImageReader.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj3EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvj[itk::ImageFileReader<itk::Image<float,
3u>, itk::DefaultConvertPixelTraits<float> >::DoConvertBuffer(void*,
unsigned int)]+0x824): undefined reference to
`itk::ImageIOBase::GetComponentTypeAsString(itk::ImageIOBase::IOComponentType)'
igstkPETImageReader.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj3EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvj[itk::ImageFileReader<itk::Image<float,
3u>, itk::DefaultConvertPixelTraits<float> >::DoConvertBuffer(void*,
unsigned int)]+0x848): undefined reference to
`itk::ImageIOBase::GetComponentTypeAsString(itk::ImageIOBase::IOComponentType)'
igstkPETImageReader.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj3EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvj[itk::ImageFileReader<itk::Image<float,
3u>, itk::DefaultConvertPixelTraits<float> >::DoConvertBuffer(void*,
unsigned int)]+0x86c): undefined reference to
`itk::ImageIOBase::GetComponentTypeAsString(itk::ImageIOBase::IOComponentType)'
../../bin/libIGSTK.a(igstkPETImageReader.o):igstkPETImageReader.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj3EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvj[itk::ImageFileReader<itk::Image<float,
3u>, itk::DefaultConvertPixelTraits<float> >::DoConvertBuffer(void*,
unsigned int)]+0x890): more undefined references to
`itk::ImageIOBase::GetComponentTypeAsString(itk::ImageIOBase::IOComponentType)'
follow
collect2: ld returned 1 exit status
make[2]: *** [bin/TransformReaderExample] Error 1
make[1]: *** [Examples/TransformReaders/CMakeFiles/TransformReaderExample.dir/all]
Error 2
make: *** [all] Error 2



-----------------------------------------------------------------------------------------------------------------------------

can anyone help

Paulo Jorge Sequeira Gonçalves
www.est.ipcb.pt/pessoais/paulog



More information about the IGSTK-Users mailing list