I noticed that building the PyTorch extension fails for Visual Studio 2022 with
"Could not locate a supported Microsoft Visual C++ installation"
It seems like the default install path for Visual Studio has been changed from C:\Program Files (x86) to C:\Program Files, which results in cl.exe not being properly detected.
First of all, thanks for the awesome work!
I noticed that building the PyTorch extension fails for Visual Studio 2022 with
It seems like the default install path for Visual Studio has been changed from
C:\Program Files (x86)
toC:\Program Files
, which results incl.exe
not being properly detected.Since you don't merge pull requests in the GitHub repository, I propose a solution here: Replace this line (https://github.com/NVlabs/nvdiffrast/blob/main/nvdiffrast/torch/ops.py#L32):
with
A similar fix should be applied to the TensorFlow bindings (https://github.com/NVlabs/nvdiffrast/blob/main/nvdiffrast/tensorflow/plugin_loader.py#L58-L74).
Thanks!