From freddy311082 at gmail.com Tue Aug 18 06:35:08 2015 From: freddy311082 at gmail.com (Freddy Martinez) Date: Tue, 18 Aug 2015 04:35:08 -0000 Subject: [Dcmlib] gdcm with vtk support compiling error Message-ID: <52BA4958-002A-4A68-B94D-EB0B47D2D98A@gmail.com> hi guys... i'm trying to compile gdcm with vtk support and a i'm getting this error: n file included from /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:15: /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.h:73:3: error: C++ requires a type specifier for all declarations vtkTypeRevisionMacro(vtkImageColorViewer,vtkObject); ^ In file included from /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageMapToWindowLevelColors2.cxx:15: /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageMapToWindowLevelColors2.h:38:3: error: C++ requires a type specifier for all declarations vtkTypeRevisionMacro(vtkImageMapToWindowLevelColors2,vtkImageMapToColors); ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageMapToWindowLevelColors2.cxx:25:54: error: expected parameter declarator vtkCxxRevisionMacro(vtkImageMapToWindowLevelColors2, "$Revision: 1.3 $") ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageMapToWindowLevelColors2.cxx:25:54: error: expected ')' /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageMapToWindowLevelColors2.cxx:25:20: note: to match this '(' vtkCxxRevisionMacro(vtkImageMapToWindowLevelColors2, "$Revision: 1.3 $") ^ In file included from /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageMapToWindowLevelColors2.cxx:/Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcm4DSplitter.cxx25::1341: : error: C++/Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmReader.h :requires39 :a4 :type specifier errorfor: all declarationsC++ requires a type specifier for all declarations vtkCxxRevisionMacro(vtkImageMapToWindowLevelColors2, "$Revision: 1.3 $") ^ vtkTypeRevisionMacro(vtkGdcmReader, vtkImageReader); ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageMapToWindowLevelColors2.cxx:25:73: error: expected ';' after top level declarator vtkCxxRevisionMacro(vtkImageMapToWindowLevelColors2, "$Revision: 1.3 $") ^ ; 5 errors generated. make[2]: *** [vtk/CMakeFiles/vtkgdcm.dir/vtkImageMapToWindowLevelColors2.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmReader.cxx:86: /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmReader.h:39:4: error: C++ requires a type specifier for all declarations vtkTypeRevisionMacro(vtkGdcmReader, vtkImageReader); ^ In file included from /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:22: /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageMapToWindowLevelColors2.h:38:3: error: C++ requires a type specifier for all declarations vtkTypeRevisionMacro(vtkImageMapToWindowLevelColors2,vtkImageMapToColors); ^ In file included from /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmWriter.cxx:23: /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmWriter.h:49:4: error: C++ requires a type specifier for all declarations vtkTypeRevisionMacro(vtkGdcmWriter, vtkImageWriter); ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcm4DSplitter.cxx:649:14: warning: initialization of pointer of type 'gdcm::FileList *' (aka 'vector *') to null from a constant boolean expression [-Wbool-conversion] return false; ^~~~~ 1 warning and 1 error generated. make[2]: *** [vtk/CMakeFiles/vtkgdcm.dir/vtkGdcm4DSplitter.o] Error 1 /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmReader.cxx:95:36: error: expected parameter declarator vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.99 $") ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmReader.cxx:95:36: error: expected ')' /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmReader.cxx:95:20: note: to match this '(' vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.99 $") ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmReader.cxx:95:1: error: C++ requires a type specifier for all declarations vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.99 $") ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmReader.cxx:95:56: error: expected ';' after top level declarator vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.99 $") ^ ; /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmReader.cxx:338:10: error: no matching member function for call to 'AllocateScalars' data->AllocateScalars(); // For VTK5.0 ~~~~~~^~~~~~~~~~~~~~~ /usr/local/include/vtk-6.3/vtkImageData.h:244:16: note: candidate function not viable: requires single argument 'pipeline_info', but no arguments were provided virtual void AllocateScalars(vtkInformation* pipeline_info); ^ /usr/local/include/vtk-6.3/vtkImageData.h:237:16: note: candidate function not viable: requires 2 arguments, but 0 were provided virtual void AllocateScalars(int dataType, int numComponents); ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmReader.cxx:342:14: error: no matching member function for call to 'UpdateExtentIsEmpty' if (this->UpdateExtentIsEmpty(output)) ~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/local/include/vtk-6.3/vtkAlgorithm.h:504:7: note: candidate function not viable: requires 2 arguments, but 1 was provided int UpdateExtentIsEmpty(vtkInformation *pinfo, vtkDataObject *output); ^ /usr/local/include/vtk-6.3/vtkAlgorithm.h:505:7: note: candidate function not viable: requires 2 arguments, but 1 was provided int UpdateExtentIsEmpty(vtkInformation *pinfo, int extentType); ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmWriter.cxx:36:36: error: expected parameter declarator vtkCxxRevisionMacro(vtkGdcmWriter, "$Revision: 1.36 $") ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmWriter.cxx:36:36: error: expected ')' /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmWriter.cxx:36:20: note: to match this '(' vtkCxxRevisionMacro(vtkGdcmWriter, "$Revision: 1.36 $") ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmWriter.cxx:36:1: error: C++ requires a type specifier for all declarations vtkCxxRevisionMacro(vtkGdcmWriter, "$Revision: 1.36 $") ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmWriter.cxx:36:56: error: expected ';' after top level declarator vtkCxxRevisionMacro(vtkGdcmWriter, "$Revision: 1.36 $") ^ ; /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmWriter.cxx:102:25: error: no member named 'GetUpdateExtent' in 'vtkImageData'; did you mean 'GetAxisUpdateExtent'? int *extent = image->GetUpdateExtent(); ^~~~~~~~~~~~~~~ GetAxisUpdateExtent /usr/local/include/vtk-6.3/vtkImageData.h:158:16: note: 'GetAxisUpdateExtent' declared here virtual void GetAxisUpdateExtent(int axis, int &min, int &max, const int* updateExtent); ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmWriter.cxx:102:41: error: too few arguments to function call, expected 4, have 0 int *extent = image->GetUpdateExtent(); ~~~~~~~~~~~~~~~~~~~~~~ ^ /usr/local/include/vtk-6.3/vtkImageData.h:158:3: note: 'GetAxisUpdateExtent' declared here virtual void GetAxisUpdateExtent(int axis, int &min, int &max, const int* updateExtent); ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmWriter.cxx:205:25: error: no member named 'GetUpdateExtent' in 'vtkImageData'; did you mean 'GetAxisUpdateExtent'? int *extent = image->GetUpdateExtent(); ^~~~~~~~~~~~~~~ GetAxisUpdateExtent /usr/local/include/vtk-6.3/vtkImageData.h:158:16: note: 'GetAxisUpdateExtent' declared here virtual void GetAxisUpdateExtent(int axis, int &min, int &max, const int* updateExtent); ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmWriter.cxx:205:41: error: too few arguments to function call, expected 4, have 0 int *extent = image->GetUpdateExtent(); ~~~~~~~~~~~~~~~~~~~~~~ ^ /usr/local/include/vtk-6.3/vtkImageData.h:158:3: note: 'GetAxisUpdateExtent' declared here virtual void GetAxisUpdateExtent(int axis, int &min, int &max, const int* updateExtent); ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmWriter.cxx:262:26: error: cannot initialize a variable of type 'float *' with an rvalue of type 'double *' vtkFloatingPointType *sp = image->GetSpacing(); ^ ~~~~~~~~~~~~~~~~~~~ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmWriter.cxx:276:26: error: cannot initialize a variable of type 'float *' with an rvalue of type 'double *' vtkFloatingPointType *org = image->GetOrigin(); ^ ~~~~~~~~~~~~~~~~~~ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmWriter.cxx:287:26: error: cannot initialize a variable of type 'float *' with an rvalue of type 'double *' vtkFloatingPointType *rng = image->GetScalarRange(); ^ ~~~~~~~~~~~~~~~~~~~~~~~ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmWriter.cxx:380:45: error: too few arguments to function call, expected 4, have 3 cache->GetAxisUpdateExtent(axis, min, max); ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ /usr/local/include/vtk-6.3/vtkImageData.h:158:3: note: 'GetAxisUpdateExtent' declared here virtual void GetAxisUpdateExtent(int axis, int &min, int &max, const int* updateExtent); ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmWriter.cxx:387:51: error: too few arguments to function call, expected 5, have 3 cache->SetAxisUpdateExtent(axis, idx, idx); ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ /usr/local/include/vtk-6.3/vtkImageData.h:155:3: note: 'SetAxisUpdateExtent' declared here virtual void SetAxisUpdateExtent(int axis, int min, int max, ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmWriter.cxx:395:51: error: too few arguments to function call, expected 5, have 3 7 errors generated. cache->SetAxisUpdateExtent(axis, idx, idx); ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ /usr/local/include/vtk-6.3/vtkImageData.h:155:3: note: 'SetAxisUpdateExtent' declared here virtual void SetAxisUpdateExtent(int axis, int min, int max, ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkGdcmWriter.cxx:401:45: error: too few arguments to function call, expected 5, have 3 cache->SetAxisUpdateExtent(axis, min, max); ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ /usr/local/include/vtk-6.3/vtkImageData.h:155:3: note: 'SetAxisUpdateExtent' declared here virtual void SetAxisUpdateExtent(int axis, int min, int max, ^ make[2]: *** [vtk/CMakeFiles/vtkgdcm.dir/vtkGdcmReader.o] Error 1 16 errors generated. make[2]: *** [vtk/CMakeFiles/vtkgdcm.dir/vtkGdcmWriter.o] Error 1 /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:29:42: error: expected parameter declarator vtkCxxRevisionMacro(vtkImageColorViewer, "$Revision: 1.3 $") ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:29:42: error: expected ')' /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:29:20: note: to match this '(' vtkCxxRevisionMacro(vtkImageColorViewer, "$Revision: 1.3 $") ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:29:1: error: C++ requires a type specifier for all declarations vtkCxxRevisionMacro(vtkImageColorViewer, "$Revision: 1.3 $") ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:29:61: error: expected ';' after top level declarator vtkCxxRevisionMacro(vtkImageColorViewer, "$Revision: 1.3 $") ^ ; /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:198:12: error: no member named 'UpdateInformation' in 'vtkImageData' input->UpdateInformation(); ~~~~~ ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:199:25: error: no member named 'GetWholeExtent' in 'vtkImageData' int *w_ext = input->GetWholeExtent(); ~~~~~ ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:211:12: error: no member named 'UpdateInformation' in 'vtkImageData' input->UpdateInformation(); ~~~~~ ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:212:19: error: no member named 'GetWholeExtent' in 'vtkImageData' return input->GetWholeExtent() + this->SliceOrientation * 2; ~~~~~ ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:345:10: error: no member named 'UpdateInformation' in 'vtkImageData' input->UpdateInformation(); ~~~~~ ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:346:23: error: no member named 'GetWholeExtent' in 'vtkImageData' int *w_ext = input->GetWholeExtent(); ~~~~~ ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:479:31: error: no member named 'UpdateInformation' in 'vtkImageData' this->IV->GetInput()->UpdateInformation(); ~~~~~~~~~~~~~~~~~~~~ ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:480:31: error: no member named 'SetUpdateExtent' in 'vtkImageData'; did you mean 'SetAxisUpdateExtent'? this->IV->GetInput()->SetUpdateExtent ^~~~~~~~~~~~~~~ SetAxisUpdateExtent /usr/local/include/vtk-6.3/vtkImageData.h:155:16: note: 'SetAxisUpdateExtent' declared here virtual void SetAxisUpdateExtent(int axis, int min, int max, ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:481:34: error: no member named 'GetWholeExtent' in 'vtkImageData' (this->IV->GetInput()->GetWholeExtent()); ~~~~~~~~~~~~~~~~~~~~ ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:482:31: error: no member named 'Update' in 'vtkImageData' this->IV->GetInput()->Update(); ~~~~~~~~~~~~~~~~~~~~ ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:609:23: error: no member named 'SetInput' in 'vtkImageActor'; did you mean 'GetInput'? this->ImageActor->SetInput(this->WindowLevel->GetOutput()); ^~~~~~~~ GetInput /usr/local/include/vtk-6.3/vtkImageActor.h:55:25: note: 'GetInput' declared here virtual vtkImageData *GetInput(); ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:609:32: error: too many arguments to function call, expected 0, have 1 this->ImageActor->SetInput(this->WindowLevel->GetOutput()); ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vtk-6.3/vtkImageActor.h:55:3: note: 'GetInput' declared here virtual vtkImageData *GetInput(); ^ /Volumes/DATA/data/freddy/libs/gdcm/gdcm/vtk/vtkImageColorViewer.cxx:618:23: error: no member named 'SetInput' in 'vtkImageActor'; did you mean 'GetInput'? this->ImageActor->SetInput(NULL); ^~~~~~~~ GetInput /usr/local/include/vtk-6.3/vtkImageActor.h:55:25: note: 'GetInput' declared here virtual vtkImageData *GetInput(); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[2]: *** [vtk/CMakeFiles/vtkgdcm.dir/vtkImageColorViewer.o] Error 1 make[1]: *** [vtk/CMakeFiles/vtkgdcm.dir/all] Error 2 make: *** [all] Error 2 what's going on ?? regards ============================================= "El tama?o de tus logros depende del tama?o de tus metas." C++ and Qt Senior Developer Lic. Computer Science Buenos Aires, Argentina -------------- next part -------------- An HTML attachment was scrubbed... URL: