[ITK-users] Error converting ITK to VTK

viana vianamp at gmail.com
Fri May 22 15:36:38 EDT 2015


Hi guys, I am trying to convert a ITK image into a vtkImageData using
ImageToVTKImageFilter. However, when I try to compile the example code, I
got these error messages. Do you have any idea what could be wrong? 

FYI, the Module ITKVtkGlue is properly installed. 

Thanks 
-m 

Undefined symbols for architecture x86_64: 
  "vtable for itk::VTKImageExportBase", referenced from: 
      itk::VTKImageExport<itk::Image<unsigned char, 3u>
>::~VTKImageExport()in ccUR0yiA.o 
      itk::VTKImageExport<itk::Image<unsigned char, 3u>
>::~VTKImageExport()in ccUR0yiA.o 
      itk::VTKImageExport<itk::Image<unsigned char, 3u>
>::VTKImageExport()in ccUR0yiA.o 
  NOTE: a missing vtable usually means the first non-inline virtual member
function has no definition. 
  "itk::VTKImageExportBase::PrintSelf(std::basic_ostream<char,
std::char_traits<char> >&, itk::Indent) const", referenced from: 
      itk::VTKImageExport<itk::Image<unsigned char, 3u>
>::PrintSelf(std::basic_ostream<char, std::char_traits<char> >&,
itk::Indent) constin ccUR0yiA.o 
  "itk::VTKImageExportBase::VTKImageExportBase()", referenced from: 
      itk::VTKImageExport<itk::Image<unsigned char, 3u>
>::VTKImageExport()in ccUR0yiA.o 
  "itk::VTKImageExportBase::GetUpdateInformationCallback() const",
referenced from: 
      itk::ImageToVTKImageFilter<itk::Image<unsigned char, 3u>
>::ImageToVTKImageFilter()in ccUR0yiA.o 
  "itk::VTKImageExportBase::GetPipelineModifiedCallback() const", referenced
from: 
      itk::ImageToVTKImageFilter<itk::Image<unsigned char, 3u>
>::ImageToVTKImageFilter()in ccUR0yiA.o 
  "itk::VTKImageExportBase::GetWholeExtentCallback() const", referenced
from: 
      itk::ImageToVTKImageFilter<itk::Image<unsigned char, 3u>
>::ImageToVTKImageFilter()in ccUR0yiA.o 
  "itk::VTKImageExportBase::GetSpacingCallback() const", referenced from: 
      itk::ImageToVTKImageFilter<itk::Image<unsigned char, 3u>
>::ImageToVTKImageFilter()in ccUR0yiA.o 
  "itk::VTKImageExportBase::GetOriginCallback() const", referenced from: 
      itk::ImageToVTKImageFilter<itk::Image<unsigned char, 3u>
>::ImageToVTKImageFilter()in ccUR0yiA.o 
  "itk::VTKImageExportBase::GetScalarTypeCallback() const", referenced from: 
      itk::ImageToVTKImageFilter<itk::Image<unsigned char, 3u>
>::ImageToVTKImageFilter()in ccUR0yiA.o 
  "itk::VTKImageExportBase::GetNumberOfComponentsCallback() const",
referenced from: 
      itk::ImageToVTKImageFilter<itk::Image<unsigned char, 3u>
>::ImageToVTKImageFilter()in ccUR0yiA.o 
  "itk::VTKImageExportBase::GetPropagateUpdateExtentCallback() const",
referenced from: 
      itk::ImageToVTKImageFilter<itk::Image<unsigned char, 3u>
>::ImageToVTKImageFilter()in ccUR0yiA.o 
  "itk::VTKImageExportBase::GetUpdateDataCallback() const", referenced from: 
      itk::ImageToVTKImageFilter<itk::Image<unsigned char, 3u>
>::ImageToVTKImageFilter()in ccUR0yiA.o 
  "itk::VTKImageExportBase::GetDataExtentCallback() const", referenced from: 
      itk::ImageToVTKImageFilter<itk::Image<unsigned char, 3u>
>::ImageToVTKImageFilter()in ccUR0yiA.o 
  "itk::VTKImageExportBase::GetBufferPointerCallback() const", referenced
from: 
      itk::ImageToVTKImageFilter<itk::Image<unsigned char, 3u>
>::ImageToVTKImageFilter()in ccUR0yiA.o 
  "itk::VTKImageExportBase::GetCallbackUserData()", referenced from: 
      itk::ImageToVTKImageFilter<itk::Image<unsigned char, 3u>
>::ImageToVTKImageFilter()in ccUR0yiA.o 
  "typeinfo for itk::VTKImageExportBase", referenced from: 
      typeinfo for itk::VTKImageExport<itk::Image<unsigned char, 3u> >in
ccUR0yiA.o 
  "itk::VTKImageExportBase::UpdateInformationCallback()", referenced from: 
      vtable for itk::VTKImageExport<itk::Image<unsigned char, 3u> >in
ccUR0yiA.o 
  "itk::VTKImageExportBase::PipelineModifiedCallback()", referenced from: 
      vtable for itk::VTKImageExport<itk::Image<unsigned char, 3u> >in
ccUR0yiA.o 
  "itk::VTKImageExportBase::UpdateDataCallback()", referenced from: 
      vtable for itk::VTKImageExport<itk::Image<unsigned char, 3u> >in
ccUR0yiA.o 
ld: symbol(s) not found for architecture x86_64 
collect2: ld returned 1 exit status 
make: *** [debug] Error 1 



--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/Error-converting-ITK-to-VTK-tp7587392.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list