Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mathildemerle opened this issue Jun 19, 2024 · 3 comments
Open

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

mathildemerle opened this issue Jun 19, 2024 · 3 comments

Comments

@mathildemerle
Copy link

mathildemerle commented Jun 19, 2024

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
Copy link

fcollot commented Jun 19, 2024

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 mathildemerle changed the title [Windows] pyncpp does not compile in Debug mode [Windows] VTK/Python does not compile in Debug mode Jun 19, 2024
@mathildemerle
Copy link
Author

Indeed, i changed the title/comment

@fcollot
Copy link

fcollot commented Jun 19, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants