#282 Cmake error with vtk 6

2.4.3
closed
None
1
2014-08-18
2013-02-04
Lars Matthäus
No

When I try to configure gdcm with vtk option (GDCM_USE_VTK), I get a
cmake error when I try to "link/build/cmake" against a vtk 6.0
configuration (from git master):

CMake Error at Utilities/VTK/CMakeLists.txt:111 (VTK_MAKE_INSTANTIATOR3):
Unknown CMake command "VTK_MAKE_INSTANTIATOR3".

All is fine when I try to "cmake" against a vtk 5.10 version.

Discussion

    • priority: 5 --> 1
     
  • vtk 6.0.0 has landed in Fedora rawhide, so we're seeing that there too.

     
  • Here is what I have so far to try to support vtk 6.0.0. However, I'm still getting the following:

    /builddir/build/BUILD/gdcm-2.2.4/Utilities/VTK/vtkGDCMImageReader.cxx:987:21: error: 'class vtkImageData' has no member named 'GetWholeExtent'
       int *dext = data->GetWholeExtent();
                         ^
    /builddir/build/BUILD/gdcm-2.2.4/Utilities/VTK/vtkGDCMImageReader.cxx: In member function 'virtual int vtkGDCMImageReader::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*)':
    /builddir/build/BUILD/gdcm-2.2.4/Utilities/VTK/vtkGDCMImageReader.cxx:1394:41: error: no matching function for call to 'vtkImageData::AllocateScalars()'
         this->GetOutput(i)->AllocateScalars();
                                             ^
    /builddir/build/BUILD/gdcm-2.2.4/Utilities/VTK/vtkGDCMImageReader.cxx:1394:41: note: candidates are:
    In file included from /builddir/build/BUILD/gdcm-2.2.4/Utilities/VTK/vtkGDCMImageReader.h:68:0,
                     from /builddir/build/BUILD/gdcm-2.2.4/Utilities/VTK/vtkGDCMImageReader.cxx:14:
    /usr/include/vtk/vtkImageData.h:237:16: note: virtual void vtkImageData::AllocateScalars(int, int)
       virtual void AllocateScalars(int dataType, int numComponents);
                    ^
    /usr/include/vtk/vtkImageData.h:237:16: note:   candidate expects 2 arguments, 0 provided
    /usr/include/vtk/vtkImageData.h:244:16: note: virtual void vtkImageData::AllocateScalars(vtkInformation*)
       virtual void AllocateScalars(vtkInformation* pipeline_info);
                    ^
    /usr/include/vtk/vtkImageData.h:244:16: note:   candidate expects 1 argument, 0 provided
    /builddir/build/BUILD/gdcm-2.2.4/Utilities/VTK/vtkGDCMImageReader.cxx: In member function 'int vtkGDCMImageReader::RequestDataCompat()':
    /builddir/build/BUILD/gdcm-2.2.4/Utilities/VTK/vtkGDCMImageReader.cxx:1408:11: error: 'class vtkImageData' has no member named 'GetUpdateExtent'
       output->GetUpdateExtent(outExt);
               ^
    
     
    Attachments
  • David Gobbi
    David Gobbi
    2014-03-24

    I've created a patch for the vtkGDCMImageReader/Writer and for some of the CMake issues, this allows me to compile and run GDCM with VTK 6. This patch is based on the current GDCM master (SHA 214fc639). I did not try the wrapping.

     
  • support for vtk6 should be fine now (need gdcm 2.4.2 or 2.4.3)

     
    • assigned_to: Mathieu Malaterre
    • Group: 2.3 --> 2.4.3
     
  • closing

     
    • status: open --> closed