{"action":"created","issue":{"url":"https://api.github.com/repos/BioMedIA/IRTK/issues/17","labels_url":"https://api.github.com/repos/BioMedIA/IRTK/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/BioMedIA/IRTK/issues/17/comments","events_url":"https://api.github.com/repos/BioMedIA/IRTK/issues/17/events","html_url":"https://github.com/BioMedIA/IRTK/issues/17","id":122078850,"number":17,"title":"Compilation error when linking with VTK 5.10","user":{"login":"stefanpsz","id":10061356,"avatar_url":"https://avatars.githubusercontent.com/u/10061356?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanpsz","html_url":"https://github.com/stefanpsz","followers_url":"https://api.github.com/users/stefanpsz/followers","following_url":"https://api.github.com/users/stefanpsz/following{/other_user}","gists_url":"https://api.github.com/users/stefanpsz/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpsz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpsz/subscriptions","organizations_url":"https://api.github.com/users/stefanpsz/orgs","repos_url":"https://api.github.com/users/stefanpsz/repos","events_url":"https://api.github.com/users/stefanpsz/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpsz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2015-12-14T16:30:27Z","updated_at":"2015-12-16T01:33:56Z","closed_at":"2015-12-15T11:31:01Z","body":"When linking with VTK 5.10, the following compilation error arises:\r\n\r\n[ 80%] Building CXX object Modules/Registration/src/CMakeFiles/Registration.dir/irtkRegisteredPointSet.cc.o\r\nIn file included from /usr/include/c++/5/backward/strstream:51:0,\r\n                 from /usr/include/vtk-5.10/vtkIOStream.h:108,\r\n                 from /usr/include/vtk-5.10/vtkSystemIncludes.h:40,\r\n                 from /usr/include/vtk-5.10/vtkIndent.h:24,\r\n                 from /usr/include/vtk-5.10/vtkObjectBase.h:43,\r\n                 from /usr/include/vtk-5.10/vtkSmartPointerBase.h:26,\r\n                 from /usr/include/vtk-5.10/vtkSmartPointer.h:23,\r\n                 from /data/workspace/IRTK/Modules/Registration/include/irtkRegisteredPointSet.h:20,\r\n                 from /data/workspace/IRTK/Modules/Registration/src/irtkRegisteredPointSet.cc:17:\r\n/usr/include/c++/5/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]\r\n #warning \\\r\n  ^\r\n/data/workspace/IRTK/Modules/Registration/src/irtkPointSetForce.cc: In member function ‘vtkDataArray* irtkPointSetForce::AddPointData(const char*, int, int)’:\r\n/data/workspace/IRTK/Modules/Registration/src/irtkPointSetForce.cc:165:22:  error : ‘class vtkDataArray’ has no member named ‘GetArrayType’\r\n   if (!data || data->GetArrayType() != type || data->GetNumberOfComponents() != c) {\r\n                      ^\r\n"},"comment":{"url":"https://api.github.com/repos/BioMedIA/IRTK/issues/comments/164956335","html_url":"https://github.com/BioMedIA/IRTK/issues/17#issuecomment-164956335","issue_url":"https://api.github.com/repos/BioMedIA/IRTK/issues/17","id":164956335,"user":{"login":"schuhschuh","id":975451,"avatar_url":"https://avatars.githubusercontent.com/u/975451?v=3","gravatar_id":"","url":"https://api.github.com/users/schuhschuh","html_url":"https://github.com/schuhschuh","followers_url":"https://api.github.com/users/schuhschuh/followers","following_url":"https://api.github.com/users/schuhschuh/following{/other_user}","gists_url":"https://api.github.com/users/schuhschuh/gists{/gist_id}","starred_url":"https://api.github.com/users/schuhschuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schuhschuh/subscriptions","organizations_url":"https://api.github.com/users/schuhschuh/orgs","repos_url":"https://api.github.com/users/schuhschuh/repos","events_url":"https://api.github.com/users/schuhschuh/events{/privacy}","received_events_url":"https://api.github.com/users/schuhschuh/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T01:33:56Z","updated_at":"2015-12-16T01:33:56Z","body":"> Anyway, we have a fix now.\r\n\r\nI would encourage reconsidering the *fix* for the same reasons mentioned before... Have you tried the above suggestion?\r\n```cmake\r\nfind_package(VTK 6.1 QUIET)\r\nif (NOT VTK_FOUND)\r\n  find_package(VTK 6.0 QUIET)\r\n  if (NOT VTK_FOUND)\r\n    message (FATAL_ERROR \"Could not find VTK 6 or newer. Either install a compatible version or set WITH_VTK to OFF.\")\r\n  endif ()\r\nendif ()\r\n```"}}