NVlabs / nvdiffrast

Nvdiffrast - Modular Primitives for High-Performance Differentiable Rendering
Other
1.29k stars 139 forks source link

LINK: fatal error LNK1104: can't open the file"nvdiffrast_plugin.pyd" #100

Closed xiaomihefeifei closed 1 year ago

xiaomihefeifei commented 1 year ago

I was able to use version 0.28 before. But, it seems like meet a compile error when I try use version 0.30. image

Thank you very much for any suggestionl.

s-laine commented 1 year ago

This looks like a ninja build issue and isn't necessarily related to the nvdiffrast version change. The error could be caused by the library being in use while you're trying to compile a new version. If that's not the case here, you should try clearing torch's extension build directory for nvdiffrast, in case it's in some sort of corrupted state.

The directory is easiest to locate by seeing what torch.utils.cpp_extension._get_build_directory('nvdiffrast_plugin', False) returns. On Windows it's probably somewhere under %localappdata%\torch_extensions by default.

xiaomihefeifei commented 1 year ago

This looks like a ninja build issue and isn't necessarily related to the nvdiffrast version change. The error could be caused by the library being in use while you're trying to compile a new version. If that's not the case here, you should try clearing torch's extension build directory for nvdiffrast, in case it's in some sort of corrupted state.

The directory is easiest to locate by seeing what torch.utils.cpp_extension._get_build_directory('nvdiffrast_plugin', False) returns. On Windows it's probably somewhere under %localappdata%\torch_extensions by default.

Thank you very much for helping me I solved this problem perfectly.