[Insight-users] Starting Problems with ITK
Oliver Trebbe
otrebbe at uni-muenster.de
Thu Nov 8 10:30:51 EST 2007
Hello guys,
i downloaded the ITK frome the page, compiled it with cmake (book guide)
the Helloworld.cxx works, also the FFT Example programm where no file
has to be opened.
Now my problem is if i try compiling the example for opening or reading
a file, there appear failures about undefined references such as in the
logfile.
Any Help would be grate ;)
Thanks a lot
Oliver
-------------- next part --------------
Linking CXX executable HelloWorld
CMakeFiles/HelloWorld.dir/HelloWorld.o: In function `itk::ImageIORegion::~ImageIORegion()':
HelloWorld.cxx:(.text._ZN3itk13ImageIORegionD1Ev[itk::ImageIORegion::~ImageIORegion()]+0x7): undefined reference to `vtable for itk::ImageIORegion'
CMakeFiles/HelloWorld.dir/HelloWorld.o: In function `itk::ImageFileWriter<itk::Image<short, 2u> >::GetIORegion() const':
HelloWorld.cxx:(.text._ZNK3itk15ImageFileWriterINS_5ImageIsLj2EEEE11GetIORegionEv[itk::ImageFileWriter<itk::Image<short, 2u> >::GetIORegion() const]+0x112): undefined reference to `itk::operator<<(std::basic_ostream<char, std::char_traits<char> >&, itk::ImageIORegion const&)'
CMakeFiles/HelloWorld.dir/HelloWorld.o: In function `itk::ImageIORegion::ImageIORegion(unsigned int)':
HelloWorld.cxx:(.text._ZN3itk13ImageIORegionC1Ej[itk::ImageIORegion::ImageIORegion(unsigned int)]+0x13): undefined reference to `vtable for itk::ImageIORegion'
CMakeFiles/HelloWorld.dir/HelloWorld.o: In function `itk::ImageIORegion::ImageIORegion()':
HelloWorld.cxx:(.text._ZN3itk13ImageIORegionC1Ev[itk::ImageIORegion::ImageIORegion()]+0x13): undefined reference to `vtable for itk::ImageIORegion'
CMakeFiles/HelloWorld.dir/HelloWorld.o: In function `itk::ImageIORegion::ImageIORegion(itk::ImageIORegion const&)':
HelloWorld.cxx:(.text._ZN3itk13ImageIORegionC1ERKS0_[itk::ImageIORegion::ImageIORegion(itk::ImageIORegion const&)]+0x13): undefined reference to `vtable for itk::ImageIORegion'
CMakeFiles/HelloWorld.dir/HelloWorld.o: In function `itk::ImageFileReader<itk::Image<short, 2u>, itk::DefaultConvertPixelTraits<short> >::DoConvertBuffer(void*, unsigned long)':
HelloWorld.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIsLj2EEENS_25DefaultConvertPixelTraitsIsEEE15DoConvertBufferEPvm[itk::ImageFileReader<itk::Image<short, 2u>, itk::DefaultConvertPixelTraits<short> >::DoConvertBuffer(void*, unsigned long)]+0xac6): undefined reference to `itk::ImageIOBase::GetComponentTypeAsString(itk::ImageIOBase::IOComponentType) const'
CMakeFiles/HelloWorld.dir/HelloWorld.o: In function `itk::ImageFileReader<itk::Image<short, 2u>, itk::DefaultConvertPixelTraits<short> >::GenerateData()':
HelloWorld.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIsLj2EEENS_25DefaultConvertPixelTraitsIsEEE12GenerateDataEv[itk::ImageFileReader<itk::Image<short, 2u>, itk::DefaultConvertPixelTraits<short> >::GenerateData()]+0x441): undefined reference to `itk::operator<<(std::basic_ostream<char, std::char_traits<char> >&, itk::ImageIORegion const&)'
HelloWorld.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIsLj2EEENS_25DefaultConvertPixelTraitsIsEEE12GenerateDataEv[itk::ImageFileReader<itk::Image<short, 2u>, itk::DefaultConvertPixelTraits<short> >::GenerateData()]+0x979): undefined reference to `itk::ImageIOBase::GetImageSizeInBytes() const'
CMakeFiles/HelloWorld.dir/HelloWorld.o: In function `itk::ImageFileReader<itk::Image<short, 2u>, itk::DefaultConvertPixelTraits<short> >::GenerateOutputInformation()':
HelloWorld.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIsLj2EEENS_25DefaultConvertPixelTraitsIsEEE25GenerateOutputInformationEv[itk::ImageFileReader<itk::Image<short, 2u>, itk::DefaultConvertPixelTraits<short> >::GenerateOutputInformation()]+0x33b): undefined reference to `itk::ImageIOFactory::CreateImageIO(char const*, itk::ImageIOFactory::FileModeType)'
HelloWorld.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIsLj2EEENS_25DefaultConvertPixelTraitsIsEEE25GenerateOutputInformationEv[itk::ImageFileReader<itk::Image<short, 2u>, itk::DefaultConvertPixelTraits<short> >::GenerateOutputInformation()]+0x4cc): undefined reference to `typeinfo for itk::ImageIOBase'
CMakeFiles/HelloWorld.dir/HelloWorld.o: In function `itk::ImageFileWriter<itk::Image<short, 2u> >::PrintSelf(std::basic_ostream<char, std::char_traits<char> >&, itk::Indent) const':
HelloWorld.cxx:(.text._ZNK3itk15ImageFileWriterINS_5ImageIsLj2EEEE9PrintSelfERSoNS_6IndentE[itk::ImageFileWriter<itk::Image<short, 2u> >::PrintSelf(std::basic_ostream<char, std::char_traits<char> >&, itk::Indent) const]+0x170): undefined reference to `itk::operator<<(std::basic_ostream<char, std::char_traits<char> >&, itk::ImageIORegion const&)'
CMakeFiles/HelloWorld.dir/HelloWorld.o: In function `itk::ImageFileWriter<itk::Image<short, 2u> >::Write()':
HelloWorld.cxx:(.text._ZN3itk15ImageFileWriterINS_5ImageIsLj2EEEE5WriteEv[itk::ImageFileWriter<itk::Image<short, 2u> >::Write()]+0x738): undefined reference to `itk::ImageIOFactory::CreateImageIO(char const*, itk::ImageIOFactory::FileModeType)'
HelloWorld.cxx:(.text._ZN3itk15ImageFileWriterINS_5ImageIsLj2EEEE5WriteEv[itk::ImageFileWriter<itk::Image<short, 2u> >::Write()]+0xb87): undefined reference to `itk::ImageIOFactory::CreateImageIO(char const*, itk::ImageIOFactory::FileModeType)'
HelloWorld.cxx:(.text._ZN3itk15ImageFileWriterINS_5ImageIsLj2EEEE5WriteEv[itk::ImageFileWriter<itk::Image<short, 2u> >::Write()]+0xd2a): undefined reference to `typeinfo for itk::ImageIOBase'
HelloWorld.cxx:(.text._ZN3itk15ImageFileWriterINS_5ImageIsLj2EEEE5WriteEv[itk::ImageFileWriter<itk::Image<short, 2u> >::Write()]+0x11cf): undefined reference to `itk::ImageIOBase::SetNumberOfDimensions(unsigned int)'
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [HelloWorld] Fehler 1
make[1]: *** [CMakeFiles/HelloWorld.dir/all] Fehler 2
make: *** [all] Fehler 2
More information about the Insight-users
mailing list