Closed JiewenKuang closed 2 years ago
/home/zitman/DifferentiableCloth-master/pybind/bind.cpp:4:10: fatal error: collision.hpp: no such file or directory 4 | #include "collision.hpp" | ^~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/zitman/anaconda3/envs/phi_sft/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1515, in _run_ninja_build env=env) File "/home/zitman/anaconda3/envs/phi_sft/lib/python3.6/subprocess.py", line 438, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1. `
I searched the source file collision.hpp to find this problem, but an error will be reported when compiling
Hi, I encounter the same problem. Could you please tell how you solved this problem?
For anyone who need, I solve this by replacing change the include_dirs in setup.py to absolute path.
include_dirs
setup.py
/home/zitman/DifferentiableCloth-master/pybind/bind.cpp:4:10: fatal error: collision.hpp: no such file or directory 4 | #include "collision.hpp" | ^
~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/zitman/anaconda3/envs/phi_sft/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1515, in _run_ninja_build env=env) File "/home/zitman/anaconda3/envs/phi_sft/lib/python3.6/subprocess.py", line 438, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1. `I searched the source file collision.hpp to find this problem, but an error will be reported when compiling