[Debian-med-packaging] Bug#1073793: camitk FTBFS with VTK 9.3
Gianfranco Costamagna
locutusofborg at debian.org
Thu Jun 20 08:29:27 BST 2024
Hello, I'm attaching a "patch" that at least makes it build properly.
I will upload to Ubuntu, hopefully upstream will solve it in the future
cat debian/patches/vtk-9.3.patch
Description: Followup with deprecated vtkConfigure.h header, renaming of SetQuadQualityMeasureToMaxEdgeRatios into SetQuadQualityMeasureToMaxEdgeRatio and removal of SetTetQualityMeasureToAspectBeta
Author: Gianfranco Costamagna <locutusofborg at debian.org>
Last-Update: 2024-06-20
Index: camitk-5.2.0/sdk/components/vtkimage/RawDataDialog.cpp
===================================================================
--- camitk-5.2.0.orig/sdk/components/vtkimage/RawDataDialog.cpp
+++ camitk-5.2.0/sdk/components/vtkimage/RawDataDialog.cpp
@@ -33,8 +33,10 @@
#include <QMetaEnum>
// -- VTK includes
+#include <vtkVersion.h>
+#ifndef VTK_MAJOR_VERSION
#include <vtkConfigure.h>
-
+#endif
//--------------- Constructor ---------------------------------
RawDataDialog::RawDataDialog(QString filename)
Index: camitk-5.2.0/sdk/actions/mesh/basicmesh/MeshQuality.cpp
===================================================================
--- camitk-5.2.0.orig/sdk/actions/mesh/basicmesh/MeshQuality.cpp
+++ camitk-5.2.0/sdk/actions/mesh/basicmesh/MeshQuality.cpp
@@ -549,7 +549,7 @@
maxNR = VTK_DOUBLE_MAX;
break;
case 6:
- qualityFilter->SetHexQualityMeasureToMaxEdgeRatios();
+ qualityFilter->SetHexQualityMeasureToMaxEdgeRatio();
minAR = 1;
maxAR = 1.3;
minNR = 1;
@@ -709,7 +709,7 @@
maxNR = VTK_DOUBLE_MAX;
break;
case 8:
- qualityFilter->SetQuadQualityMeasureToMaxEdgeRatios();
+ qualityFilter->SetQuadQualityMeasureToMaxEdgeRatio();
minAR = 1;
maxAR = 1.3;
minNR = 1;
@@ -827,13 +827,13 @@
qualityFilter->SetInputConnection(meshComponent->getDataPort());
qualityFilter->SetHexQualityMeasureToDistortion();
switch (qualityTest) {
- case 0:
- qualityFilter->SetTetQualityMeasureToAspectBeta();
- minAR = 0.1;
- maxAR = VTK_DOUBLE_MAX;
- minNR = 0;
- maxNR = VTK_DOUBLE_MAX;
- break;
+ //case 0:
+ // qualityFilter->SetTetQualityMeasureToAspectBeta();
+ // minAR = 0.1;
+ // maxAR = VTK_DOUBLE_MAX;
+ // minNR = 0;
+ // maxNR = VTK_DOUBLE_MAX;
+ // break;
case 1:
qualityFilter->SetTetQualityMeasureToAspectFrobenius();
minAR = 1;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20240620/484105be/attachment-0001.sig>
More information about the Debian-med-packaging
mailing list