StevenWang30 / R-PCC

R-PCC: A Baseline for Range Image-based Point Cloud Compression
31 stars 2 forks source link

Cannot install by setup.py develop #8

Open Kiteretsu77 opened 1 year ago

Kiteretsu77 commented 1 year ago

Hello! When I try to set up the environment by python setup.py develop.

The compile fails and shows the following issue: ops\fps\src/sampling.cpp(4): fatal error C1083: Cannot open include file: 'THC/THC.h': No such file or directory

Even if I command include <THC/THC.h>, it still has the following bug: ops\fps\src/sampling.cpp(31): warning C4996: 'at::Tensor::data': Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. ops\fps\src/sampling.cpp(32): warning C4996: 'at::Tensor::data': Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. ops\fps\src/sampling.cpp(33): warning C4996: 'at::Tensor::data': Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe' failed with exit code 2

My environment is : Python3.10 Windows 11 && Ubuntu 22.04 (all try and have the same bug)

Thank you so much!

jiatianluo commented 4 months ago

I also have this problem now,do you solve it?Could you please tell me how do you solve this problem? My environment is: Python3.8 Ubuntu20.04 Pytorch2.0 Thank you !