torch-ngp icon indicating copy to clipboard operation
torch-ngp copied to clipboard

"Ninja is required to load c++ extensions" && "fail to build pysdf"

Open Visytudz opened this issue 1 year ago • 1 comments

My enviroment: Windows11, torch-1.11.0, cuda-11.3, cudnn-8200

command: python main_nerf.py data/fox --workspace trial_nerf

I've installed Ninja. Before this problem I had the same problem as #160 and I solved it by installing Microsoft VS2022 (but the installation path was in E:, so I changed the default path in find_cl_path()), but I'm not sure this solution is reasonable. After that I ran into this problem. image

By the way, I can't build pysdf successfully, the path of MVS2022 appears in the error message, I don't know why this is related to MVS, maybe I should install MVS in the default path? image image

Thanks a lot !!!!

Visytudz avatar Apr 25 '23 12:04 Visytudz

When building pysdf, i met this error as well. It is because somehow you are using HostX86\\x64\\cl.exe. But what you should use is HostX64\\x64\\cl.exe. Please try using x64 Native Tools for VS 2022 instead of Developer Command Prompt for VS 2022. This is what I did to resolve this.

ShaYito avatar Dec 03 '23 04:12 ShaYito