Page MenuHomePhabricator

[SWIG] building pyMITK leads to access violation
Open, NormalPublic

Description

When I build pyMITK for SWIG MITK/Python wrapping, this leads to an access violation.
Steps to reproduce:

  1. Start a superbuild with MITK_USE_Python3, MITK_USE_SWIG, MITK_USE_VIGRA and MITK_USE_MATCHPOINT on in CMake
  2. Start a MITK build with WRAP_PYTHON on in CMake
  3. In Visual Studio, select pyMITK as start project and run

I tried it with Visual Studio 2017 and Visual Studio 2019 and in both cases, the error occured.

Event Timeline

kahl triaged this task as Normal priority.Jul 24 2020, 2:11 PM
kahl created this task.
kahl added a comment.Jul 28 2020, 5:17 PM

If you use Python 3.7/3.8, you need to install SWIG version 4.0.2. This solves the problem. Currently, SWIG version 3.0.2. is installed in the Superbuild.