Hi Kurt, Andreas,

I ran into this issue today. When switching from stretch to buster I
noticed that gmsh couldn't read STEP files anymore. The following
error message appears:

    Error   : Gmsh requires OpenCASCADE to import shape

I've fixed the issue by building gmsh with the additional build
dependency libocct-data-exchange-dev. See patch 0001. I've also added
a small autopkgtest (patch 0002) using a STEP file that is part of the
source package.

Best, Joost
From 874f4f814cc64e49ee4af6401fa1b15a931a9339 Mon Sep 17 00:00:00 2001
From: Joost van Zwieten <joostvanzwie...@gmail.com>
Date: Tue, 27 Nov 2018 12:46:11 +0100
Subject: [PATCH 1/2] add missing build dep for OpenCASCADE support

---
 debian/control | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/control b/debian/control
index 469f2ebf..46f66eba 100644
--- a/debian/control
+++ b/debian/control
@@ -25,6 +25,7 @@ Build-Depends: chrpath,
                libmed-dev,
                libmedc-dev,
                libocct-modeling-data-dev,
+               libocct-data-exchange-dev,
                libocct-ocaf-dev,
                libocct-visualization-dev,
                libpng-dev,
-- 
2.19.2

From 57c9b40d1dab1c2c1f8d2c2926591e25065347bc Mon Sep 17 00:00:00 2001
From: Joost van Zwieten <joostvanzwie...@gmail.com>
Date: Tue, 27 Nov 2018 17:33:32 +0100
Subject: [PATCH 2/2] add autopkgtest for reading step files

---
 debian/tests/check1 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/tests/check1 b/debian/tests/check1
index 171643e8..cd56a02e 100755
--- a/debian/tests/check1
+++ b/debian/tests/check1
@@ -6,6 +6,7 @@ set -e
 
 export OMPI_MCA_plm_rsh_agent=/bin/false
 
+SRCDIR=$PWD
 WORKDIR=$(mktemp -d)
 trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
 cd $WORKDIR
@@ -48,6 +49,9 @@ gmsh tetrahedra.geo -3 -o tetrahedra3d.stl
 gmsh tetrahedra.geo -2 -o tetrahedra2d.vtk
 gmsh tetrahedra.geo -3 -o tetrahedra3d.vtk
 
+# Test support for reading step files.
+gmsh "$SRCDIR/demos/boolean/component8.step" -3 -o component8.msh
+
 ls -ln
  
 echo "run: OK"
-- 
2.19.2

Reply via email to