Inria-Asclepios / medInria-public

Open-source part of the medInria software
https://med.inria.fr/
BSD 4-Clause "Original" or "Old" License
0 stars 9 forks source link

[Windows] VTK/Python does not compile in Debug mode #858

Open mathildemerle opened 2 weeks ago

mathildemerle commented 2 weeks ago

On master branch the compilation bugs on VTK/Python in Debug mode (not Release)

LINK : fatal error LNK1104: cannot open file 'python310.lib' [C:\b\workspace\music-win-free\build\ExtProjs\VTK\Wrapping\PythonCore\vtkWrappingPythonCore.vcxproj] [C:\b\workspace\music-win-free\build\superbuild\VTK-install.vcxproj]

Indeed there is only python310_d.lib file.

fcollot commented 2 weeks ago

There is no issue with pyncpp here as it has compiled Python in debug mode as expected. The issue is that VTK is trying to use a non debug version of Python. This is certainly due to the code in superbuild/projects_modules/VTK.cmake that tells VTK which python to use.

mathildemerle commented 2 weeks ago

Indeed, i changed the title/comment

fcollot commented 2 weeks ago

This issue will very soon be obsolete as I have changed pyncpp so as to always compile Python in release build (there is no need to have a debug build of Python we are not debugging Python but medInria). (as a general case we shouldn't be compiling the external projects in Debug mode apart from medInria)