EBATINCA / RadiotherapyTransformsIEC

Library for handling transfoms of radiotherapy equipment as defined in the IEC 61217 standard
1 stars 1 forks source link

minimum required VTK version for Set/GetObjectName #2

Open ferdymercury opened 9 hours ago

ferdymercury commented 9 hours ago

@TrosnyogoSzakoca @cpinter I get:

error: ‘class vtkTransform’ has no member named ‘SetObjectName’, and the same with "Get".

We need to either bump the minimum required version for VTK in the CMakeLists, or to add a preprocessor switch (https://examples.vtk.org/site/Cxx/Utilities/CheckVTKVersion/) skipping the offending function and using an external string map or sth like that as fallback.

9.2 is needed at least, see: https://discourse.vtk.org/t/naming-vtkactors/9958/5

I am recompiling on my system now via: cmake -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_INSTALL_RPATH=/opt/VTK-9.3.1/install/lib -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE ../